SYMBOLCOMMON_NAMEaka. SYNONYMS
win.ziyangrat (Back to overview)

ZiyangRAT

VTCollection    

There is no description at this point.

References
2014-02-14SecureworksCounter Threat Unit ResearchTeam
Analysis of DHS NCCIC Indicators
jspRAT BeepService DDKeylogger LinseningSvr ONHAT SimpleFileMover ZiyangRAT
Yara Rules
[TLP:WHITE] win_ziyangrat_auto (20260504 | Detects win.ziyangrat.)
rule win_ziyangrat_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-05-04"
        version = "1"
        description = "Detects win.ziyangrat."
        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.ziyangrat"
        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 = { 0f8539ffffff 50 ff15???????? 8bfd 83c9ff 33c0 f2ae }
            // n = 7, score = 200
            //   0f8539ffffff         | jne                 0xffffff3f
            //   50                   | push                eax
            //   ff15????????         |                     
            //   8bfd                 | mov                 edi, ebp
            //   83c9ff               | or                  ecx, 0xffffffff
            //   33c0                 | xor                 eax, eax
            //   f2ae                 | repne scasb         al, byte ptr es:[edi]

        $sequence_1 = { 3bf1 8bf8 7e2a 8bd6 6a00 2bd1 }
            // n = 6, score = 200
            //   3bf1                 | cmp                 esi, ecx
            //   8bf8                 | mov                 edi, eax
            //   7e2a                 | jle                 0x2c
            //   8bd6                 | mov                 edx, esi
            //   6a00                 | push                0
            //   2bd1                 | sub                 edx, ecx

        $sequence_2 = { 7ce6 85ff 897c2418 896c2420 750a 5f 5e }
            // n = 7, score = 200
            //   7ce6                 | jl                  0xffffffe8
            //   85ff                 | test                edi, edi
            //   897c2418             | mov                 dword ptr [esp + 0x18], edi
            //   896c2420             | mov                 dword ptr [esp + 0x20], ebp
            //   750a                 | jne                 0xc
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi

        $sequence_3 = { 89742414 e8???????? b9fb030000 b820202020 bf???????? c644242800 f3ab }
            // n = 7, score = 200
            //   89742414             | mov                 dword ptr [esp + 0x14], esi
            //   e8????????           |                     
            //   b9fb030000           | mov                 ecx, 0x3fb
            //   b820202020           | mov                 eax, 0x20202020
            //   bf????????           |                     
            //   c644242800           | mov                 byte ptr [esp + 0x28], 0
            //   f3ab                 | rep stosd           dword ptr es:[edi], eax

        $sequence_4 = { 85ff 897c2418 896c2420 750a 5f }
            // n = 5, score = 200
            //   85ff                 | test                edi, edi
            //   897c2418             | mov                 dword ptr [esp + 0x18], edi
            //   896c2420             | mov                 dword ptr [esp + 0x20], ebp
            //   750a                 | jne                 0xc
            //   5f                   | pop                 edi

        $sequence_5 = { 46 8d0c17 3bcb 7ce7 5f 5e }
            // n = 6, score = 200
            //   46                   | inc                 esi
            //   8d0c17               | lea                 ecx, [edi + edx]
            //   3bcb                 | cmp                 ecx, ebx
            //   7ce7                 | jl                  0xffffffe9
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi

        $sequence_6 = { 8b4c241c 46 81e6ff0f0000 8d4101 25ff0f0000 }
            // n = 5, score = 200
            //   8b4c241c             | mov                 ecx, dword ptr [esp + 0x1c]
            //   46                   | inc                 esi
            //   81e6ff0f0000         | and                 esi, 0xfff
            //   8d4101               | lea                 eax, [ecx + 1]
            //   25ff0f0000           | and                 eax, 0xfff

        $sequence_7 = { 5f 5e 5b 81c494000000 c3 8b9c24a4000000 }
            // n = 6, score = 200
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi
            //   5b                   | pop                 ebx
            //   81c494000000         | add                 esp, 0x94
            //   c3                   | ret                 
            //   8b9c24a4000000       | mov                 ebx, dword ptr [esp + 0xa4]

        $sequence_8 = { 89742448 e8???????? 5e 83f8ff 5b 7515 a1???????? }
            // n = 7, score = 200
            //   89742448             | mov                 dword ptr [esp + 0x48], esi
            //   e8????????           |                     
            //   5e                   | pop                 esi
            //   83f8ff               | cmp                 eax, -1
            //   5b                   | pop                 ebx
            //   7515                 | jne                 0x17
            //   a1????????           |                     

        $sequence_9 = { 8b7c240c 8b04bd10894000 8d1cbd10894000 3d00100000 0f84c8000000 8b04bd20094100 56 }
            // n = 7, score = 200
            //   8b7c240c             | mov                 edi, dword ptr [esp + 0xc]
            //   8b04bd10894000       | mov                 eax, dword ptr [edi*4 + 0x408910]
            //   8d1cbd10894000       | lea                 ebx, [edi*4 + 0x408910]
            //   3d00100000           | cmp                 eax, 0x1000
            //   0f84c8000000         | je                  0xce
            //   8b04bd20094100       | mov                 eax, dword ptr [edi*4 + 0x410920]
            //   56                   | push                esi

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