Actor(s): EMISSARY PANDA
Sideloader used by EmissaryPanda
rule win_hyperssl_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2022-05-16" version = "1" description = "Detects win.hyperssl." 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.hyperssl" malpedia_rule_date = "20220513" malpedia_hash = "7f4b2229e6ae614d86d74917f6d5b41890e62a26" malpedia_version = "20220516" 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 = { 0101 0100 0100 0100 } // n = 4, score = 200 // 0101 | add dword ptr [ecx], eax // 0100 | add dword ptr [eax], eax // 0100 | add dword ptr [eax], eax // 0100 | add dword ptr [eax], eax $sequence_1 = { 0100 0200 0200 0002 0002 } // n = 5, score = 200 // 0100 | add dword ptr [eax], eax // 0200 | add al, byte ptr [eax] // 0200 | add al, byte ptr [eax] // 0002 | add byte ptr [edx], al // 0002 | add byte ptr [edx], al $sequence_2 = { 0108 3310 c1c607 c1c210 } // n = 4, score = 200 // 0108 | add dword ptr [eax], ecx // 3310 | xor edx, dword ptr [eax] // c1c607 | rol esi, 7 // c1c210 | rol edx, 0x10 $sequence_3 = { 0101 014514 2bf3 8b5d0c } // n = 4, score = 200 // 0101 | add dword ptr [ecx], eax // 014514 | add dword ptr [ebp + 0x14], eax // 2bf3 | sub esi, ebx // 8b5d0c | mov ebx, dword ptr [ebp + 0xc] $sequence_4 = { 2bc8 2bf0 5f 8a10 301401 8a10 301406 } // n = 7, score = 200 // 2bc8 | sub ecx, eax // 2bf0 | sub esi, eax // 5f | pop edi // 8a10 | mov dl, byte ptr [eax] // 301401 | xor byte ptr [ecx + eax], dl // 8a10 | mov dl, byte ptr [eax] // 301406 | xor byte ptr [esi + eax], dl $sequence_5 = { e8???????? 33c0 40 5d c20c00 6a08 68???????? } // n = 7, score = 200 // e8???????? | // 33c0 | xor eax, eax // 40 | inc eax // 5d | pop ebp // c20c00 | ret 0xc // 6a08 | push 8 // 68???????? | $sequence_6 = { 0108 3908 1bc9 f7d9 } // n = 4, score = 200 // 0108 | add dword ptr [eax], ecx // 3908 | cmp dword ptr [eax], ecx // 1bc9 | sbb ecx, ecx // f7d9 | neg ecx $sequence_7 = { 8a10 301406 40 4f 75f2 5f 5e } // n = 7, score = 200 // 8a10 | mov dl, byte ptr [eax] // 301406 | xor byte ptr [esi + eax], dl // 40 | inc eax // 4f | dec edi // 75f2 | jne 0xfffffff4 // 5f | pop edi // 5e | pop esi $sequence_8 = { c20c00 6a08 68???????? e8???????? 8b450c 83f801 757a } // n = 7, score = 200 // c20c00 | ret 0xc // 6a08 | push 8 // 68???????? | // e8???????? | // 8b450c | mov eax, dword ptr [ebp + 0xc] // 83f801 | cmp eax, 1 // 757a | jne 0x7c $sequence_9 = { 8bc8 85c9 7436 8b413c } // n = 4, score = 200 // 8bc8 | mov ecx, eax // 85c9 | test ecx, ecx // 7436 | je 0x38 // 8b413c | mov eax, dword ptr [ecx + 0x3c] $sequence_10 = { 0105???????? 8d558c 89458c 894590 } // n = 4, score = 200 // 0105???????? | // 8d558c | lea edx, [ebp - 0x74] // 89458c | mov dword ptr [ebp - 0x74], eax // 894590 | mov dword ptr [ebp - 0x70], eax $sequence_11 = { 0105???????? 8d8d5cffffff 89855cffffff 898560ffffff } // n = 4, score = 200 // 0105???????? | // 8d8d5cffffff | lea ecx, [ebp - 0xa4] // 89855cffffff | mov dword ptr [ebp - 0xa4], eax // 898560ffffff | mov dword ptr [ebp - 0xa0], eax $sequence_12 = { 33c2 8945f8 33c0 8da42400000000 } // n = 4, score = 200 // 33c2 | xor eax, edx // 8945f8 | mov dword ptr [ebp - 8], eax // 33c0 | xor eax, eax // 8da42400000000 | lea esp, [esp] $sequence_13 = { 7423 56 57 b9???????? } // n = 4, score = 200 // 7423 | je 0x25 // 56 | push esi // 57 | push edi // b9???????? | $sequence_14 = { 03c1 742a 8b4028 03c1 7423 56 } // n = 6, score = 200 // 03c1 | add eax, ecx // 742a | je 0x2c // 8b4028 | mov eax, dword ptr [eax + 0x28] // 03c1 | add eax, ecx // 7423 | je 0x25 // 56 | push esi condition: 7 of them and filesize < 835584 }
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