rule win_recordbreaker_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-05-04"
        version = "1"
        description = "Detects win.recordbreaker."
        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.recordbreaker"
        malpedia_rule_date = "20260422"
        malpedia_hash = "a182e35da64e6d71cb55f125c4d4225196523f14"
        malpedia_version = "20260504"
        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 = { ff15???????? 83c8ff eb2f ff35???????? }
            // n = 4, score = 700
            //   ff15????????         |                     
            //   83c8ff               | or                  eax, 0xffffffff
            //   eb2f                 | jmp                 0x31
            //   ff35????????         |                     

        $sequence_1 = { e8???????? 8b15???????? 8bc8 e8???????? 8b55f0 }
            // n = 5, score = 700
            //   e8????????           |                     
            //   8b15????????         |                     
            //   8bc8                 | mov                 ecx, eax
            //   e8????????           |                     
            //   8b55f0               | mov                 edx, dword ptr [ebp - 0x10]

        $sequence_2 = { 51 8b4dfc 8975d0 e8???????? }
            // n = 4, score = 700
            //   51                   | push                ecx
            //   8b4dfc               | mov                 ecx, dword ptr [ebp - 4]
            //   8975d0               | mov                 dword ptr [ebp - 0x30], esi
            //   e8????????           |                     

        $sequence_3 = { 7407 56 ff15???????? 837db400 7409 ff75b4 }
            // n = 6, score = 700
            //   7407                 | je                  9
            //   56                   | push                esi
            //   ff15????????         |                     
            //   837db400             | cmp                 dword ptr [ebp - 0x4c], 0
            //   7409                 | je                  0xb
            //   ff75b4               | push                dword ptr [ebp - 0x4c]

        $sequence_4 = { ff15???????? 57 ff750c 8bf0 ff15???????? 83c410 }
            // n = 6, score = 700
            //   ff15????????         |                     
            //   57                   | push                edi
            //   ff750c               | push                dword ptr [ebp + 0xc]
            //   8bf0                 | mov                 esi, eax
            //   ff15????????         |                     
            //   83c410               | add                 esp, 0x10

        $sequence_5 = { 037d10 40 8901 a5 a5 a5 a5 }
            // n = 7, score = 700
            //   037d10               | add                 edi, dword ptr [ebp + 0x10]
            //   40                   | inc                 eax
            //   8901                 | mov                 dword ptr [ecx], eax
            //   a5                   | movsd               dword ptr es:[edi], dword ptr [esi]
            //   a5                   | movsd               dword ptr es:[edi], dword ptr [esi]
            //   a5                   | movsd               dword ptr es:[edi], dword ptr [esi]
            //   a5                   | movsd               dword ptr es:[edi], dword ptr [esi]

        $sequence_6 = { ff751c ff7518 ff7510 ff750c 53 53 e8???????? }
            // n = 7, score = 700
            //   ff751c               | push                dword ptr [ebp + 0x1c]
            //   ff7518               | push                dword ptr [ebp + 0x18]
            //   ff7510               | push                dword ptr [ebp + 0x10]
            //   ff750c               | push                dword ptr [ebp + 0xc]
            //   53                   | push                ebx
            //   53                   | push                ebx
            //   e8????????           |                     

        $sequence_7 = { 8bd9 663bc8 7416 6a22 8bc2 }
            // n = 5, score = 700
            //   8bd9                 | mov                 ebx, ecx
            //   663bc8               | cmp                 cx, ax
            //   7416                 | je                  0x18
            //   6a22                 | push                0x22
            //   8bc2                 | mov                 eax, edx

        $sequence_8 = { 8bd6 e8???????? 8b15???????? 8bc8 8903 e8???????? }
            // n = 6, score = 700
            //   8bd6                 | mov                 edx, esi
            //   e8????????           |                     
            //   8b15????????         |                     
            //   8bc8                 | mov                 ecx, eax
            //   8903                 | mov                 dword ptr [ebx], eax
            //   e8????????           |                     

        $sequence_9 = { 33c0 50 50 6a04 50 6a01 6800000080 }
            // n = 7, score = 700
            //   33c0                 | xor                 eax, eax
            //   50                   | push                eax
            //   50                   | push                eax
            //   6a04                 | push                4
            //   50                   | push                eax
            //   6a01                 | push                1
            //   6800000080           | push                0x80000000

    condition:
        7 of them and filesize < 232312
}