SYMBOLCOMMON_NAMEaka. SYNONYMS
win.htprat (Back to overview)

htpRAT


There is no description at this point.

References
2017-10-26RiskIQYonathan Klijnsma
@online{klijnsma:20171026:new:8298949, author = {Yonathan Klijnsma}, title = {{New htpRAT Gives Complete Remote Control Capabilities to Chinese Cyber Threat Actors}}, date = {2017-10-26}, organization = {RiskIQ}, url = {https://www.riskiq.com/blog/labs/htprat/}, language = {English}, urldate = {2020-01-09} } New htpRAT Gives Complete Remote Control Capabilities to Chinese Cyber Threat Actors
htpRAT
Yara Rules
[TLP:WHITE] win_htprat_auto (20220808 | Detects win.htprat.)
rule win_htprat_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-08-05"
        version = "1"
        description = "Detects win.htprat."
        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.htprat"
        malpedia_rule_date = "20220805"
        malpedia_hash = "6ec06c64bcfdbeda64eff021c766b4ce34542b71"
        malpedia_version = "20220808"
        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 = { 8d5801 56 57 53 e8???????? }
            // n = 5, score = 200
            //   8d5801               | lea                 ebx, [eax + 1]
            //   56                   | push                esi
            //   57                   | push                edi
            //   53                   | push                ebx
            //   e8????????           |                     

        $sequence_1 = { 8b5a10 2bc6 8945fc 8bcb 3bd8 }
            // n = 5, score = 200
            //   8b5a10               | mov                 ebx, dword ptr [edx + 0x10]
            //   2bc6                 | sub                 eax, esi
            //   8945fc               | mov                 dword ptr [ebp - 4], eax
            //   8bcb                 | mov                 ecx, ebx
            //   3bd8                 | cmp                 ebx, eax

        $sequence_2 = { 50 ff33 ff15???????? 898544efffff 3bc7 0f8441090000 83bdd8eeffff02 }
            // n = 7, score = 200
            //   50                   | push                eax
            //   ff33                 | push                dword ptr [ebx]
            //   ff15????????         |                     
            //   898544efffff         | mov                 dword ptr [ebp - 0x10bc], eax
            //   3bc7                 | cmp                 eax, edi
            //   0f8441090000         | je                  0x947
            //   83bdd8eeffff02       | cmp                 dword ptr [ebp - 0x1128], 2

        $sequence_3 = { 8b01 8945d0 3bc1 0f8420ffffff 8b45d0 8b4028 85c0 }
            // n = 7, score = 200
            //   8b01                 | mov                 eax, dword ptr [ecx]
            //   8945d0               | mov                 dword ptr [ebp - 0x30], eax
            //   3bc1                 | cmp                 eax, ecx
            //   0f8420ffffff         | je                  0xffffff26
            //   8b45d0               | mov                 eax, dword ptr [ebp - 0x30]
            //   8b4028               | mov                 eax, dword ptr [eax + 0x28]
            //   85c0                 | test                eax, eax

        $sequence_4 = { 7407 50 e8???????? 59 8b5e04 2b1e }
            // n = 6, score = 200
            //   7407                 | je                  9
            //   50                   | push                eax
            //   e8????????           |                     
            //   59                   | pop                 ecx
            //   8b5e04               | mov                 ebx, dword ptr [esi + 4]
            //   2b1e                 | sub                 ebx, dword ptr [esi]

        $sequence_5 = { 7202 8b00 8d5002 668b08 83c002 6685c9 75f5 }
            // n = 7, score = 200
            //   7202                 | jb                  4
            //   8b00                 | mov                 eax, dword ptr [eax]
            //   8d5002               | lea                 edx, [eax + 2]
            //   668b08               | mov                 cx, word ptr [eax]
            //   83c002               | add                 eax, 2
            //   6685c9               | test                cx, cx
            //   75f5                 | jne                 0xfffffff7

        $sequence_6 = { 5b c3 830702 8b7e10 85ff 7529 397e14 }
            // n = 7, score = 200
            //   5b                   | pop                 ebx
            //   c3                   | ret                 
            //   830702               | add                 dword ptr [edi], 2
            //   8b7e10               | mov                 edi, dword ptr [esi + 0x10]
            //   85ff                 | test                edi, edi
            //   7529                 | jne                 0x2b
            //   397e14               | cmp                 dword ptr [esi + 0x14], edi

        $sequence_7 = { ff4ddc 83f910 7204 8b07 eb02 8bc7 803c103d }
            // n = 7, score = 200
            //   ff4ddc               | dec                 dword ptr [ebp - 0x24]
            //   83f910               | cmp                 ecx, 0x10
            //   7204                 | jb                  6
            //   8b07                 | mov                 eax, dword ptr [edi]
            //   eb02                 | jmp                 4
            //   8bc7                 | mov                 eax, edi
            //   803c103d             | cmp                 byte ptr [eax + edx], 0x3d

        $sequence_8 = { 760a c644241701 e9???????? a1???????? 33c9 833d????????08 }
            // n = 6, score = 200
            //   760a                 | jbe                 0xc
            //   c644241701           | mov                 byte ptr [esp + 0x17], 1
            //   e9????????           |                     
            //   a1????????           |                     
            //   33c9                 | xor                 ecx, ecx
            //   833d????????08       |                     

        $sequence_9 = { 8d4df0 e8???????? e8???????? c3 8bff 57 }
            // n = 6, score = 200
            //   8d4df0               | lea                 ecx, [ebp - 0x10]
            //   e8????????           |                     
            //   e8????????           |                     
            //   c3                   | ret                 
            //   8bff                 | mov                 edi, edi
            //   57                   | push                edi

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