rule win_unidentified_069_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.unidentified_069."
        info = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.6.0"
        signator_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.unidentified_069"
        malpedia_rule_date = "20260916"
        malpedia_hash = "53a643781c18e08f4a50949af60172d837a0b6f6"
        malpedia_version = "20260917"
        malpedia_license = "CC BY-SA 4.0"
        malpedia_sharing = "TLP:WHITE"

    /* DISCLAIMER
     * The strings used in this rule have been automatically selected from the
     * disassembly of memory dumps and unpacked files, using YARA-Signator.
     * The code and documentation is published here:
     * https://github.com/fxb-cocacoding/yara-signator
     * As Malpedia is used as data source, please note that for a given
     * number of families, only single samples are documented.
     * This likely impacts the degree of generalization these rules will offer.
     * Take the described generation method also into consideration when you
     * apply the rules in your use cases and assign them confidence levels.
     */


    strings:
        $sequence_0 = { 0f8485000000 33c0 bb???????? 8b4c2410 8b11 8d742418 56 }
            // n = 7, score = 100
            //   0f8485000000         | je                  0x8b
            //   33c0                 | xor                 eax, eax
            //   bb????????           |                     
            //   8b4c2410             | mov                 ecx, dword ptr [esp + 0x10]
            //   8b11                 | mov                 edx, dword ptr [ecx]
            //   8d742418             | lea                 esi, [esp + 0x18]
            //   56                   | push                esi

        $sequence_1 = { ffd6 8b3d???????? 68???????? 57 a3???????? ffd6 68???????? }
            // n = 7, score = 100
            //   ffd6                 | call                esi
            //   8b3d????????         |                     
            //   68????????           |                     
            //   57                   | push                edi
            //   a3????????           |                     
            //   ffd6                 | call                esi
            //   68????????           |                     

        $sequence_2 = { ff15???????? 8975fc 85c0 7507 c745fc???????? ff75fc }
            // n = 6, score = 100
            //   ff15????????         |                     
            //   8975fc               | mov                 dword ptr [ebp - 4], esi
            //   85c0                 | test                eax, eax
            //   7507                 | jne                 9
            //   c745fc????????       |                     
            //   ff75fc               | push                dword ptr [ebp - 4]

        $sequence_3 = { 0f8564ffffff 47 ff45f8 eb2f 80fa0a 0f8555ffffff 80fb0d }
            // n = 7, score = 100
            //   0f8564ffffff         | jne                 0xffffff6a
            //   47                   | inc                 edi
            //   ff45f8               | inc                 dword ptr [ebp - 8]
            //   eb2f                 | jmp                 0x31
            //   80fa0a               | cmp                 dl, 0xa
            //   0f8555ffffff         | jne                 0xffffff5b
            //   80fb0d               | cmp                 bl, 0xd

        $sequence_4 = { 03c2 3bc2 767f 80382f 7405 48 3bc2 }
            // n = 7, score = 100
            //   03c2                 | add                 eax, edx
            //   3bc2                 | cmp                 eax, edx
            //   767f                 | jbe                 0x81
            //   80382f               | cmp                 byte ptr [eax], 0x2f
            //   7405                 | je                  7
            //   48                   | dec                 eax
            //   3bc2                 | cmp                 eax, edx

        $sequence_5 = { 85d2 7407 8bce e8???????? 8d45e0 50 ff7510 }
            // n = 7, score = 100
            //   85d2                 | test                edx, edx
            //   7407                 | je                  9
            //   8bce                 | mov                 ecx, esi
            //   e8????????           |                     
            //   8d45e0               | lea                 eax, [ebp - 0x20]
            //   50                   | push                eax
            //   ff7510               | push                dword ptr [ebp + 0x10]

        $sequence_6 = { ff15???????? ff7510 ff750c 56 ff15???????? 83c40c 83f8ff }
            // n = 7, score = 100
            //   ff15????????         |                     
            //   ff7510               | push                dword ptr [ebp + 0x10]
            //   ff750c               | push                dword ptr [ebp + 0xc]
            //   56                   | push                esi
            //   ff15????????         |                     
            //   83c40c               | add                 esp, 0xc
            //   83f8ff               | cmp                 eax, -1

        $sequence_7 = { 8d4df0 e8???????? 59 8bf0 e8???????? 53 8d85f4fdffff }
            // n = 7, score = 100
            //   8d4df0               | lea                 ecx, [ebp - 0x10]
            //   e8????????           |                     
            //   59                   | pop                 ecx
            //   8bf0                 | mov                 esi, eax
            //   e8????????           |                     
            //   53                   | push                ebx
            //   8d85f4fdffff         | lea                 eax, [ebp - 0x20c]

        $sequence_8 = { 720f 6683f90d 7709 40 40 8945fc 3bc2 }
            // n = 7, score = 100
            //   720f                 | jb                  0x11
            //   6683f90d             | cmp                 cx, 0xd
            //   7709                 | ja                  0xb
            //   40                   | inc                 eax
            //   40                   | inc                 eax
            //   8945fc               | mov                 dword ptr [ebp - 4], eax
            //   3bc2                 | cmp                 eax, edx

        $sequence_9 = { 8906 f7c300020000 7403 89460c 84db 7903 894604 }
            // n = 7, score = 100
            //   8906                 | mov                 dword ptr [esi], eax
            //   f7c300020000         | test                ebx, 0x200
            //   7403                 | je                  5
            //   89460c               | mov                 dword ptr [esi + 0xc], eax
            //   84db                 | test                bl, bl
            //   7903                 | jns                 5
            //   894604               | mov                 dword ptr [esi + 4], eax

    condition:
        7 of them and filesize < 434176
}