SYMBOLCOMMON_NAMEaka. SYNONYMS
win.hamweq (Back to overview)

Hamweq

VTCollection    

There is no description at this point.

References
2020-07-13 ⋅ Youtube (OALabs) ⋅ OALabs, Sergei Frankoff
How To Sinkhole A Botnet
Hamweq
2020-05-31 ⋅ Nullteilerfrei Blog ⋅ Lars Wallenborn
String Obfuscation in the Hamweq IRC-bot
Hamweq
2020-05-30 ⋅ Youtube (OALabs) ⋅ Sergei Frankoff
IRC Botnet Reverse Engineering Part 1 - Preparing Binary for Analysis in IDA PRO
Hamweq
2011-06-03 ⋅ ⋅ CERT Polska / NASK ⋅ CERT.PL
Botnet Hamweq - analiza
Hamweq
Yara Rules
[TLP:WHITE] win_hamweq_auto (20260917 | Detects win.hamweq.)
rule win_hamweq_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.hamweq."
        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.hamweq"
        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 = { c745fc01000000 eb0a 83fffc 7424 83fffb 741f }
            // n = 6, score = 200
            //   c745fc01000000       | mov                 dword ptr [ebp - 4], 1
            //   eb0a                 | jmp                 0xc
            //   83fffc               | cmp                 edi, -4
            //   7424                 | je                  0x26
            //   83fffb               | cmp                 edi, -5
            //   741f                 | je                  0x21

        $sequence_1 = { 8b06 ff7148 8d8de0fdffff 51 }
            // n = 4, score = 200
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   ff7148               | push                dword ptr [ecx + 0x48]
            //   8d8de0fdffff         | lea                 ecx, [ebp - 0x220]
            //   51                   | push                ecx

        $sequence_2 = { 837c910800 8d449108 894514 0f8438010000 837c910c00 }
            // n = 5, score = 200
            //   837c910800           | cmp                 dword ptr [ecx + edx*4 + 8], 0
            //   8d449108             | lea                 eax, [ecx + edx*4 + 8]
            //   894514               | mov                 dword ptr [ebp + 0x14], eax
            //   0f8438010000         | je                  0x13e
            //   837c910c00           | cmp                 dword ptr [ecx + edx*4 + 0xc], 0

        $sequence_3 = { 0f84d6040000 8d4de4 51 ff75fc 6879204000 }
            // n = 5, score = 200
            //   0f84d6040000         | je                  0x4dc
            //   8d4de4               | lea                 ecx, [ebp - 0x1c]
            //   51                   | push                ecx
            //   ff75fc               | push                dword ptr [ebp - 4]
            //   6879204000           | push                0x402079

        $sequence_4 = { 8b4e08 8b06 ffb180010000 8d8dfcfeffff 51 ff5048 8b06 }
            // n = 7, score = 200
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   ffb180010000         | push                dword ptr [ecx + 0x180]
            //   8d8dfcfeffff         | lea                 ecx, [ebp - 0x104]
            //   51                   | push                ecx
            //   ff5048               | call                dword ptr [eax + 0x48]
            //   8b06                 | mov                 eax, dword ptr [esi]

        $sequence_5 = { 8d4de4 51 ff75fc 6842254000 }
            // n = 4, score = 200
            //   8d4de4               | lea                 ecx, [ebp - 0x1c]
            //   51                   | push                ecx
            //   ff75fc               | push                dword ptr [ebp - 4]
            //   6842254000           | push                0x402542

        $sequence_6 = { 7ccc 83c604 8bc6 833e00 }
            // n = 4, score = 200
            //   7ccc                 | jl                  0xffffffce
            //   83c604               | add                 esi, 4
            //   8bc6                 | mov                 eax, esi
            //   833e00               | cmp                 dword ptr [esi], 0

        $sequence_7 = { e9???????? 8b4e08 8b06 ffb188000000 ff33 }
            // n = 5, score = 200
            //   e9????????           |                     
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   ffb188000000         | push                dword ptr [ecx + 0x88]
            //   ff33                 | push                dword ptr [ebx]

        $sequence_8 = { 8b06 57 e9???????? 837de800 }
            // n = 4, score = 200
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   57                   | push                edi
            //   e9????????           |                     
            //   837de800             | cmp                 dword ptr [ebp - 0x18], 0

        $sequence_9 = { 57 51 ff5048 8b06 }
            // n = 4, score = 200
            //   57                   | push                edi
            //   51                   | push                ecx
            //   ff5048               | call                dword ptr [eax + 0x48]
            //   8b06                 | mov                 eax, dword ptr [esi]

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