SYMBOLCOMMON_NAMEaka. SYNONYMS
win.dimnie (Back to overview)

Dimnie

URLhaus    

There is no description at this point.

References
2017-03-28Palo Alto Networks Unit 42Brandon Levene, Dominik Reichel, Esmid Idrizovic
@online{levene:20170328:dimnie:a19c996, author = {Brandon Levene and Dominik Reichel and Esmid Idrizovic}, title = {{Dimnie: Hiding in Plain Sight}}, date = {2017-03-28}, organization = {Palo Alto Networks Unit 42}, url = {http://researchcenter.paloaltonetworks.com/2017/03/unit42-dimnie-hiding-plain-sight/}, language = {English}, urldate = {2019-12-20} } Dimnie: Hiding in Plain Sight
Dimnie
Yara Rules
[TLP:WHITE] win_dimnie_auto (20230125 | Detects win.dimnie.)
rule win_dimnie_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-01-25"
        version = "1"
        description = "Detects win.dimnie."
        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.dimnie"
        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 = { eb04 c645af3d 8b4d0c 8a55af 885102 837d1002 }
            // n = 6, score = 400
            //   eb04                 | jmp                 6
            //   c645af3d             | mov                 byte ptr [ebp - 0x51], 0x3d
            //   8b4d0c               | mov                 ecx, dword ptr [ebp + 0xc]
            //   8a55af               | mov                 dl, byte ptr [ebp - 0x51]
            //   885102               | mov                 byte ptr [ecx + 2], dl
            //   837d1002             | cmp                 dword ptr [ebp + 0x10], 2

        $sequence_1 = { 7e13 8b4508 0fb64802 83e13f }
            // n = 4, score = 400
            //   7e13                 | jle                 0x15
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   0fb64802             | movzx               ecx, byte ptr [eax + 2]
            //   83e13f               | and                 ecx, 0x3f

        $sequence_2 = { 8b4508 8b08 83e10f 8b5508 890a 8b450c }
            // n = 6, score = 400
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   8b08                 | mov                 ecx, dword ptr [eax]
            //   83e10f               | and                 ecx, 0xf
            //   8b5508               | mov                 edx, dword ptr [ebp + 8]
            //   890a                 | mov                 dword ptr [edx], ecx
            //   8b450c               | mov                 eax, dword ptr [ebp + 0xc]

        $sequence_3 = { 8a55af 885102 837d1002 7e13 8b4508 0fb64802 }
            // n = 6, score = 400
            //   8a55af               | mov                 dl, byte ptr [ebp - 0x51]
            //   885102               | mov                 byte ptr [ecx + 2], dl
            //   837d1002             | cmp                 dword ptr [ebp + 0x10], 2
            //   7e13                 | jle                 0x15
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   0fb64802             | movzx               ecx, byte ptr [eax + 2]

        $sequence_4 = { 83c101 8b45f4 33d2 f7f1 }
            // n = 4, score = 400
            //   83c101               | add                 ecx, 1
            //   8b45f4               | mov                 eax, dword ptr [ebp - 0xc]
            //   33d2                 | xor                 edx, edx
            //   f7f1                 | div                 ecx

        $sequence_5 = { 8b4d08 0fb611 83e203 c1e204 8b4508 }
            // n = 5, score = 400
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]
            //   0fb611               | movzx               edx, byte ptr [ecx]
            //   83e203               | and                 edx, 3
            //   c1e204               | shl                 edx, 4
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]

        $sequence_6 = { 7605 8b450c eb54 8b550c 2b5508 83fa01 751c }
            // n = 7, score = 400
            //   7605                 | jbe                 7
            //   8b450c               | mov                 eax, dword ptr [ebp + 0xc]
            //   eb54                 | jmp                 0x56
            //   8b550c               | mov                 edx, dword ptr [ebp + 0xc]
            //   2b5508               | sub                 edx, dword ptr [ebp + 8]
            //   83fa01               | cmp                 edx, 1
            //   751c                 | jne                 0x1e

        $sequence_7 = { eb6e 8b4508 3b450c 7505 }
            // n = 4, score = 400
            //   eb6e                 | jmp                 0x70
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   3b450c               | cmp                 eax, dword ptr [ebp + 0xc]
            //   7505                 | jne                 7

        $sequence_8 = { a4 8b4508 0fb608 c1f902 8b550c }
            // n = 5, score = 400
            //   a4                   | movsb               byte ptr es:[edi], byte ptr [esi]
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   0fb608               | movzx               ecx, byte ptr [eax]
            //   c1f902               | sar                 ecx, 2
            //   8b550c               | mov                 edx, dword ptr [ebp + 0xc]

        $sequence_9 = { 8b4d0c c70101000000 8b5510 c70201000000 8b4508 8b08 83e10f }
            // n = 7, score = 400
            //   8b4d0c               | mov                 ecx, dword ptr [ebp + 0xc]
            //   c70101000000         | mov                 dword ptr [ecx], 1
            //   8b5510               | mov                 edx, dword ptr [ebp + 0x10]
            //   c70201000000         | mov                 dword ptr [edx], 1
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   8b08                 | mov                 ecx, dword ptr [eax]
            //   83e10f               | and                 ecx, 0xf

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