Hopscotch is part of the Regin framework.
rule win_hopscotch_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2026-09-17" version = "1" description = "Detects win.hopscotch." 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.hopscotch" 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 = { ffd7 8b742410 8d4c2408 51 6a00 6a00 68???????? } // n = 7, score = 100 // ffd7 | call edi // 8b742410 | mov esi, dword ptr [esp + 0x10] // 8d4c2408 | lea ecx, [esp + 8] // 51 | push ecx // 6a00 | push 0 // 6a00 | push 0 // 68???????? | $sequence_1 = { 59 8d8530f8ffff 50 68???????? } // n = 4, score = 100 // 59 | pop ecx // 8d8530f8ffff | lea eax, [ebp - 0x7d0] // 50 | push eax // 68???????? | $sequence_2 = { 83c410 85c0 7451 8d54240c 68???????? 52 } // n = 6, score = 100 // 83c410 | add esp, 0x10 // 85c0 | test eax, eax // 7451 | je 0x53 // 8d54240c | lea edx, [esp + 0xc] // 68???????? | // 52 | push edx $sequence_3 = { ff15???????? 23f7 8bd0 56 8955f4 ff15???????? } // n = 6, score = 100 // ff15???????? | // 23f7 | and esi, edi // 8bd0 | mov edx, eax // 56 | push esi // 8955f4 | mov dword ptr [ebp - 0xc], edx // ff15???????? | $sequence_4 = { 8d9424a4010000 52 68???????? e8???????? 83c408 32c0 5f } // n = 7, score = 100 // 8d9424a4010000 | lea edx, [esp + 0x1a4] // 52 | push edx // 68???????? | // e8???????? | // 83c408 | add esp, 8 // 32c0 | xor al, al // 5f | pop edi $sequence_5 = { 53 e8???????? 83c420 ff15???????? } // n = 4, score = 100 // 53 | push ebx // e8???????? | // 83c420 | add esp, 0x20 // ff15???????? | $sequence_6 = { 750c 8d4c2414 51 68???????? eb1e } // n = 5, score = 100 // 750c | jne 0xe // 8d4c2414 | lea ecx, [esp + 0x14] // 51 | push ecx // 68???????? | // eb1e | jmp 0x20 $sequence_7 = { 8d842498020000 6800010000 52 6aff 50 6a00 } // n = 6, score = 100 // 8d842498020000 | lea eax, [esp + 0x298] // 6800010000 | push 0x100 // 52 | push edx // 6aff | push -1 // 50 | push eax // 6a00 | push 0 $sequence_8 = { 57 6af6 ff15???????? 8b35???????? 8bf8 8d442408 } // n = 6, score = 100 // 57 | push edi // 6af6 | push -0xa // ff15???????? | // 8b35???????? | // 8bf8 | mov edi, eax // 8d442408 | lea eax, [esp + 8] $sequence_9 = { e8???????? 83c404 56 ff15???????? 85c0 751f 68???????? } // n = 7, score = 100 // e8???????? | // 83c404 | add esp, 4 // 56 | push esi // ff15???????? | // 85c0 | test eax, eax // 751f | jne 0x21 // 68???????? | condition: 7 of them and filesize < 1143808 }
If your designated proposal does not fit in any other category, feel free to write a free-text in the comment field below. Changes regarding references should be proposed on the Malpedia library page.
Your suggestion will be reviewed before being published. Thank you for contributing!
YYYY-MM-DD
YYYY-MM
YYYY