SYMBOLCOMMON_NAMEaka. SYNONYMS
win.hzrat (Back to overview)

HZ RAT

VTCollection    

There is no description at this point.

References
2022-11-16 ⋅ Medium (@DCSO_CyTec) ⋅ Axel Wauer, Johann Aydinbas
HZ RAT goes China
HZ RAT
Yara Rules
[TLP:WHITE] win_hzrat_auto (20260917 | Detects win.hzrat.)
rule win_hzrat_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.hzrat."
        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.hzrat"
        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 = { 8955b4 8d0c8d04000000 03ca 034dcc }
            // n = 4, score = 100
            //   8955b4               | mov                 dword ptr [ebp - 0x4c], edx
            //   8d0c8d04000000       | lea                 ecx, [ecx*4 + 4]
            //   03ca                 | add                 ecx, edx
            //   034dcc               | add                 ecx, dword ptr [ebp - 0x34]

        $sequence_1 = { 8b4de0 8901 85ff 7504 }
            // n = 4, score = 100
            //   8b4de0               | mov                 ecx, dword ptr [ebp - 0x20]
            //   8901                 | mov                 dword ptr [ecx], eax
            //   85ff                 | test                edi, edi
            //   7504                 | jne                 6

        $sequence_2 = { 8d8d30fbffff 8bb544fbffff 8bc6 8b9540fbffff }
            // n = 4, score = 100
            //   8d8d30fbffff         | lea                 ecx, [ebp - 0x4d0]
            //   8bb544fbffff         | mov                 esi, dword ptr [ebp - 0x4bc]
            //   8bc6                 | mov                 eax, esi
            //   8b9540fbffff         | mov                 edx, dword ptr [ebp - 0x4c0]

        $sequence_3 = { 8bf8 898588feffff 8d4f01 8a07 }
            // n = 4, score = 100
            //   8bf8                 | mov                 edi, eax
            //   898588feffff         | mov                 dword ptr [ebp - 0x178], eax
            //   8d4f01               | lea                 ecx, [edi + 1]
            //   8a07                 | mov                 al, byte ptr [edi]

        $sequence_4 = { 817b1421059319 740d 817b1422059319 0f8595010000 39470c 8b451c }
            // n = 6, score = 100
            //   817b1421059319       | cmp                 dword ptr [ebx + 0x14], 0x19930521
            //   740d                 | je                  0xf
            //   817b1422059319       | cmp                 dword ptr [ebx + 0x14], 0x19930522
            //   0f8595010000         | jne                 0x19b
            //   39470c               | cmp                 dword ptr [edi + 0xc], eax
            //   8b451c               | mov                 eax, dword ptr [ebp + 0x1c]

        $sequence_5 = { 8b049510fa4200 8945f8 807c382900 7507 8bc1 e9???????? 8d0419 }
            // n = 7, score = 100
            //   8b049510fa4200       | mov                 eax, dword ptr [edx*4 + 0x42fa10]
            //   8945f8               | mov                 dword ptr [ebp - 8], eax
            //   807c382900           | cmp                 byte ptr [eax + edi + 0x29], 0
            //   7507                 | jne                 9
            //   8bc1                 | mov                 eax, ecx
            //   e9????????           |                     
            //   8d0419               | lea                 eax, [ecx + ebx]

        $sequence_6 = { b804000000 034de0 8b510c 83ca04 }
            // n = 4, score = 100
            //   b804000000           | mov                 eax, 4
            //   034de0               | add                 ecx, dword ptr [ebp - 0x20]
            //   8b510c               | mov                 edx, dword ptr [ecx + 0xc]
            //   83ca04               | or                  edx, 4

        $sequence_7 = { 8d8594feffff 3bc6 0f847d000000 8b95a8feffff 83fa10 }
            // n = 5, score = 100
            //   8d8594feffff         | lea                 eax, [ebp - 0x16c]
            //   3bc6                 | cmp                 eax, esi
            //   0f847d000000         | je                  0x83
            //   8b95a8feffff         | mov                 edx, dword ptr [ebp - 0x158]
            //   83fa10               | cmp                 edx, 0x10

        $sequence_8 = { 6a00 51 8b8d8cfeffff 8b00 8b5008 8d043e }
            // n = 6, score = 100
            //   6a00                 | push                0
            //   51                   | push                ecx
            //   8b8d8cfeffff         | mov                 ecx, dword ptr [ebp - 0x174]
            //   8b00                 | mov                 eax, dword ptr [eax]
            //   8b5008               | mov                 edx, dword ptr [eax + 8]
            //   8d043e               | lea                 eax, [esi + edi]

        $sequence_9 = { 83f81f 774b 8bfa 51 57 0faee8 }
            // n = 6, score = 100
            //   83f81f               | cmp                 eax, 0x1f
            //   774b                 | ja                  0x4d
            //   8bfa                 | mov                 edi, edx
            //   51                   | push                ecx
            //   57                   | push                edi
            //   0faee8               | lfence              

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