SYMBOLCOMMON_NAMEaka. SYNONYMS
win.darkmegi (Back to overview)

DarkMegi

VTCollection    

There is no description at this point.

References
2012-04-20 ⋅ StopMalvertising ⋅ Kimberly
Analysis of DarkMegi aka NpcDark
DarkMegi
2012-04-18 ⋅ Contagiodump Blog ⋅ Mila Parkour
DarkMegi rootkit - sample (distributed via Blackhole)
DarkMegi
Yara Rules
[TLP:WHITE] win_darkmegi_auto (20260917 | Detects win.darkmegi.)
rule win_darkmegi_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.darkmegi."
        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.darkmegi"
        malpedia_rule_date = "20260916"
        malpedia_hash = "53a643781c18e08f4a50949af60172d837a0b6f6"
        malpedia_version = "20260917"
        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 = { 5e c3 e8???????? 8b0cf59c8cb402 5e }
            // n = 5, score = 100
            //   5e                   | pop                 esi
            //   c3                   | ret                 
            //   e8????????           |                     
            //   8b0cf59c8cb402       | mov                 ecx, dword ptr [esi*8 + 0x2b48c9c]
            //   5e                   | pop                 esi

        $sequence_1 = { f6c201 7416 8088????????10 8a9405ecfdffff 88900095b402 eb1c f6c202 }
            // n = 7, score = 100
            //   f6c201               | test                dl, 1
            //   7416                 | je                  0x18
            //   8088????????10       |                     
            //   8a9405ecfdffff       | mov                 dl, byte ptr [ebp + eax - 0x214]
            //   88900095b402         | mov                 byte ptr [eax + 0x2b49500], dl
            //   eb1c                 | jmp                 0x1e
            //   f6c202               | test                dl, 2

        $sequence_2 = { 803c115c 7409 49 85c9 }
            // n = 4, score = 100
            //   803c115c             | cmp                 byte ptr [ecx + edx], 0x5c
            //   7409                 | je                  0xb
            //   49                   | dec                 ecx
            //   85c9                 | test                ecx, ecx

        $sequence_3 = { 7425 0fb6d2 f6820196b40204 740c }
            // n = 4, score = 100
            //   7425                 | je                  0x27
            //   0fb6d2               | movzx               edx, dl
            //   f6820196b40204       | test                byte ptr [edx + 0x2b49601], 4
            //   740c                 | je                  0xe

        $sequence_4 = { 33ff 668b4808 51 ffd5 6685c0 }
            // n = 5, score = 100
            //   33ff                 | xor                 edi, edi
            //   668b4808             | mov                 cx, word ptr [eax + 8]
            //   51                   | push                ecx
            //   ffd5                 | call                ebp
            //   6685c0               | test                ax, ax

        $sequence_5 = { 53 ffd5 56 ffd5 57 ff15???????? 5f }
            // n = 7, score = 100
            //   53                   | push                ebx
            //   ffd5                 | call                ebp
            //   56                   | push                esi
            //   ffd5                 | call                ebp
            //   57                   | push                edi
            //   ff15????????         |                     
            //   5f                   | pop                 edi

        $sequence_6 = { 89441c30 8b541c2c 33ff 668b4208 50 }
            // n = 5, score = 100
            //   89441c30             | mov                 dword ptr [esp + ebx + 0x30], eax
            //   8b541c2c             | mov                 edx, dword ptr [esp + ebx + 0x2c]
            //   33ff                 | xor                 edi, edi
            //   668b4208             | mov                 ax, word ptr [edx + 8]
            //   50                   | push                eax

        $sequence_7 = { c3 8b3d???????? 8d4c2408 6a00 }
            // n = 4, score = 100
            //   c3                   | ret                 
            //   8b3d????????         |                     
            //   8d4c2408             | lea                 ecx, [esp + 8]
            //   6a00                 | push                0

        $sequence_8 = { 6880000000 6a03 6a00 6a00 8d542478 }
            // n = 5, score = 100
            //   6880000000           | push                0x80
            //   6a03                 | push                3
            //   6a00                 | push                0
            //   6a00                 | push                0
            //   8d542478             | lea                 edx, [esp + 0x78]

        $sequence_9 = { 8b442410 8d1440 8b84941c010000 668b4808 51 ffd5 }
            // n = 6, score = 100
            //   8b442410             | mov                 eax, dword ptr [esp + 0x10]
            //   8d1440               | lea                 edx, [eax + eax*2]
            //   8b84941c010000       | mov                 eax, dword ptr [esp + edx*4 + 0x11c]
            //   668b4808             | mov                 cx, word ptr [eax + 8]
            //   51                   | push                ecx
            //   ffd5                 | call                ebp

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