rule win_quickmute_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.quickmute."
        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.quickmute"
        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 = { ff15???????? 85c0 7447 393d???????? 743f }
            // n = 5, score = 100
            //   ff15????????         |                     
            //   85c0                 | test                eax, eax
            //   7447                 | je                  0x49
            //   393d????????         |                     
            //   743f                 | je                  0x41

        $sequence_1 = { 46 8a141e 8810 40 ff4dfc 880c1e }
            // n = 6, score = 100
            //   46                   | inc                 esi
            //   8a141e               | mov                 dl, byte ptr [esi + ebx]
            //   8810                 | mov                 byte ptr [eax], dl
            //   40                   | inc                 eax
            //   ff4dfc               | dec                 dword ptr [ebp - 4]
            //   880c1e               | mov                 byte ptr [esi + ebx], cl

        $sequence_2 = { 8bec 8b4508 56 8d34c550c04000 }
            // n = 4, score = 100
            //   8bec                 | mov                 ebp, esp
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   56                   | push                esi
            //   8d34c550c04000       | lea                 esi, [eax*8 + 0x40c050]

        $sequence_3 = { 52 56 ffd7 a3???????? c745f86365696c 885dfc 391d???????? }
            // n = 7, score = 100
            //   52                   | push                edx
            //   56                   | push                esi
            //   ffd7                 | call                edi
            //   a3????????           |                     
            //   c745f86365696c       | mov                 dword ptr [ebp - 8], 0x6c696563
            //   885dfc               | mov                 byte ptr [ebp - 4], bl
            //   391d????????         |                     

        $sequence_4 = { 8d45e8 50 56 ffd7 a3???????? 833d????????00 c78578ffffff57696e48 }
            // n = 7, score = 100
            //   8d45e8               | lea                 eax, [ebp - 0x18]
            //   50                   | push                eax
            //   56                   | push                esi
            //   ffd7                 | call                edi
            //   a3????????           |                     
            //   833d????????00       |                     
            //   c78578ffffff57696e48     | mov    dword ptr [ebp - 0x88], 0x486e6957

        $sequence_5 = { 83c404 85ff 745e 6800010000 83c604 8d44242c 56 }
            // n = 7, score = 100
            //   83c404               | add                 esp, 4
            //   85ff                 | test                edi, edi
            //   745e                 | je                  0x60
            //   6800010000           | push                0x100
            //   83c604               | add                 esi, 4
            //   8d44242c             | lea                 eax, [esp + 0x2c]
            //   56                   | push                esi

        $sequence_6 = { 7402 ffd0 8345e404 ebe6 c745e084914000 817de088914000 }
            // n = 6, score = 100
            //   7402                 | je                  4
            //   ffd0                 | call                eax
            //   8345e404             | add                 dword ptr [ebp - 0x1c], 4
            //   ebe6                 | jmp                 0xffffffe8
            //   c745e084914000       | mov                 dword ptr [ebp - 0x20], 0x409184
            //   817de088914000       | cmp                 dword ptr [ebp - 0x20], 0x409188

        $sequence_7 = { 8d45fc 50 53 c745fc00000000 ff15???????? }
            // n = 5, score = 100
            //   8d45fc               | lea                 eax, [ebp - 4]
            //   50                   | push                eax
            //   53                   | push                ebx
            //   c745fc00000000       | mov                 dword ptr [ebp - 4], 0
            //   ff15????????         |                     

        $sequence_8 = { 8d95b4feffff 57 52 ff15???????? }
            // n = 4, score = 100
            //   8d95b4feffff         | lea                 edx, [ebp - 0x14c]
            //   57                   | push                edi
            //   52                   | push                edx
            //   ff15????????         |                     

        $sequence_9 = { c78554ffffff77007300 c78558ffffff20004e00 c7855cffffff54002000 c78560ffffff36002e00 c78564ffffff33003b00 }
            // n = 5, score = 100
            //   c78554ffffff77007300     | mov    dword ptr [ebp - 0xac], 0x730077
            //   c78558ffffff20004e00     | mov    dword ptr [ebp - 0xa8], 0x4e0020
            //   c7855cffffff54002000     | mov    dword ptr [ebp - 0xa4], 0x200054
            //   c78560ffffff36002e00     | mov    dword ptr [ebp - 0xa0], 0x2e0036
            //   c78564ffffff33003b00     | mov    dword ptr [ebp - 0x9c], 0x3b0033

    condition:
        7 of them and filesize < 146432
}