Actor(s): Sofacy
There is no description at this point.
rule win_zebrocy_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2023-01-25" version = "1" description = "Detects win.zebrocy." 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.zebrocy" malpedia_rule_date = "20230124" malpedia_hash = "2ee0eebba83dce3d019a90519f2f972c0fcf9686" malpedia_version = "20230125" 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 = { 014158 11515c e8???????? dc6360 } // n = 4, score = 100 // 014158 | add dword ptr [ecx + 0x58], eax // 11515c | adc dword ptr [ecx + 0x5c], edx // e8???????? | // dc6360 | fsub qword ptr [ebx + 0x60] $sequence_1 = { 0103 31d2 85ff 8b03 } // n = 4, score = 100 // 0103 | add dword ptr [ebx], eax // 31d2 | xor edx, edx // 85ff | test edi, edi // 8b03 | mov eax, dword ptr [ebx] $sequence_2 = { 0103 83c41c 5b 5e } // n = 4, score = 100 // 0103 | add dword ptr [ebx], eax // 83c41c | add esp, 0x1c // 5b | pop ebx // 5e | pop esi $sequence_3 = { 0110 8b7dd4 ba???????? 89470c } // n = 4, score = 100 // 0110 | add dword ptr [eax], edx // 8b7dd4 | mov edi, dword ptr [ebp - 0x2c] // ba???????? | // 89470c | mov dword ptr [edi + 0xc], eax $sequence_4 = { e8???????? 83c404 89b538f7ffff 899d34f7ffff 889d24f7ffff 39bda8f7ffff 720f } // n = 7, score = 100 // e8???????? | // 83c404 | add esp, 4 // 89b538f7ffff | mov dword ptr [ebp - 0x8c8], esi // 899d34f7ffff | mov dword ptr [ebp - 0x8cc], ebx // 889d24f7ffff | mov byte ptr [ebp - 0x8dc], bl // 39bda8f7ffff | cmp dword ptr [ebp - 0x858], edi // 720f | jb 0x11 $sequence_5 = { 39b58cf7ffff 89bde0f7ffff 899ddcf7ffff 889dccf7ffff 720f 8b8578f7ffff 50 } // n = 7, score = 100 // 39b58cf7ffff | cmp dword ptr [ebp - 0x874], esi // 89bde0f7ffff | mov dword ptr [ebp - 0x820], edi // 899ddcf7ffff | mov dword ptr [ebp - 0x824], ebx // 889dccf7ffff | mov byte ptr [ebp - 0x834], bl // 720f | jb 0x11 // 8b8578f7ffff | mov eax, dword ptr [ebp - 0x888] // 50 | push eax $sequence_6 = { 0103 8b0e ba???????? e8???????? } // n = 4, score = 100 // 0103 | add dword ptr [ebx], eax // 8b0e | mov ecx, dword ptr [esi] // ba???????? | // e8???????? | $sequence_7 = { 7306 8d8d94f7ffff 8819 83f8ff } // n = 4, score = 100 // 7306 | jae 8 // 8d8d94f7ffff | lea ecx, [ebp - 0x86c] // 8819 | mov byte ptr [ecx], bl // 83f8ff | cmp eax, -1 $sequence_8 = { 0102 8b45d4 89500c 89c1 } // n = 4, score = 100 // 0102 | add dword ptr [edx], eax // 8b45d4 | mov eax, dword ptr [ebp - 0x2c] // 89500c | mov dword ptr [eax + 0xc], edx // 89c1 | mov ecx, eax $sequence_9 = { 014150 8b550c 115154 014158 } // n = 4, score = 100 // 014150 | add dword ptr [ecx + 0x50], eax // 8b550c | mov edx, dword ptr [ebp + 0xc] // 115154 | adc dword ptr [ecx + 0x54], edx // 014158 | add dword ptr [ecx + 0x58], eax $sequence_10 = { 89642458 e8???????? 8d7c2478 e8???????? 83c41c } // n = 5, score = 100 // 89642458 | mov dword ptr [esp + 0x58], esp // e8???????? | // 8d7c2478 | lea edi, [esp + 0x78] // e8???????? | // 83c41c | add esp, 0x1c $sequence_11 = { 8bf0 c1fe05 c1e106 030cb5c0a84200 eb02 } // n = 5, score = 100 // 8bf0 | mov esi, eax // c1fe05 | sar esi, 5 // c1e106 | shl ecx, 6 // 030cb5c0a84200 | add ecx, dword ptr [esi*4 + 0x42a8c0] // eb02 | jmp 4 $sequence_12 = { 668995ecf6ffff 8b95f4f4ffff 52 50 } // n = 4, score = 100 // 668995ecf6ffff | mov word ptr [ebp - 0x914], dx // 8b95f4f4ffff | mov edx, dword ptr [ebp - 0xb0c] // 52 | push edx // 50 | push eax $sequence_13 = { 3bc8 730a 68???????? e8???????? 8bd1 2bd0 } // n = 6, score = 100 // 3bc8 | cmp ecx, eax // 730a | jae 0xc // 68???????? | // e8???????? | // 8bd1 | mov edx, ecx // 2bd0 | sub edx, eax $sequence_14 = { 8b4c1938 8b4124 833800 741b 8b4134 833800 7e13 } // n = 7, score = 100 // 8b4c1938 | mov ecx, dword ptr [ecx + ebx + 0x38] // 8b4124 | mov eax, dword ptr [ecx + 0x24] // 833800 | cmp dword ptr [eax], 0 // 741b | je 0x1d // 8b4134 | mov eax, dword ptr [ecx + 0x34] // 833800 | cmp dword ptr [eax], 0 // 7e13 | jle 0x15 $sequence_15 = { 0110 5e 5f 5d } // n = 4, score = 100 // 0110 | add dword ptr [eax], edx // 5e | pop esi // 5f | pop edi // 5d | pop ebp condition: 7 of them and filesize < 393216 }
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