Actor(s): Stone Panda
There is no description at this point.
rule win_redleaves_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2023-07-11" version = "1" description = "Detects win.redleaves." 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.redleaves" 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 = { 7565 7279 55 7365 7254 } // n = 5, score = 400 // 7565 | jne 0x67 // 7279 | jb 0x7b // 55 | push ebp // 7365 | jae 0x67 // 7254 | jb 0x56 $sequence_1 = { 59 89f9 8d64241c d2c0 } // n = 4, score = 400 // 59 | pop ecx // 89f9 | mov ecx, edi // 8d64241c | lea esp, [esp + 0x1c] // d2c0 | rol al, cl $sequence_2 = { 9c 894504 9c 9c } // n = 4, score = 400 // 9c | pushfd // 894504 | mov dword ptr [ebp + 4], eax // 9c | pushfd // 9c | pushfd $sequence_3 = { 8d64241c d2c0 8a01 9c } // n = 4, score = 400 // 8d64241c | lea esp, [esp + 0x1c] // d2c0 | rol al, cl // 8a01 | mov al, byte ptr [ecx] // 9c | pushfd $sequence_4 = { 57 54 53 51 7565 } // n = 5, score = 400 // 57 | push edi // 54 | push esp // 53 | push ebx // 51 | push ecx // 7565 | jne 0x67 $sequence_5 = { 83e901 0f85edffffff 89d0 29f8 5f 5b } // n = 6, score = 400 // 83e901 | sub ecx, 1 // 0f85edffffff | jne 0xfffffff3 // 89d0 | mov eax, edx // 29f8 | sub eax, edi // 5f | pop edi // 5b | pop ebx $sequence_6 = { 47 657449 7041 64647254 } // n = 4, score = 400 // 47 | inc edi // 657449 | je 0x4c // 7041 | jo 0x43 // 64647254 | jb 0x58 $sequence_7 = { 395e1c 750f c7862001000003000000 e9???????? } // n = 4, score = 300 // 395e1c | cmp dword ptr [esi + 0x1c], ebx // 750f | jne 0x11 // c7862001000003000000 | mov dword ptr [esi + 0x120], 3 // e9???????? | $sequence_8 = { 9c 8f442428 880424 e8???????? } // n = 4, score = 300 // 9c | pushfd // 8f442428 | pop dword ptr [esp + 0x28] // 880424 | mov byte ptr [esp], al // e8???????? | $sequence_9 = { 85c0 7449 83fb01 7504 } // n = 4, score = 300 // 85c0 | test eax, eax // 7449 | je 0x4b // 83fb01 | cmp ebx, 1 // 7504 | jne 6 $sequence_10 = { 85c0 7443 8d85acfeffff 68???????? 50 } // n = 5, score = 300 // 85c0 | test eax, eax // 7443 | je 0x45 // 8d85acfeffff | lea eax, [ebp - 0x154] // 68???????? | // 50 | push eax $sequence_11 = { 7437 2dc9000000 7430 83e806 752b 8d45f0 50 } // n = 7, score = 300 // 7437 | je 0x39 // 2dc9000000 | sub eax, 0xc9 // 7430 | je 0x32 // 83e806 | sub eax, 6 // 752b | jne 0x2d // 8d45f0 | lea eax, [ebp - 0x10] // 50 | push eax $sequence_12 = { 85c0 7452 833d????????00 7449 833d????????00 } // n = 5, score = 300 // 85c0 | test eax, eax // 7452 | je 0x54 // 833d????????00 | // 7449 | je 0x4b // 833d????????00 | $sequence_13 = { 3bc3 74d4 8b08 50 ff5108 } // n = 5, score = 300 // 3bc3 | cmp eax, ebx // 74d4 | je 0xffffffd6 // 8b08 | mov ecx, dword ptr [eax] // 50 | push eax // ff5108 | call dword ptr [ecx + 8] $sequence_14 = { 898d8cfdffff 8b04b0 8b4018 898588fdffff } // n = 4, score = 300 // 898d8cfdffff | mov dword ptr [ebp - 0x274], ecx // 8b04b0 | mov eax, dword ptr [eax + esi*4] // 8b4018 | mov eax, dword ptr [eax + 0x18] // 898588fdffff | mov dword ptr [ebp - 0x278], eax $sequence_15 = { 54 9c 60 9c } // n = 4, score = 300 // 54 | push esp // 9c | pushfd // 60 | pushal // 9c | pushfd $sequence_16 = { 33c0 f3ab 8b860c020000 3bc3 0f840e020000 399e10020000 } // n = 6, score = 300 // 33c0 | xor eax, eax // f3ab | rep stosd dword ptr es:[edi], eax // 8b860c020000 | mov eax, dword ptr [esi + 0x20c] // 3bc3 | cmp eax, ebx // 0f840e020000 | je 0x214 // 399e10020000 | cmp dword ptr [esi + 0x210], ebx condition: 7 of them and filesize < 1679360 }
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