Actor(s): Emissary Panda, Hurricane Panda, Lazarus Group, Leviathan, Stone Panda
There is no description at this point.
rule win_ghost_rat_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2020-12-22" version = "1" description = "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.ghost_rat" malpedia_rule_date = "20201222" malpedia_hash = "30354d830a29f0fbd3714d93d94dea941d77a130" malpedia_version = "20201023" 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 = { 8b400c 85c0 7505 a1???????? 50 8bce e8???????? } // n = 7, score = 500 // 8b400c | mov eax, dword ptr [eax + 0xc] // 85c0 | test eax, eax // 7505 | jne 7 // a1???????? | // 50 | push eax // 8bce | mov ecx, esi // e8???????? | $sequence_1 = { 6a01 56 ff15???????? 5e c20800 } // n = 5, score = 500 // 6a01 | push 1 // 56 | push esi // ff15???????? | // 5e | pop esi // c20800 | ret 8 $sequence_2 = { 894df4 c745f800000000 df6df4 83ec08 dc0d???????? dd1c24 } // n = 6, score = 400 // 894df4 | mov dword ptr [ebp - 0xc], ecx // c745f800000000 | mov dword ptr [ebp - 8], 0 // df6df4 | fild qword ptr [ebp - 0xc] // 83ec08 | sub esp, 8 // dc0d???????? | // dd1c24 | fstp qword ptr [esp] $sequence_3 = { 8b06 6aff 50 ff15???????? 8b0e 51 } // n = 6, score = 400 // 8b06 | mov eax, dword ptr [esi] // 6aff | push -1 // 50 | push eax // ff15???????? | // 8b0e | mov ecx, dword ptr [esi] // 51 | push ecx $sequence_4 = { 8be5 5d c20400 894df4 c745f800000000 df6df4 } // n = 6, score = 400 // 8be5 | mov esp, ebp // 5d | pop ebp // c20400 | ret 4 // 894df4 | mov dword ptr [ebp - 0xc], ecx // c745f800000000 | mov dword ptr [ebp - 8], 0 // df6df4 | fild qword ptr [ebp - 0xc] $sequence_5 = { 8bd9 e8???????? 8b4d08 3bc8 } // n = 4, score = 400 // 8bd9 | mov ebx, ecx // e8???????? | // 8b4d08 | mov ecx, dword ptr [ebp + 8] // 3bc8 | cmp ecx, eax $sequence_6 = { 83c454 c20400 8d7901 57 ff15???????? 8bcf } // n = 6, score = 300 // 83c454 | add esp, 0x54 // c20400 | ret 4 // 8d7901 | lea edi, [ecx + 1] // 57 | push edi // ff15???????? | // 8bcf | mov ecx, edi $sequence_7 = { 59 83c8ff e9???????? 8b45fc } // n = 4, score = 300 // 59 | pop ecx // 83c8ff | or eax, 0xffffffff // e9???????? | // 8b45fc | mov eax, dword ptr [ebp - 4] $sequence_8 = { f3a5 53 8bcd e8???????? 53 ff15???????? } // n = 6, score = 300 // f3a5 | rep movsd dword ptr es:[edi], dword ptr [esi] // 53 | push ebx // 8bcd | mov ecx, ebp // e8???????? | // 53 | push ebx // ff15???????? | $sequence_9 = { 50 6800000080 ff15???????? 85c0 7407 32c0 e9???????? } // n = 7, score = 300 // 50 | push eax // 6800000080 | push 0x80000000 // ff15???????? | // 85c0 | test eax, eax // 7407 | je 9 // 32c0 | xor al, al // e9???????? | $sequence_10 = { ff7510 ff75dc ff15???????? 85c0 7507 c745e401000000 } // n = 6, score = 300 // ff7510 | push dword ptr [ebp + 0x10] // ff75dc | push dword ptr [ebp - 0x24] // ff15???????? | // 85c0 | test eax, eax // 7507 | jne 9 // c745e401000000 | mov dword ptr [ebp - 0x1c], 1 $sequence_11 = { ff15???????? 8b4e2c 6a00 51 ff15???????? 8b4610 } // n = 6, score = 300 // ff15???????? | // 8b4e2c | mov ecx, dword ptr [esi + 0x2c] // 6a00 | push 0 // 51 | push ecx // ff15???????? | // 8b4610 | mov eax, dword ptr [esi + 0x10] $sequence_12 = { 85c0 7506 46 83fe19 } // n = 4, score = 300 // 85c0 | test eax, eax // 7506 | jne 8 // 46 | inc esi // 83fe19 | cmp esi, 0x19 $sequence_13 = { 6a00 c705????????20010000 e8???????? 8b35???????? 83c434 } // n = 5, score = 300 // 6a00 | push 0 // c705????????20010000 | // e8???????? | // 8b35???????? | // 83c434 | add esp, 0x34 $sequence_14 = { 68???????? 50 6802000080 e8???????? 83c41c 5f } // n = 6, score = 300 // 68???????? | // 50 | push eax // 6802000080 | push 0x80000002 // e8???????? | // 83c41c | add esp, 0x1c // 5f | pop edi $sequence_15 = { e9???????? 8d45dc 50 681f000200 } // n = 4, score = 300 // e9???????? | // 8d45dc | lea eax, [ebp - 0x24] // 50 | push eax // 681f000200 | push 0x2001f $sequence_16 = { ff7508 ff15???????? 40 50 ff15???????? 59 } // n = 6, score = 300 // ff7508 | push dword ptr [ebp + 8] // ff15???????? | // 40 | inc eax // 50 | push eax // ff15???????? | // 59 | pop ecx $sequence_17 = { 8dbd85feffff f3ab 66ab aa } // n = 4, score = 300 // 8dbd85feffff | lea edi, [ebp - 0x17b] // f3ab | rep stosd dword ptr es:[edi], eax // 66ab | stosw word ptr es:[edi], ax // aa | stosb byte ptr es:[edi], al $sequence_18 = { 8b36 813f6b006500 7406 813f4b004500 75e8 } // n = 5, score = 200 // 8b36 | mov esi, dword ptr [esi] // 813f6b006500 | cmp dword ptr [edi], 0x65006b // 7406 | je 8 // 813f4b004500 | cmp dword ptr [edi], 0x45004b // 75e8 | jne 0xffffffea $sequence_19 = { 8b760c 8b761c 8b4608 8b7e20 8b36 813f6b006500 } // n = 6, score = 200 // 8b760c | mov esi, dword ptr [esi + 0xc] // 8b761c | mov esi, dword ptr [esi + 0x1c] // 8b4608 | mov eax, dword ptr [esi + 8] // 8b7e20 | mov edi, dword ptr [esi + 0x20] // 8b36 | mov esi, dword ptr [esi] // 813f6b006500 | cmp dword ptr [edi], 0x65006b $sequence_20 = { 83e9fc c7014c696272 83e9fc c70161727941 83e9fc } // n = 5, score = 200 // 83e9fc | sub ecx, -4 // c7014c696272 | mov dword ptr [ecx], 0x7262694c // 83e9fc | sub ecx, -4 // c70161727941 | mov dword ptr [ecx], 0x41797261 // 83e9fc | sub ecx, -4 $sequence_21 = { 8b55b8 8911 eb26 8b45b4 8b4d08 8d540102 8955b0 } // n = 7, score = 100 // 8b55b8 | mov edx, dword ptr [ebp - 0x48] // 8911 | mov dword ptr [ecx], edx // eb26 | jmp 0x28 // 8b45b4 | mov eax, dword ptr [ebp - 0x4c] // 8b4d08 | mov ecx, dword ptr [ebp + 8] // 8d540102 | lea edx, [ecx + eax + 2] // 8955b0 | mov dword ptr [ebp - 0x50], edx $sequence_22 = { 8985fcfeffff 8b8d6cffffff 6bc928 8b9538ffffff 8b440a10 50 } // n = 6, score = 100 // 8985fcfeffff | mov dword ptr [ebp - 0x104], eax // 8b8d6cffffff | mov ecx, dword ptr [ebp - 0x94] // 6bc928 | imul ecx, ecx, 0x28 // 8b9538ffffff | mov edx, dword ptr [ebp - 0xc8] // 8b440a10 | mov eax, dword ptr [edx + ecx + 0x10] // 50 | push eax $sequence_23 = { 817f0865006c00 7407 817f0845004c00 75c2 817f0c33003200 75b9 817f102e006400 } // n = 7, score = 100 // 817f0865006c00 | cmp dword ptr [edi + 8], 0x6c0065 // 7407 | je 9 // 817f0845004c00 | cmp dword ptr [edi + 8], 0x4c0045 // 75c2 | jne 0xffffffc4 // 817f0c33003200 | cmp dword ptr [edi + 0xc], 0x320033 // 75b9 | jne 0xffffffbb // 817f102e006400 | cmp dword ptr [edi + 0x10], 0x64002e $sequence_24 = { 035110 8955f4 6a00 6a01 ffb560ffffff ff55f4 } // n = 6, score = 100 // 035110 | add edx, dword ptr [ecx + 0x10] // 8955f4 | mov dword ptr [ebp - 0xc], edx // 6a00 | push 0 // 6a01 | push 1 // ffb560ffffff | push dword ptr [ebp - 0xa0] // ff55f4 | call dword ptr [ebp - 0xc] $sequence_25 = { 8b458c 898504ffffff 8b4d94 898d00ffffff } // n = 4, score = 100 // 8b458c | mov eax, dword ptr [ebp - 0x74] // 898504ffffff | mov dword ptr [ebp - 0xfc], eax // 8b4d94 | mov ecx, dword ptr [ebp - 0x6c] // 898d00ffffff | mov dword ptr [ebp - 0x100], ecx condition: 7 of them and filesize < 303104 }
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