Actor(s): BlackTech
PLEAD is a RAT used by the actor BlackTech. FireEye uses the synonyms GOODTIMES for the RAT module and DRAWDOWN for the respective downloader.
rule win_plead_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2023-03-28" version = "1" description = "Detects win.plead." 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.plead" malpedia_rule_date = "20230328" malpedia_hash = "9d2d75cef573c1c2d861f5197df8f563b05a305d" malpedia_version = "20230407" 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 = { 8b4514 56 881c30 ff15???????? 3bc3 59 } // n = 6, score = 900 // 8b4514 | mov eax, dword ptr [ebp + 0x14] // 56 | push esi // 881c30 | mov byte ptr [eax + esi], bl // ff15???????? | // 3bc3 | cmp eax, ebx // 59 | pop ecx $sequence_1 = { 85f6 7417 56 e8???????? 40 50 6a01 } // n = 7, score = 900 // 85f6 | test esi, esi // 7417 | je 0x19 // 56 | push esi // e8???????? | // 40 | inc eax // 50 | push eax // 6a01 | push 1 $sequence_2 = { e8???????? 817d14e8030000 53 56 57 } // n = 5, score = 900 // e8???????? | // 817d14e8030000 | cmp dword ptr [ebp + 0x14], 0x3e8 // 53 | push ebx // 56 | push esi // 57 | push edi $sequence_3 = { bf00800000 57 53 56 897d14 } // n = 5, score = 900 // bf00800000 | mov edi, 0x8000 // 57 | push edi // 53 | push ebx // 56 | push esi // 897d14 | mov dword ptr [ebp + 0x14], edi $sequence_4 = { 897d14 e8???????? 83c40c 8d4514 53 50 56 } // n = 7, score = 900 // 897d14 | mov dword ptr [ebp + 0x14], edi // e8???????? | // 83c40c | add esp, 0xc // 8d4514 | lea eax, [ebp + 0x14] // 53 | push ebx // 50 | push eax // 56 | push esi $sequence_5 = { 50 6a01 ff15???????? 83c40c 85c0 7504 } // n = 6, score = 900 // 50 | push eax // 6a01 | push 1 // ff15???????? | // 83c40c | add esp, 0xc // 85c0 | test eax, eax // 7504 | jne 6 $sequence_6 = { 59 754c 8b451c 8b7d10 } // n = 4, score = 900 // 59 | pop ecx // 754c | jne 0x4e // 8b451c | mov eax, dword ptr [ebp + 0x1c] // 8b7d10 | mov edi, dword ptr [ebp + 0x10] $sequence_7 = { c745fc01000000 90 0f31 90 } // n = 4, score = 900 // c745fc01000000 | mov dword ptr [ebp - 4], 1 // 90 | nop // 0f31 | rdtsc // 90 | nop $sequence_8 = { 50 f3ab c705????????01000000 ff15???????? 8b1d???????? ffd3 } // n = 6, score = 600 // 50 | push eax // f3ab | rep stosd dword ptr es:[edi], eax // c705????????01000000 | // ff15???????? | // 8b1d???????? | // ffd3 | call ebx $sequence_9 = { 51 8b4d0c 33c0 8bd1 49 } // n = 5, score = 600 // 51 | push ecx // 8b4d0c | mov ecx, dword ptr [ebp + 0xc] // 33c0 | xor eax, eax // 8bd1 | mov edx, ecx // 49 | dec ecx $sequence_10 = { 40 49 8975fc 75ec 8bc6 5e 8be5 } // n = 7, score = 600 // 40 | inc eax // 49 | dec ecx // 8975fc | mov dword ptr [ebp - 4], esi // 75ec | jne 0xffffffee // 8bc6 | mov eax, esi // 5e | pop esi // 8be5 | mov esp, ebp $sequence_11 = { 0f8464010000 85db 0f845c010000 8bcf } // n = 4, score = 600 // 0f8464010000 | je 0x16a // 85db | test ebx, ebx // 0f845c010000 | je 0x162 // 8bcf | mov ecx, edi $sequence_12 = { 85f6 0f84d2000000 8bcf 33c0 } // n = 4, score = 600 // 85f6 | test esi, esi // 0f84d2000000 | je 0xd8 // 8bcf | mov ecx, edi // 33c0 | xor eax, eax $sequence_13 = { 53 50 8b1d???????? ffd3 85c0 743b } // n = 6, score = 600 // 53 | push ebx // 50 | push eax // 8b1d???????? | // ffd3 | call ebx // 85c0 | test eax, eax // 743b | je 0x3d $sequence_14 = { 49 85d2 8945fc 741c 8b4508 56 } // n = 6, score = 600 // 49 | dec ecx // 85d2 | test edx, edx // 8945fc | mov dword ptr [ebp - 4], eax // 741c | je 0x1e // 8b4508 | mov eax, dword ptr [ebp + 8] // 56 | push esi $sequence_15 = { 8b44240c 81e1ffff0000 81e2ffff0000 51 25ffff0000 52 50 } // n = 7, score = 600 // 8b44240c | mov eax, dword ptr [esp + 0xc] // 81e1ffff0000 | and ecx, 0xffff // 81e2ffff0000 | and edx, 0xffff // 51 | push ecx // 25ffff0000 | and eax, 0xffff // 52 | push edx // 50 | push eax $sequence_16 = { 648b1530000000 8b520c 8b521c 8b5a08 } // n = 4, score = 200 // 648b1530000000 | mov edx, dword ptr fs:[0x30] // 8b520c | mov edx, dword ptr [edx + 0xc] // 8b521c | mov edx, dword ptr [edx + 0x1c] // 8b5a08 | mov ebx, dword ptr [edx + 8] $sequence_17 = { 85c0 7407 8b400c 8b00 8b00 } // n = 5, score = 100 // 85c0 | test eax, eax // 7407 | je 9 // 8b400c | mov eax, dword ptr [eax + 0xc] // 8b00 | mov eax, dword ptr [eax] // 8b00 | mov eax, dword ptr [eax] $sequence_18 = { e8???????? 8b442404 0fb708 83c002 6a00 51 } // n = 6, score = 100 // e8???????? | // 8b442404 | mov eax, dword ptr [esp + 4] // 0fb708 | movzx ecx, word ptr [eax] // 83c002 | add eax, 2 // 6a00 | push 0 // 51 | push ecx $sequence_19 = { 7329 0fb702 2500f0ffff 3d00300000 } // n = 4, score = 100 // 7329 | jae 0x2b // 0fb702 | movzx eax, word ptr [edx] // 2500f0ffff | and eax, 0xfffff000 // 3d00300000 | cmp eax, 0x3000 $sequence_20 = { 7f04 e2e9 eb03 8945fc 8b45f4 e8???????? } // n = 6, score = 100 // 7f04 | jg 6 // e2e9 | loop 0xffffffeb // eb03 | jmp 5 // 8945fc | mov dword ptr [ebp - 4], eax // 8b45f4 | mov eax, dword ptr [ebp - 0xc] // e8???????? | $sequence_21 = { 3bef 77f7 ff750c ff7508 6a20 8d45e0 } // n = 6, score = 100 // 3bef | cmp ebp, edi // 77f7 | ja 0xfffffff9 // ff750c | push dword ptr [ebp + 0xc] // ff7508 | push dword ptr [ebp + 8] // 6a20 | push 0x20 // 8d45e0 | lea eax, [ebp - 0x20] $sequence_22 = { 8b07 85c0 75f2 ab } // n = 4, score = 100 // 8b07 | mov eax, dword ptr [edi] // 85c0 | test eax, eax // 75f2 | jne 0xfffffff4 // ab | stosd dword ptr es:[edi], eax $sequence_23 = { 8d5308 33c9 8b4304 83e808 d1e8 3bc8 7329 } // n = 7, score = 100 // 8d5308 | lea edx, [ebx + 8] // 33c9 | xor ecx, ecx // 8b4304 | mov eax, dword ptr [ebx + 4] // 83e808 | sub eax, 8 // d1e8 | shr eax, 1 // 3bc8 | cmp ecx, eax // 7329 | jae 0x2b condition: 7 of them and filesize < 8224768 }
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