Actor(s): MuddyWater
There is no description at this point.
rule win_moriagent_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2023-01-25" version = "1" description = "Detects win.moriagent." 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.moriagent" 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 = { eb0c b802000000 eb05 b801000000 33ff } // n = 5, score = 200 // eb0c | jmp 0xe // b802000000 | mov eax, 2 // eb05 | jmp 7 // b801000000 | mov eax, 1 // 33ff | xor edi, edi $sequence_1 = { ba01000000 498bcc 0f85e8000000 e8???????? } // n = 4, score = 100 // ba01000000 | shl edx, cl // 498bcc | dec eax // 0f85e8000000 | shr eax, 3 // e8???????? | $sequence_2 = { 895508 8b7810 8b4910 897dfc 3bf9 } // n = 5, score = 100 // 895508 | mov dword ptr [ebp + 8], edx // 8b7810 | mov edi, dword ptr [eax + 0x10] // 8b4910 | mov ecx, dword ptr [ecx + 0x10] // 897dfc | mov dword ptr [ebp - 4], edi // 3bf9 | cmp edi, ecx $sequence_3 = { ba01000000 498bcc 0f8580000000 e8???????? } // n = 4, score = 100 // ba01000000 | mov eax, edx // 498bcc | shl edx, cl // 0f8580000000 | dec eax // e8???????? | $sequence_4 = { ba01000000 488d4d77 e8???????? e9???????? 83650f00 488d05a44fffff } // n = 6, score = 100 // ba01000000 | mov edx, 1 // 488d4d77 | dec eax // e8???????? | // e9???????? | // 83650f00 | lea ecx, [ebp + 0x77] // 488d05a44fffff | and dword ptr [ebp + 0xf], 0 $sequence_5 = { 7507 b802000000 eb0e 83c8ff } // n = 4, score = 100 // 7507 | jne 9 // b802000000 | mov eax, 2 // eb0e | jmp 0x10 // 83c8ff | or eax, 0xffffffff $sequence_6 = { e9???????? 8d8dccfeffff e9???????? 8d8d48ffffff e9???????? 8d8de4feffff } // n = 6, score = 100 // e9???????? | // 8d8dccfeffff | lea ecx, [ebp - 0x134] // e9???????? | // 8d8d48ffffff | lea ecx, [ebp - 0xb8] // e9???????? | // 8d8de4feffff | lea ecx, [ebp - 0x11c] $sequence_7 = { 8bc2 c1e81f 03c2 8945ec 3daaaaaa0a 0f8473010000 8b4b08 } // n = 7, score = 100 // 8bc2 | mov eax, edx // c1e81f | shr eax, 0x1f // 03c2 | add eax, edx // 8945ec | mov dword ptr [ebp - 0x14], eax // 3daaaaaa0a | cmp eax, 0xaaaaaaa // 0f8473010000 | je 0x179 // 8b4b08 | mov ecx, dword ptr [ebx + 8] $sequence_8 = { 50 e8???????? 83a60084420000 59 83c604 } // n = 5, score = 100 // 50 | push eax // e8???????? | // 83a60084420000 | and dword ptr [esi + 0x428400], 0 // 59 | pop ecx // 83c604 | add esi, 4 $sequence_9 = { ba01000000 498bcc e8???????? 90 } // n = 4, score = 100 // ba01000000 | dec ecx // 498bcc | mov ecx, esp // e8???????? | // 90 | jne 0x89 $sequence_10 = { ba01000000 498bc0 d3e2 48c1e803 } // n = 4, score = 100 // ba01000000 | and dword ptr [ebp + 0xf], 0 // 498bc0 | dec eax // d3e2 | lea eax, [0xffff4fa4] // 48c1e803 | dec eax $sequence_11 = { e8???????? 83c408 8b45dc 3b45e0 } // n = 4, score = 100 // e8???????? | // 83c408 | add esp, 8 // 8b45dc | mov eax, dword ptr [ebp - 0x24] // 3b45e0 | cmp eax, dword ptr [ebp - 0x20] $sequence_12 = { ba01000000 663908 410f42d3 85d2 } // n = 4, score = 100 // ba01000000 | dec ecx // 663908 | mov ecx, esp // 410f42d3 | jne 0xf1 // 85d2 | nop $sequence_13 = { c3 53 0fb75e06 33c0 33c9 895df8 663bc3 } // n = 7, score = 100 // c3 | ret // 53 | push ebx // 0fb75e06 | movzx ebx, word ptr [esi + 6] // 33c0 | xor eax, eax // 33c9 | xor ecx, ecx // 895df8 | mov dword ptr [ebp - 8], ebx // 663bc3 | cmp ax, bx $sequence_14 = { ba01000000 89542420 83ff7f 7740 } // n = 4, score = 100 // ba01000000 | lea ecx, [ebp + 0x58] // 89542420 | mov edx, 1 // 83ff7f | dec ecx // 7740 | mov ecx, esp condition: 7 of them and filesize < 1347904 }
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