Actor(s): APT28
There is no description at this point.
rule win_sedreco_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2023-07-11" version = "1" description = "Detects win.sedreco." 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.sedreco" 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 = { 8b750c 56 e8???????? 6a08 } // n = 4, score = 2600 // 8b750c | mov esi, dword ptr [ebp + 0xc] // 56 | push esi // e8???????? | // 6a08 | push 8 $sequence_1 = { e8???????? 89450c 56 85c0 } // n = 4, score = 2600 // e8???????? | // 89450c | mov dword ptr [ebp + 0xc], eax // 56 | push esi // 85c0 | test eax, eax $sequence_2 = { 836d0804 53 56 8b750c } // n = 4, score = 2600 // 836d0804 | sub dword ptr [ebp + 8], 4 // 53 | push ebx // 56 | push esi // 8b750c | mov esi, dword ptr [ebp + 0xc] $sequence_3 = { c645ff30 e8???????? 85c0 7505 e8???????? } // n = 5, score = 2600 // c645ff30 | mov byte ptr [ebp - 1], 0x30 // e8???????? | // 85c0 | test eax, eax // 7505 | jne 7 // e8???????? | $sequence_4 = { 55 8bec 51 836d0804 } // n = 4, score = 2600 // 55 | push ebp // 8bec | mov ebp, esp // 51 | push ecx // 836d0804 | sub dword ptr [ebp + 8], 4 $sequence_5 = { 50 68???????? 6a0d 68???????? } // n = 4, score = 2500 // 50 | push eax // 68???????? | // 6a0d | push 0xd // 68???????? | $sequence_6 = { 7ce0 a1???????? 5e 85c0 } // n = 4, score = 2400 // 7ce0 | jl 0xffffffe2 // a1???????? | // 5e | pop esi // 85c0 | test eax, eax $sequence_7 = { 7411 6a04 68???????? 68???????? } // n = 4, score = 2400 // 7411 | je 0x13 // 6a04 | push 4 // 68???????? | // 68???????? | $sequence_8 = { 51 6802020000 68???????? 50 } // n = 4, score = 2400 // 51 | push ecx // 6802020000 | push 0x202 // 68???????? | // 50 | push eax $sequence_9 = { ffd6 8b0d???????? 898150010000 85c0 } // n = 4, score = 2200 // ffd6 | call esi // 8b0d???????? | // 898150010000 | mov dword ptr [ecx + 0x150], eax // 85c0 | test eax, eax $sequence_10 = { ffd6 8b0d???????? 894148 85c0 } // n = 4, score = 2200 // ffd6 | call esi // 8b0d???????? | // 894148 | mov dword ptr [ecx + 0x48], eax // 85c0 | test eax, eax $sequence_11 = { b8f7eeeeee 8b4df0 64890d00000000 59 5f 5e 5b } // n = 7, score = 2200 // b8f7eeeeee | mov eax, 0xeeeeeef7 // 8b4df0 | mov ecx, dword ptr [ebp - 0x10] // 64890d00000000 | mov dword ptr fs:[0], ecx // 59 | pop ecx // 5f | pop edi // 5e | pop esi // 5b | pop ebx $sequence_12 = { 83c604 81fe???????? 7ce0 a1???????? } // n = 4, score = 2200 // 83c604 | add esi, 4 // 81fe???????? | // 7ce0 | jl 0xffffffe2 // a1???????? | $sequence_13 = { ffd6 8b0d???????? 89417c 85c0 } // n = 4, score = 2200 // ffd6 | call esi // 8b0d???????? | // 89417c | mov dword ptr [ecx + 0x7c], eax // 85c0 | test eax, eax $sequence_14 = { 56 be???????? 8b06 85c0 740f 50 } // n = 6, score = 2200 // 56 | push esi // be???????? | // 8b06 | mov eax, dword ptr [esi] // 85c0 | test eax, eax // 740f | je 0x11 // 50 | push eax $sequence_15 = { 6a01 68???????? ff35???????? ff15???????? ffd0 } // n = 5, score = 1100 // 6a01 | push 1 // 68???????? | // ff35???????? | // ff15???????? | // ffd0 | call eax $sequence_16 = { 8b442458 89442428 488b442450 4889442420 41b903000000 4533c0 } // n = 6, score = 500 // 8b442458 | ret // 89442428 | dec eax // 488b442450 | mov dword ptr [esp + 0x10], ebx // 4889442420 | mov eax, dword ptr [esp + 0x58] // 41b903000000 | mov dword ptr [esp + 0x28], eax // 4533c0 | dec eax $sequence_17 = { 4533c0 ba00000080 488b0d???????? 488b05???????? ff5040 } // n = 5, score = 500 // 4533c0 | mov ecx, 3 // ba00000080 | inc ebp // 488b0d???????? | // 488b05???????? | // ff5040 | xor eax, eax $sequence_18 = { eb04 4883c010 4883c428 c3 48890d???????? c3 48895c2410 } // n = 7, score = 500 // eb04 | jmp 6 // 4883c010 | dec eax // 4883c428 | add eax, 0x10 // c3 | dec eax // 48890d???????? | // c3 | add esp, 0x28 // 48895c2410 | ret $sequence_19 = { 4533c9 4533c0 33d2 488bc8 488b05???????? } // n = 5, score = 500 // 4533c9 | call dword ptr [eax + 0x10] // 4533c0 | test eax, eax // 33d2 | call dword ptr [eax + 0x118] // 488bc8 | je 0xd // 488b05???????? | $sequence_20 = { 33c9 488b05???????? ff90f0000000 488905???????? } // n = 4, score = 500 // 33c9 | mov ecx, eax // 488b05???????? | // ff90f0000000 | inc esp // 488905???????? | $sequence_21 = { 6800010000 6a00 68???????? e8???????? 6800020000 6a00 68???????? } // n = 7, score = 500 // 6800010000 | push -1 // 6a00 | push 0 // 68???????? | // e8???????? | // 6800020000 | push 0 // 6a00 | call esi // 68???????? | $sequence_22 = { ff9018010000 e8???????? 48833d????????00 7405 } // n = 4, score = 500 // ff9018010000 | mov dword ptr [esp + 0x20], eax // e8???????? | // 48833d????????00 | // 7405 | inc ecx $sequence_23 = { 50 68???????? 6aff 68???????? 6a00 } // n = 5, score = 500 // 50 | add esi, 4 // 68???????? | // 6aff | jl 0xffffffe2 // 68???????? | // 6a00 | push esi $sequence_24 = { 68???????? e8???????? 8b35???????? 83c404 6a00 68???????? 6aff } // n = 7, score = 500 // 68???????? | // e8???????? | // 8b35???????? | // 83c404 | add esi, 4 // 6a00 | jl 0xffffffe2 // 68???????? | // 6aff | pop esi $sequence_25 = { 68???????? 6a00 6a00 ffd6 50 68???????? } // n = 6, score = 500 // 68???????? | // 6a00 | mov eax, dword ptr [esi] // 6a00 | test eax, eax // ffd6 | je 0x13 // 50 | push eax // 68???????? | $sequence_26 = { 448bc0 ba08000000 488b0d???????? ff15???????? 488905???????? } // n = 5, score = 500 // 448bc0 | call dword ptr [eax + 0x40] // ba08000000 | inc ebp // 488b0d???????? | // ff15???????? | // 488905???????? | $sequence_27 = { 488b0d???????? 488b05???????? ff5010 85c0 } // n = 4, score = 500 // 488b0d???????? | // 488b05???????? | // ff5010 | mov eax, dword ptr [esp + 0x50] // 85c0 | dec eax $sequence_28 = { 53 68???????? ff35???????? ffd6 ffd0 85c0 } // n = 6, score = 400 // 53 | push ebx // 68???????? | // ff35???????? | // ffd6 | call esi // ffd0 | call eax // 85c0 | test eax, eax $sequence_29 = { 7cd5 68???????? e8???????? 8b4dfc } // n = 4, score = 400 // 7cd5 | call esi // 68???????? | // e8???????? | // 8b4dfc | push eax $sequence_30 = { 8b4dfc 5f 5e 33cd b8???????? 5b e8???????? } // n = 7, score = 400 // 8b4dfc | push 0 // 5f | push -1 // 5e | push 0 // 33cd | push 0 // b8???????? | // 5b | call esi // e8???????? | $sequence_31 = { c20c00 6a02 ff74240c ff74240c e8???????? c20800 ff74240c } // n = 7, score = 300 // c20c00 | ret 0xc // 6a02 | push 2 // ff74240c | push dword ptr [esp + 0xc] // ff74240c | push dword ptr [esp + 0xc] // e8???????? | // c20800 | ret 8 // ff74240c | push dword ptr [esp + 0xc] $sequence_32 = { 6a01 68???????? 68???????? 8d45f8 } // n = 4, score = 300 // 6a01 | add esp, 4 // 68???????? | // 68???????? | // 8d45f8 | push 0 $sequence_33 = { 83fefc 7436 8a0a 3a08 } // n = 4, score = 300 // 83fefc | pop ebx // 7436 | push 0 // 8a0a | call esi // 3a08 | mov ecx, dword ptr [ebp - 4] $sequence_34 = { 8a0a 3a08 7527 83fefd 742b } // n = 5, score = 300 // 8a0a | push -1 // 3a08 | mov ecx, dword ptr [ebp - 4] // 7527 | pop edi // 83fefd | pop esi // 742b | xor ecx, ebp $sequence_35 = { 52 50 ff91f0000000 8bf0 } // n = 4, score = 300 // 52 | push edx // 50 | push eax // ff91f0000000 | call dword ptr [ecx + 0xf0] // 8bf0 | mov esi, eax $sequence_36 = { 7518 56 ff15???????? 5f 5e 5b } // n = 6, score = 300 // 7518 | xor ecx, ebp // 56 | jl 0xffffffd7 // ff15???????? | // 5f | mov ecx, dword ptr [ebp - 4] // 5e | mov ecx, dword ptr [ebp - 4] // 5b | pop edi $sequence_37 = { 8d55f8 52 50 8b08 ff5124 } // n = 5, score = 300 // 8d55f8 | lea edx, [ebp - 8] // 52 | push edx // 50 | push eax // 8b08 | mov ecx, dword ptr [eax] // ff5124 | call dword ptr [ecx + 0x24] $sequence_38 = { 8d443001 6a00 51 50 56 } // n = 5, score = 200 // 8d443001 | lea eax, [eax + esi + 1] // 6a00 | push 0 // 51 | push ecx // 50 | push eax // 56 | push esi $sequence_39 = { ff512c 8bce 8bd8 e8???????? 57 ff15???????? } // n = 6, score = 200 // ff512c | call dword ptr [ecx + 0x2c] // 8bce | mov ecx, esi // 8bd8 | mov ebx, eax // e8???????? | // 57 | push edi // ff15???????? | $sequence_40 = { 8b85ecfeffff 8b4df4 64890d00000000 5f 5e 5b } // n = 6, score = 200 // 8b85ecfeffff | mov eax, dword ptr [ebp - 0x114] // 8b4df4 | mov ecx, dword ptr [ebp - 0xc] // 64890d00000000 | mov dword ptr fs:[0], ecx // 5f | pop edi // 5e | pop esi // 5b | pop ebx $sequence_41 = { 8945fc 8b45f0 8945f4 8b45f4 50 } // n = 5, score = 200 // 8945fc | mov dword ptr [ebp - 4], eax // 8b45f0 | mov eax, dword ptr [ebp - 0x10] // 8945f4 | mov dword ptr [ebp - 0xc], eax // 8b45f4 | mov eax, dword ptr [ebp - 0xc] // 50 | push eax $sequence_42 = { 83ec24 53 56 57 c745dce197af54 0f6e45dc } // n = 6, score = 200 // 83ec24 | sub esp, 0x24 // 53 | push ebx // 56 | push esi // 57 | push edi // c745dce197af54 | mov dword ptr [ebp - 0x24], 0x54af97e1 // 0f6e45dc | movd mm0, dword ptr [ebp - 0x24] $sequence_43 = { 56 57 894df0 ff15???????? 8945fc 8b45f0 } // n = 6, score = 200 // 56 | push esi // 57 | push edi // 894df0 | mov dword ptr [ebp - 0x10], ecx // ff15???????? | // 8945fc | mov dword ptr [ebp - 4], eax // 8b45f0 | mov eax, dword ptr [ebp - 0x10] $sequence_44 = { 741f 6a07 68???????? e8???????? 85c0 7402 eb0d } // n = 7, score = 200 // 741f | je 0x21 // 6a07 | push 7 // 68???????? | // e8???????? | // 85c0 | test eax, eax // 7402 | je 4 // eb0d | jmp 0xf $sequence_45 = { 6aff 50 6a00 6a00 ff15???????? 5e } // n = 6, score = 200 // 6aff | push -1 // 50 | push eax // 6a00 | push 0 // 6a00 | push 0 // ff15???????? | // 5e | pop esi $sequence_46 = { 8d7001 56 ff15???????? 84c0 741e } // n = 5, score = 100 // 8d7001 | jbe 0x25 // 56 | lea esi, [esp + 0x43c] // ff15???????? | // 84c0 | mov cl, byte ptr [esp + eax + 0x3c] // 741e | cmp cl, 0xa $sequence_47 = { 83c460 c20800 8d4c2474 c744247454522500 51 8d4c2414 } // n = 6, score = 100 // 83c460 | pop esi // c20800 | test eax, eax // 8d4c2474 | call esi // c744247454522500 | mov dword ptr [ecx + 0x2c], eax // 51 | test eax, eax // 8d4c2414 | cmp edi, ebp $sequence_48 = { 8a45ef 6a00 8d4da8 8845a8 ff15???????? } // n = 5, score = 100 // 8a45ef | add esi, 4 // 6a00 | jl 0xffffffe2 // 8d4da8 | push esi // 8845a8 | mov eax, dword ptr [esi] // ff15???????? | $sequence_49 = { 3bfd 7623 8db4243c040000 8a4c043c 80f90a 7509 80fb0d } // n = 7, score = 100 // 3bfd | pop esi // 7623 | test eax, eax // 8db4243c040000 | add esi, 4 // 8a4c043c | jl 0xffffffe2 // 80f90a | jl 0xffffffe2 // 7509 | pop esi // 80fb0d | test eax, eax $sequence_50 = { 8b4c2474 8b7c2478 8944241c 56 89442424 6a01 } // n = 6, score = 100 // 8b4c2474 | test eax, eax // 8b7c2478 | je 0x15 // 8944241c | push eax // 56 | add esi, 4 // 89442424 | jl 0xffffffe2 // 6a01 | pop esi $sequence_51 = { e8???????? 83c404 8bbc2448100000 8a542418 8817 897704 897708 } // n = 7, score = 100 // e8???????? | // 83c404 | mov eax, dword ptr [esi] // 8bbc2448100000 | test eax, eax // 8a542418 | je 0x13 // 8817 | push eax // 897704 | add esi, 4 // 897708 | jl 0xffffffe2 $sequence_52 = { 50 ffd5 85c0 7526 8d4c2414 c7442414d4522500 } // n = 6, score = 100 // 50 | add esi, 4 // ffd5 | jl 0xffffffe2 // 85c0 | pop esi // 7526 | test eax, eax // 8d4c2414 | add esi, 4 // c7442414d4522500 | jl 0xffffffe2 $sequence_53 = { 83e103 f3a4 8d4c241c ff15???????? 33f6 8d442414 } // n = 6, score = 100 // 83e103 | add esi, 4 // f3a4 | jl 0xffffffe2 // 8d4c241c | pop esi // ff15???????? | // 33f6 | jl 0xffffffe2 // 8d442414 | pop esi condition: 7 of them and filesize < 1586176 }
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