Hopscotch is part of the Regin framework.
rule win_hopscotch_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2023-07-11" 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 = "20230705" malpedia_hash = "42d0574f4405bd7d2b154d321d345acb18834a41" malpedia_version = "20230715" 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 = { 7516 c1e504 83e804 f7c5000000f0 } // n = 4, score = 100 // 7516 | jne 0x18 // c1e504 | shl ebp, 4 // 83e804 | sub eax, 4 // f7c5000000f0 | test ebp, 0xf0000000 $sequence_1 = { 85c0 0f86f0000000 83c003 c1e802 89442418 } // n = 5, score = 100 // 85c0 | test eax, eax // 0f86f0000000 | jbe 0xf6 // 83c003 | add eax, 3 // c1e802 | shr eax, 2 // 89442418 | mov dword ptr [esp + 0x18], eax $sequence_2 = { e8???????? 68???????? e8???????? 83c404 85f6 7403 56 } // n = 7, score = 100 // e8???????? | // 68???????? | // e8???????? | // 83c404 | add esp, 4 // 85f6 | test esi, esi // 7403 | je 5 // 56 | push esi $sequence_3 = { 83c408 68???????? e8???????? 8d8c249c020000 6801010000 } // n = 5, score = 100 // 83c408 | add esp, 8 // 68???????? | // e8???????? | // 8d8c249c020000 | lea ecx, [esp + 0x29c] // 6801010000 | push 0x101 $sequence_4 = { 56 53 8d4c2414 6a08 51 e8???????? } // n = 6, score = 100 // 56 | push esi // 53 | push ebx // 8d4c2414 | lea ecx, [esp + 0x14] // 6a08 | push 8 // 51 | push ecx // e8???????? | $sequence_5 = { 6a00 6a00 8d9424b4000000 6a00 } // n = 4, score = 100 // 6a00 | push 0 // 6a00 | push 0 // 8d9424b4000000 | lea edx, [esp + 0xb4] // 6a00 | push 0 $sequence_6 = { 833d????????01 750d 8b442404 50 e8???????? 83c404 } // n = 6, score = 100 // 833d????????01 | // 750d | jne 0xf // 8b442404 | mov eax, dword ptr [esp + 4] // 50 | push eax // e8???????? | // 83c404 | add esp, 4 $sequence_7 = { 8885d8feffff 3c01 0f85cf000000 6804010000 68???????? e8???????? 83c408 } // n = 7, score = 100 // 8885d8feffff | mov byte ptr [ebp - 0x128], al // 3c01 | cmp al, 1 // 0f85cf000000 | jne 0xd5 // 6804010000 | push 0x104 // 68???????? | // e8???????? | // 83c408 | add esp, 8 $sequence_8 = { 83f904 7605 b904000000 f7d8 1bc0 5e } // n = 6, score = 100 // 83f904 | cmp ecx, 4 // 7605 | jbe 7 // b904000000 | mov ecx, 4 // f7d8 | neg eax // 1bc0 | sbb eax, eax // 5e | pop esi $sequence_9 = { 85c9 740a 6a00 51 } // n = 4, score = 100 // 85c9 | test ecx, ecx // 740a | je 0xc // 6a00 | push 0 // 51 | push ecx 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.
Please propose all changes regarding references on the Malpedia library page
Your suggestion will be reviewed before being published. Thank you for contributing!
YYYY-MM-DD
YYYY-MM
YYYY