SYMBOLCOMMON_NAMEaka. SYNONYMS
win.ldr4 (Back to overview)

LDR4

VTCollection    

A further branch of the URSNIF collection of malware families. According to Mandiant, it no longer has focus on banking fraud but generic backdoor capabilities instead.

References
2022-10-19MandiantJesse Valdez, Sandor Nemes, Sulian Lebegue
From RM3 to LDR4: URSNIF Leaves Banking Fraud Behind
LDR4
Yara Rules
[TLP:WHITE] win_ldr4_auto (20260504 | Detects win.ldr4.)
rule win_ldr4_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-05-04"
        version = "1"
        description = "Detects win.ldr4."
        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.ldr4"
        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 = { eb01 41 80fb3b 7506 85ff 7522 }
            // n = 6, score = 100
            //   eb01                 | jmp                 3
            //   41                   | inc                 ecx
            //   80fb3b               | cmp                 bl, 0x3b
            //   7506                 | jne                 8
            //   85ff                 | test                edi, edi
            //   7522                 | jne                 0x24

        $sequence_1 = { 33db 897d1c 8b4510 6a10 59 894dfc }
            // n = 6, score = 100
            //   33db                 | xor                 ebx, ebx
            //   897d1c               | mov                 dword ptr [ebp + 0x1c], edi
            //   8b4510               | mov                 eax, dword ptr [ebp + 0x10]
            //   6a10                 | push                0x10
            //   59                   | pop                 ecx
            //   894dfc               | mov                 dword ptr [ebp - 4], ecx

        $sequence_2 = { 50 ff15???????? 8b45f0 b90046c323 f7e1 0145e4 8b45e4 }
            // n = 7, score = 100
            //   50                   | push                eax
            //   ff15????????         |                     
            //   8b45f0               | mov                 eax, dword ptr [ebp - 0x10]
            //   b90046c323           | mov                 ecx, 0x23c34600
            //   f7e1                 | mul                 ecx
            //   0145e4               | add                 dword ptr [ebp - 0x1c], eax
            //   8b45e4               | mov                 eax, dword ptr [ebp - 0x1c]

        $sequence_3 = { 56 56 6a1c 51 ff7508 ffd0 eb02 }
            // n = 7, score = 100
            //   56                   | push                esi
            //   56                   | push                esi
            //   6a1c                 | push                0x1c
            //   51                   | push                ecx
            //   ff7508               | push                dword ptr [ebp + 8]
            //   ffd0                 | call                eax
            //   eb02                 | jmp                 4

        $sequence_4 = { 8b4064 85c0 7403 56 }
            // n = 4, score = 100
            //   8b4064               | mov                 eax, dword ptr [eax + 0x64]
            //   85c0                 | test                eax, eax
            //   7403                 | je                  5
            //   56                   | push                esi

        $sequence_5 = { c20400 55 8bec 51 51 8b4d08 8b413c }
            // n = 7, score = 100
            //   c20400               | ret                 4
            //   55                   | push                ebp
            //   8bec                 | mov                 ebp, esp
            //   51                   | push                ecx
            //   51                   | push                ecx
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]
            //   8b413c               | mov                 eax, dword ptr [ecx + 0x3c]

        $sequence_6 = { 8bc6 e8???????? 85c0 7410 c60000 40 8a08 }
            // n = 7, score = 100
            //   8bc6                 | mov                 eax, esi
            //   e8????????           |                     
            //   85c0                 | test                eax, eax
            //   7410                 | je                  0x12
            //   c60000               | mov                 byte ptr [eax], 0
            //   40                   | inc                 eax
            //   8a08                 | mov                 cl, byte ptr [eax]

        $sequence_7 = { e9???????? 33db 43 8b4508 }
            // n = 4, score = 100
            //   e9????????           |                     
            //   33db                 | xor                 ebx, ebx
            //   43                   | inc                 ebx
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]

        $sequence_8 = { 57 895df4 e8???????? 83c40c 6a02 58 668907 }
            // n = 7, score = 100
            //   57                   | push                edi
            //   895df4               | mov                 dword ptr [ebp - 0xc], ebx
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   6a02                 | push                2
            //   58                   | pop                 eax
            //   668907               | mov                 word ptr [edi], ax

        $sequence_9 = { 8b4618 85c0 7407 50 ff15???????? 56 6a00 }
            // n = 7, score = 100
            //   8b4618               | mov                 eax, dword ptr [esi + 0x18]
            //   85c0                 | test                eax, eax
            //   7407                 | je                  9
            //   50                   | push                eax
            //   ff15????????         |                     
            //   56                   | push                esi
            //   6a00                 | push                0

    condition:
        7 of them and filesize < 117760
}
Download all Yara Rules