SYMBOLCOMMON_NAMEaka. SYNONYMS
win.stealhook (Back to overview)

STEALHOOK

Actor(s): OilRig

VTCollection    

There is no description at this point.

References
2024-10-11 ⋅ Trend Micro ⋅ Ahmed Kamal, Bahaa Yamany, Mohamed Fahmy, Nick Dai
Earth Simnavaz (aka APT34) Levies Advanced Cyberattacks Against UAE and Gulf Regions
STEALHOOK
2024-10-11 ⋅ Trend Micro ⋅ Ahmed Kamal, Bahaa Yamany, Mohamed Fahmy, Nick Dai
Earth Simnavaz (aka APT34) Levies Advanced Cyberattacks Against Middle East
STEALHOOK OilRig
Yara Rules
[TLP:WHITE] win_stealhook_auto (20260917 | Detects win.stealhook.)
rule win_stealhook_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.stealhook."
        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.stealhook"
        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 = { 490f47c3 6644390401 7411 ffc2 4883c102 4863c2 }
            // n = 6, score = 100
            //   490f47c3             | lea                 ecx, [eax + 8]
            //   6644390401           | movups              xmmword ptr [edx], xmm0
            //   7411                 | dec                 eax
            //   ffc2                 | lea                 eax, [0x59464]
            //   4883c102             | dec                 eax
            //   4863c2               | mov                 dword ptr [ebx], eax

        $sequence_1 = { 498bce 49837e1807 7603 498b0e 0fb70478 }
            // n = 5, score = 100
            //   498bce               | cmp                 esp, 7
            //   49837e1807           | dec                 ebp
            //   7603                 | cmova               eax, edi
            //   498b0e               | dec                 esp
            //   0fb70478             | mov                 ebx, dword ptr [esp + 0xe8]

        $sequence_2 = { 418d4c2440 e8???????? 488bd8 488985a0000000 }
            // n = 4, score = 100
            //   418d4c2440           | inc                 ecx
            //   e8????????           |                     
            //   488bd8               | mov                 byte ptr [edi + 7], al
            //   488985a0000000       | inc                 ecx

        $sequence_3 = { be01000000 83630800 488d057ba70400 488903 eb02 33db 48891f }
            // n = 7, score = 100
            //   be01000000           | dec                 eax
            //   83630800             | lea                 edi, [0x2c35c]
            //   488d057ba70400       | test                al, al
            //   488903               | je                  0x35a
            //   eb02                 | inc                 esp
            //   33db                 | sub                 esp, dword ptr [esp + 0x48]
            //   48891f               | inc                 esp

        $sequence_4 = { 4c8d05cea40100 418b01 83e03f 488d0cc0 498b04d0 448a44c838 4180e0fe }
            // n = 7, score = 100
            //   4c8d05cea40100       | dec                 ecx
            //   418b01               | mov                 eax, edx
            //   83e03f               | inc                 ebp
            //   488d0cc0             | mov                 esi, ecx
            //   498b04d0             | dec                 eax
            //   448a44c838           | sar                 eax, 6
            //   4180e0fe             | dec                 eax

        $sequence_5 = { 488b8090000000 0f114170 0f118980000000 48898190000000 488d0518300000 4889458f 488b454f }
            // n = 7, score = 100
            //   488b8090000000       | dec                 eax
            //   0f114170             | mov                 dword ptr [ebp - 0x61], eax
            //   0f118980000000       | dec                 eax
            //   48898190000000       | arpl                word ptr [ebp + 0x5f], ax
            //   488d0518300000       | dec                 esp
            //   4889458f             | mov                 dword ptr [ebp - 0x51], eax
            //   488b454f             | dec                 eax

        $sequence_6 = { e8???????? 4084f6 488d0dd01f0600 7504 488b4f10 4c8d442428 33d2 }
            // n = 7, score = 100
            //   e8????????           |                     
            //   4084f6               | lea                 eax, [0x385cf]
            //   488d0dd01f0600       | dec                 ebx
            //   7504                 | dec                 eax
            //   488b4f10             | lea                 ecx, [ebx + ebx*4]
            //   4c8d442428           | dec                 eax
            //   33d2                 | lea                 ecx, [eax + ecx*8]

        $sequence_7 = { 412bc7 7428 413bc7 755b 4c8d05161a0100 488b9558070000 498bce }
            // n = 7, score = 100
            //   412bc7               | lea                 edx, [0x44bb6]
            //   7428                 | test                eax, eax
            //   413bc7               | je                  0x973
            //   755b                 | inc                 ebp
            //   4c8d05161a0100       | xor                 eax, eax
            //   488b9558070000       | dec                 ecx
            //   498bce               | mov                 dword ptr [ebx - 0x10], ebp

        $sequence_8 = { 4981f880000000 73c2 4d8d480f 4983e1f0 4d8bd9 49c1eb04 478b9c9a68430700 }
            // n = 7, score = 100
            //   4981f880000000       | dec                 eax
            //   73c2                 | lea                 ecx, [0x265fe]
            //   4d8d480f             | dec                 eax
            //   4983e1f0             | mov                 dword ptr [ebp - 0x28], eax
            //   4d8bd9               | dec                 eax
            //   49c1eb04             | mov                 dword ptr [ebp - 0x20], ecx
            //   478b9c9a68430700     | dec                 eax

        $sequence_9 = { 488d9424b0020000 4983fc07 490f47d7 4883c210 4c8bc6 488d8c2450020000 }
            // n = 6, score = 100
            //   488d9424b0020000     | mov                 eax, dword ptr [ebx]
            //   4983fc07             | dec                 eax
            //   490f47d7             | lea                 esi, [0x21cbf]
            //   4883c210             | dec                 eax
            //   4c8bc6               | lea                 ebx, [ecx + 0xf8]
            //   488d8c2450020000     | inc                 ecx

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