There is no description at this point.
rule win_petrwrap_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2023-01-25" version = "1" description = "Detects win.petrwrap." 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.petrwrap" 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 = { 33f9 8b4c2424 23c3 33d0 03cf 13ea 034c2438 } // n = 7, score = 100 // 33f9 | xor edi, ecx // 8b4c2424 | mov ecx, dword ptr [esp + 0x24] // 23c3 | and eax, ebx // 33d0 | xor edx, eax // 03cf | add ecx, edi // 13ea | adc ebp, edx // 034c2438 | add ecx, dword ptr [esp + 0x38] $sequence_1 = { c1e81f 40 03c2 687f010000 68???????? 8d0480 03c0 } // n = 7, score = 100 // c1e81f | shr eax, 0x1f // 40 | inc eax // 03c2 | add eax, edx // 687f010000 | push 0x17f // 68???????? | // 8d0480 | lea eax, [eax + eax*4] // 03c0 | add eax, eax $sequence_2 = { 660fd68520040000 660fd68528040000 c7852004000010000000 8b1d???????? 85ff 7405 ffd3 } // n = 7, score = 100 // 660fd68520040000 | movq qword ptr [ebp + 0x420], xmm0 // 660fd68528040000 | movq qword ptr [ebp + 0x428], xmm0 // c7852004000010000000 | mov dword ptr [ebp + 0x420], 0x10 // 8b1d???????? | // 85ff | test edi, edi // 7405 | je 7 // ffd3 | call ebx $sequence_3 = { 83c408 85c0 8b442444 7820 55 } // n = 5, score = 100 // 83c408 | add esp, 8 // 85c0 | test eax, eax // 8b442444 | mov eax, dword ptr [esp + 0x44] // 7820 | js 0x22 // 55 | push ebp $sequence_4 = { 8d462c 50 e8???????? 83c40c c7464000000000 c7464401000000 } // n = 6, score = 100 // 8d462c | lea eax, [esi + 0x2c] // 50 | push eax // e8???????? | // 83c40c | add esp, 0xc // c7464000000000 | mov dword ptr [esi + 0x40], 0 // c7464401000000 | mov dword ptr [esi + 0x44], 1 $sequence_5 = { 56 56 e8???????? 83c40c 8bfe f30f7e07 } // n = 6, score = 100 // 56 | push esi // 56 | push esi // e8???????? | // 83c40c | add esp, 0xc // 8bfe | mov edi, esi // f30f7e07 | movq xmm0, qword ptr [edi] $sequence_6 = { 8d8784000000 50 ff742418 8b8190000000 57 ffd0 } // n = 6, score = 100 // 8d8784000000 | lea eax, [edi + 0x84] // 50 | push eax // ff742418 | push dword ptr [esp + 0x18] // 8b8190000000 | mov eax, dword ptr [ecx + 0x90] // 57 | push edi // ffd0 | call eax $sequence_7 = { 8b4c2468 33cc e8???????? 83c46c c3 7e27 3bf7 } // n = 7, score = 100 // 8b4c2468 | mov ecx, dword ptr [esp + 0x68] // 33cc | xor ecx, esp // e8???????? | // 83c46c | add esp, 0x6c // c3 | ret // 7e27 | jle 0x29 // 3bf7 | cmp esi, edi $sequence_8 = { 894c2424 eb0b 8bbc24c0000000 8b6c2418 83bc24c400000000 750d 85ed } // n = 7, score = 100 // 894c2424 | mov dword ptr [esp + 0x24], ecx // eb0b | jmp 0xd // 8bbc24c0000000 | mov edi, dword ptr [esp + 0xc0] // 8b6c2418 | mov ebp, dword ptr [esp + 0x18] // 83bc24c400000000 | cmp dword ptr [esp + 0xc4], 0 // 750d | jne 0xf // 85ed | test ebp, ebp $sequence_9 = { 897c2464 8bfb 0facdd06 c1ef1d 0bf8 8b44245c 33c7 } // n = 7, score = 100 // 897c2464 | mov dword ptr [esp + 0x64], edi // 8bfb | mov edi, ebx // 0facdd06 | shrd ebp, ebx, 6 // c1ef1d | shr edi, 0x1d // 0bf8 | or edi, eax // 8b44245c | mov eax, dword ptr [esp + 0x5c] // 33c7 | xor eax, edi condition: 7 of them and filesize < 1024000 }
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