rule win_recordbreaker_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        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 = "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 = { ff75f4 ff15???????? ff75ec ff15???????? ff75f0 }
            // n = 5, score = 700
            //   ff75f4               | push                dword ptr [ebp - 0xc]
            //   ff15????????         |                     
            //   ff75ec               | push                dword ptr [ebp - 0x14]
            //   ff15????????         |                     
            //   ff75f0               | push                dword ptr [ebp - 0x10]

        $sequence_1 = { c60100 5d c20c00 55 }
            // n = 4, score = 700
            //   c60100               | mov                 byte ptr [ecx], 0
            //   5d                   | pop                 ebp
            //   c20c00               | ret                 0xc
            //   55                   | push                ebp

        $sequence_2 = { ff7508 51 e8???????? eb0e b857000780 85d2 7405 }
            // n = 7, score = 700
            //   ff7508               | push                dword ptr [ebp + 8]
            //   51                   | push                ecx
            //   e8????????           |                     
            //   eb0e                 | jmp                 0x10
            //   b857000780           | mov                 eax, 0x80070057
            //   85d2                 | test                edx, edx
            //   7405                 | je                  7

        $sequence_3 = { 8bf0 56 ff35???????? ff15???????? 8b15???????? }
            // n = 5, score = 700
            //   8bf0                 | mov                 esi, eax
            //   56                   | push                esi
            //   ff35????????         |                     
            //   ff15????????         |                     
            //   8b15????????         |                     

        $sequence_4 = { 8b0e e8???????? 53 8906 ff15???????? }
            // n = 5, score = 700
            //   8b0e                 | mov                 ecx, dword ptr [esi]
            //   e8????????           |                     
            //   53                   | push                ebx
            //   8906                 | mov                 dword ptr [esi], eax
            //   ff15????????         |                     

        $sequence_5 = { ff15???????? 8b7508 83c410 8bd7 8b0e e8???????? }
            // n = 6, score = 700
            //   ff15????????         |                     
            //   8b7508               | mov                 esi, dword ptr [ebp + 8]
            //   83c410               | add                 esp, 0x10
            //   8bd7                 | mov                 edx, edi
            //   8b0e                 | mov                 ecx, dword ptr [esi]
            //   e8????????           |                     

        $sequence_6 = { 8bf8 8d4601 c1e005 50 ff35???????? 57 ff15???????? }
            // n = 7, score = 700
            //   8bf8                 | mov                 edi, eax
            //   8d4601               | lea                 eax, [esi + 1]
            //   c1e005               | shl                 eax, 5
            //   50                   | push                eax
            //   ff35????????         |                     
            //   57                   | push                edi
            //   ff15????????         |                     

        $sequence_7 = { 33d2 668911 5d c20400 55 }
            // n = 5, score = 700
            //   33d2                 | xor                 edx, edx
            //   668911               | mov                 word ptr [ecx], dx
            //   5d                   | pop                 ebp
            //   c20400               | ret                 4
            //   55                   | push                ebp

        $sequence_8 = { 8bc8 e8???????? 8b15???????? 8bc8 e8???????? 8b550c }
            // n = 6, score = 700
            //   8bc8                 | mov                 ecx, eax
            //   e8????????           |                     
            //   8b15????????         |                     
            //   8bc8                 | mov                 ecx, eax
            //   e8????????           |                     
            //   8b550c               | mov                 edx, dword ptr [ebp + 0xc]

        $sequence_9 = { 8bd3 e8???????? ff35???????? 8bd3 8d8d9cfbffff }
            // n = 5, score = 700
            //   8bd3                 | mov                 edx, ebx
            //   e8????????           |                     
            //   ff35????????         |                     
            //   8bd3                 | mov                 edx, ebx
            //   8d8d9cfbffff         | lea                 ecx, [ebp - 0x464]

    condition:
        7 of them and filesize < 232312
}