Actor(s): Equation Group
There is no description at this point.
rule win_fanny_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2023-01-25" version = "1" description = "Detects win.fanny." 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.fanny" 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 = { 33c0 e9???????? 57 e8???????? 8bd8 } // n = 5, score = 200 // 33c0 | xor eax, eax // e9???????? | // 57 | push edi // e8???????? | // 8bd8 | mov ebx, eax $sequence_1 = { 51 ff15???????? 8985ccfdffff 83bdccfdffff00 7505 e9???????? } // n = 6, score = 200 // 51 | push ecx // ff15???????? | // 8985ccfdffff | mov dword ptr [ebp - 0x234], eax // 83bdccfdffff00 | cmp dword ptr [ebp - 0x234], 0 // 7505 | jne 7 // e9???????? | $sequence_2 = { 7502 eb52 8d95c8fdffff 52 6a00 } // n = 5, score = 200 // 7502 | jne 4 // eb52 | jmp 0x54 // 8d95c8fdffff | lea edx, [ebp - 0x238] // 52 | push edx // 6a00 | push 0 $sequence_3 = { aa 89b5d8fdffff 89b5d4fdffff 89b5e0fdffff 8b7d08 } // n = 5, score = 200 // aa | stosb byte ptr es:[edi], al // 89b5d8fdffff | mov dword ptr [ebp - 0x228], esi // 89b5d4fdffff | mov dword ptr [ebp - 0x22c], esi // 89b5e0fdffff | mov dword ptr [ebp - 0x220], esi // 8b7d08 | mov edi, dword ptr [ebp + 8] $sequence_4 = { 57 ff35???????? ffd6 3bc3 8b1d???????? 742c 3dea000000 } // n = 7, score = 200 // 57 | push edi // ff35???????? | // ffd6 | call esi // 3bc3 | cmp eax, ebx // 8b1d???????? | // 742c | je 0x2e // 3dea000000 | cmp eax, 0xea $sequence_5 = { 8b4dfc 8b11 52 ff15???????? 85c0 7502 eb17 } // n = 7, score = 200 // 8b4dfc | mov ecx, dword ptr [ebp - 4] // 8b11 | mov edx, dword ptr [ecx] // 52 | push edx // ff15???????? | // 85c0 | test eax, eax // 7502 | jne 4 // eb17 | jmp 0x19 $sequence_6 = { 50 8d45f0 50 8d85ecfbffff 57 } // n = 5, score = 200 // 50 | push eax // 8d45f0 | lea eax, [ebp - 0x10] // 50 | push eax // 8d85ecfbffff | lea eax, [ebp - 0x414] // 57 | push edi $sequence_7 = { ff75fc ff7508 ffd6 83f8ff 0f84a5000000 8d45f8 6a00 } // n = 7, score = 200 // ff75fc | push dword ptr [ebp - 4] // ff7508 | push dword ptr [ebp + 8] // ffd6 | call esi // 83f8ff | cmp eax, -1 // 0f84a5000000 | je 0xab // 8d45f8 | lea eax, [ebp - 8] // 6a00 | push 0 $sequence_8 = { 8901 c3 a1???????? 56 6a14 85c0 5e } // n = 7, score = 200 // 8901 | mov dword ptr [ecx], eax // c3 | ret // a1???????? | // 56 | push esi // 6a14 | push 0x14 // 85c0 | test eax, eax // 5e | pop esi $sequence_9 = { 8b4dc8 0fb65101 81faff000000 750e 8b45c8 0fb64802 83f925 } // n = 7, score = 200 // 8b4dc8 | mov ecx, dword ptr [ebp - 0x38] // 0fb65101 | movzx edx, byte ptr [ecx + 1] // 81faff000000 | cmp edx, 0xff // 750e | jne 0x10 // 8b45c8 | mov eax, dword ptr [ebp - 0x38] // 0fb64802 | movzx ecx, byte ptr [eax + 2] // 83f925 | cmp ecx, 0x25 $sequence_10 = { 6a58 50 53 e8???????? 8b45fc 56 } // n = 6, score = 200 // 6a58 | push 0x58 // 50 | push eax // 53 | push ebx // e8???????? | // 8b45fc | mov eax, dword ptr [ebp - 4] // 56 | push esi $sequence_11 = { ffd6 8985bcfdffff 83bdb8fdffff00 7456 85c0 } // n = 5, score = 200 // ffd6 | call esi // 8985bcfdffff | mov dword ptr [ebp - 0x244], eax // 83bdb8fdffff00 | cmp dword ptr [ebp - 0x248], 0 // 7456 | je 0x58 // 85c0 | test eax, eax $sequence_12 = { 752c 8b4508 0fb64802 81f9e8000000 751d 8b5508 0fb64207 } // n = 7, score = 200 // 752c | jne 0x2e // 8b4508 | mov eax, dword ptr [ebp + 8] // 0fb64802 | movzx ecx, byte ptr [eax + 2] // 81f9e8000000 | cmp ecx, 0xe8 // 751d | jne 0x1f // 8b5508 | mov edx, dword ptr [ebp + 8] // 0fb64207 | movzx eax, byte ptr [edx + 7] $sequence_13 = { 8b4dfc 2b4d08 894dc4 8b550c 0355c4 8955d4 } // n = 6, score = 200 // 8b4dfc | mov ecx, dword ptr [ebp - 4] // 2b4d08 | sub ecx, dword ptr [ebp + 8] // 894dc4 | mov dword ptr [ebp - 0x3c], ecx // 8b550c | mov edx, dword ptr [ebp + 0xc] // 0355c4 | add edx, dword ptr [ebp - 0x3c] // 8955d4 | mov dword ptr [ebp - 0x2c], edx $sequence_14 = { 895df0 c1ef05 8bc3 7468 6a20 5b 813e51504098 } // n = 7, score = 200 // 895df0 | mov dword ptr [ebp - 0x10], ebx // c1ef05 | shr edi, 5 // 8bc3 | mov eax, ebx // 7468 | je 0x6a // 6a20 | push 0x20 // 5b | pop ebx // 813e51504098 | cmp dword ptr [esi], 0x98405051 $sequence_15 = { 6808100000 56 ffd7 fe45c6 8d45a8 50 6aff } // n = 7, score = 200 // 6808100000 | push 0x1008 // 56 | push esi // ffd7 | call edi // fe45c6 | inc byte ptr [ebp - 0x3a] // 8d45a8 | lea eax, [ebp - 0x58] // 50 | push eax // 6aff | push -1 condition: 7 of them and filesize < 368640 }
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