Actor(s): APT5
There is no description at this point.
rule win_leouncia_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2026-05-04" version = "1" description = "Detects win.leouncia." 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.leouncia" malpedia_rule_date = "20260422" malpedia_hash = "a182e35da64e6d71cb55f125c4d4225196523f14" malpedia_version = "20260504" 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 = { 8bf7 c1f805 83e61f 8d1c8560c14000 c1e603 8b03 f644300401 } // n = 7, score = 100 // 8bf7 | mov esi, edi // c1f805 | sar eax, 5 // 83e61f | and esi, 0x1f // 8d1c8560c14000 | lea ebx, [eax*4 + 0x40c160] // c1e603 | shl esi, 3 // 8b03 | mov eax, dword ptr [ebx] // f644300401 | test byte ptr [eax + esi + 4], 1 $sequence_1 = { c1e602 8b86f0a64000 eb09 c1e602 8b8624a74000 } // n = 5, score = 100 // c1e602 | shl esi, 2 // 8b86f0a64000 | mov eax, dword ptr [esi + 0x40a6f0] // eb09 | jmp 0xb // c1e602 | shl esi, 2 // 8b8624a74000 | mov eax, dword ptr [esi + 0x40a724] $sequence_2 = { c744244c01000000 ffd7 85c0 750e 5f 5e 5d } // n = 7, score = 100 // c744244c01000000 | mov dword ptr [esp + 0x4c], 1 // ffd7 | call edi // 85c0 | test eax, eax // 750e | jne 0x10 // 5f | pop edi // 5e | pop esi // 5d | pop ebp $sequence_3 = { 8bc1 8bf1 c1f805 83e61f 8d1c8560c14000 c1e603 8b03 } // n = 7, score = 100 // 8bc1 | mov eax, ecx // 8bf1 | mov esi, ecx // c1f805 | sar eax, 5 // 83e61f | and esi, 0x1f // 8d1c8560c14000 | lea ebx, [eax*4 + 0x40c160] // c1e603 | shl esi, 3 // 8b03 | mov eax, dword ptr [ebx] $sequence_4 = { 7229 f3a5 ff249548734000 8bc7 ba03000000 83e904 720c } // n = 7, score = 100 // 7229 | jb 0x2b // f3a5 | rep movsd dword ptr es:[edi], dword ptr [esi] // ff249548734000 | jmp dword ptr [edx*4 + 0x407348] // 8bc7 | mov eax, edi // ba03000000 | mov edx, 3 // 83e904 | sub ecx, 4 // 720c | jb 0xe $sequence_5 = { 83c40c 80bc242401000063 7510 8d942425010000 52 } // n = 5, score = 100 // 83c40c | add esp, 0xc // 80bc242401000063 | cmp byte ptr [esp + 0x124], 0x63 // 7510 | jne 0x12 // 8d942425010000 | lea edx, [esp + 0x125] // 52 | push edx $sequence_6 = { 52 e8???????? 8be8 8d842448010000 50 } // n = 5, score = 100 // 52 | push edx // e8???????? | // 8be8 | mov ebp, eax // 8d842448010000 | lea eax, [esp + 0x148] // 50 | push eax $sequence_7 = { c1e902 f3a5 8bca 83e103 f3a4 c644041800 } // n = 6, score = 100 // c1e902 | shr ecx, 2 // f3a5 | rep movsd dword ptr es:[edi], dword ptr [esi] // 8bca | mov ecx, edx // 83e103 | and ecx, 3 // f3a4 | rep movsb byte ptr es:[edi], byte ptr [esi] // c644041800 | mov byte ptr [esp + eax + 0x18], 0 $sequence_8 = { 8bca 83e103 f3aa 017500 } // n = 4, score = 100 // 8bca | mov ecx, edx // 83e103 | and ecx, 3 // f3aa | rep stosb byte ptr es:[edi], al // 017500 | add dword ptr [ebp], esi $sequence_9 = { 47 50 897d00 c744241800040000 ff15???????? 85c0 } // n = 6, score = 100 // 47 | inc edi // 50 | push eax // 897d00 | mov dword ptr [ebp], edi // c744241800040000 | mov dword ptr [esp + 0x18], 0x400 // ff15???????? | // 85c0 | test eax, eax condition: 7 of them and filesize < 114688 }
If your designated proposal does not fit in any other category, feel free to write a free-text in the comment field below. Changes regarding references should be proposed on the Malpedia library page.
Your suggestion will be reviewed before being published. Thank you for contributing!
YYYY-MM-DD
YYYY-MM
YYYY