SYMBOLCOMMON_NAMEaka. SYNONYMS
win.darkmegi (Back to overview)

DarkMegi


There is no description at this point.

References
2012-04-20StopMalvertisingKimberly
@online{kimberly:20120420:analysis:6fe646f, author = {Kimberly}, title = {{Analysis of DarkMegi aka NpcDark}}, date = {2012-04-20}, organization = {StopMalvertising}, url = {http://stopmalvertising.com/rootkits/analysis-of-darkmegi-aka-npcdark.html}, language = {English}, urldate = {2020-01-09} } Analysis of DarkMegi aka NpcDark
DarkMegi
2012-04-18Contagiodump BlogMila Parkour
@online{parkour:20120418:darkmegi:5f1a7a7, author = {Mila Parkour}, title = {{DarkMegi rootkit - sample (distributed via Blackhole)}}, date = {2012-04-18}, organization = {Contagiodump Blog}, url = {http://contagiodump.blogspot.com/2012/04/this-is-darkmegie-rootkit-sample-kindly.html}, language = {English}, urldate = {2019-12-20} } DarkMegi rootkit - sample (distributed via Blackhole)
DarkMegi
Yara Rules
[TLP:WHITE] win_darkmegi_auto (20201023 | autogenerated rule brought to you by yara-signator)
rule win_darkmegi_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-12-22"
        version = "1"
        description = "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 = "20201222"
        malpedia_hash = "30354d830a29f0fbd3714d93d94dea941d77a130"
        malpedia_version = "20201023"
        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 = { 8806 46 3bd3 7d0b }
            // n = 4, score = 100
            //   8806                 | mov                 byte ptr [esi], al
            //   46                   | inc                 esi
            //   3bd3                 | cmp                 edx, ebx
            //   7d0b                 | jge                 0xd

        $sequence_1 = { 50 57 52 56 ff15???????? 5f }
            // n = 6, score = 100
            //   50                   | push                eax
            //   57                   | push                edi
            //   52                   | push                edx
            //   56                   | push                esi
            //   ff15????????         |                     
            //   5f                   | pop                 edi

        $sequence_2 = { 8b4d10 0bc9 0f84e9000000 8b7508 8b7d0c 8d054c93b402 83780800 }
            // n = 7, score = 100
            //   8b4d10               | mov                 ecx, dword ptr [ebp + 0x10]
            //   0bc9                 | or                  ecx, ecx
            //   0f84e9000000         | je                  0xef
            //   8b7508               | mov                 esi, dword ptr [ebp + 8]
            //   8b7d0c               | mov                 edi, dword ptr [ebp + 0xc]
            //   8d054c93b402         | lea                 eax, [0x2b4934c]
            //   83780800             | cmp                 dword ptr [eax + 8], 0

        $sequence_3 = { 55 c744242810000000 ff15???????? 83f8ff }
            // n = 4, score = 100
            //   55                   | push                ebp
            //   c744242810000000     | mov                 dword ptr [esp + 0x28], 0x10
            //   ff15????????         |                     
            //   83f8ff               | cmp                 eax, -1

        $sequence_4 = { 8bc3 c1f805 8d3c8540a7b402 8bc3 83e01f 8d34c0 }
            // n = 6, score = 100
            //   8bc3                 | mov                 eax, ebx
            //   c1f805               | sar                 eax, 5
            //   8d3c8540a7b402       | lea                 edi, [eax*4 + 0x2b4a740]
            //   8bc3                 | mov                 eax, ebx
            //   83e01f               | and                 eax, 0x1f
            //   8d34c0               | lea                 esi, [eax + eax*8]

        $sequence_5 = { 81c474100000 c3 8b842490100000 8d4c2420 }
            // n = 4, score = 100
            //   81c474100000         | add                 esp, 0x1074
            //   c3                   | ret                 
            //   8b842490100000       | mov                 eax, dword ptr [esp + 0x1090]
            //   8d4c2420             | lea                 ecx, [esp + 0x20]

        $sequence_6 = { 81e1ffff0000 8d1440 8b449430 c6040100 8b442410 }
            // n = 5, score = 100
            //   81e1ffff0000         | and                 ecx, 0xffff
            //   8d1440               | lea                 edx, [eax + eax*2]
            //   8b449430             | mov                 eax, dword ptr [esp + edx*4 + 0x30]
            //   c6040100             | mov                 byte ptr [ecx + eax], 0
            //   8b442410             | mov                 eax, dword ptr [esp + 0x10]

        $sequence_7 = { 7502 33c0 41 3bcd }
            // n = 4, score = 100
            //   7502                 | jne                 4
            //   33c0                 | xor                 eax, eax
            //   41                   | inc                 ecx
            //   3bcd                 | cmp                 ecx, ebp

        $sequence_8 = { 46 8a10 40 0fb6da f6830196b40204 }
            // n = 5, score = 100
            //   46                   | inc                 esi
            //   8a10                 | mov                 dl, byte ptr [eax]
            //   40                   | inc                 eax
            //   0fb6da               | movzx               ebx, dl
            //   f6830196b40204       | test                byte ptr [ebx + 0x2b49601], 4

        $sequence_9 = { 3bf8 0f8d43010000 8d4c2414 8d942498030000 51 }
            // n = 5, score = 100
            //   3bf8                 | cmp                 edi, eax
            //   0f8d43010000         | jge                 0x149
            //   8d4c2414             | lea                 ecx, [esp + 0x14]
            //   8d942498030000       | lea                 edx, [esp + 0x398]
            //   51                   | push                ecx

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