SYMBOLCOMMON_NAMEaka. SYNONYMS
win.magala (Back to overview)

Magala

VTCollection    

There is no description at this point.

References
2017-07-12 ⋅ Kaspersky Labs ⋅ Sergey Yunakovsky
The Magala Trojan Clicker: A Hidden Advertising Threat
Magala
Yara Rules
[TLP:WHITE] win_magala_auto (20260917 | Detects win.magala.)
rule win_magala_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.magala."
        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.magala"
        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 = { 53 ff15???????? 898540ffffff 68???????? }
            // n = 4, score = 200
            //   53                   | push                ebx
            //   ff15????????         |                     
            //   898540ffffff         | mov                 dword ptr [ebp - 0xc0], eax
            //   68????????           |                     

        $sequence_1 = { 8d85c4fdffff c785c4fdffff2c020000 50 53 ff15???????? 85c0 743e }
            // n = 7, score = 200
            //   8d85c4fdffff         | lea                 eax, [ebp - 0x23c]
            //   c785c4fdffff2c020000     | mov    dword ptr [ebp - 0x23c], 0x22c
            //   50                   | push                eax
            //   53                   | push                ebx
            //   ff15????????         |                     
            //   85c0                 | test                eax, eax
            //   743e                 | je                  0x40

        $sequence_2 = { 83fb01 751a 837e1410 720a 8b0e 8a450c 880411 }
            // n = 7, score = 200
            //   83fb01               | cmp                 ebx, 1
            //   751a                 | jne                 0x1c
            //   837e1410             | cmp                 dword ptr [esi + 0x14], 0x10
            //   720a                 | jb                  0xc
            //   8b0e                 | mov                 ecx, dword ptr [esi]
            //   8a450c               | mov                 al, byte ptr [ebp + 0xc]
            //   880411               | mov                 byte ptr [ecx + edx], al

        $sequence_3 = { 0f84ca000000 c645fc07 8b45c4 85c0 7406 8b08 50 }
            // n = 7, score = 200
            //   0f84ca000000         | je                  0xd0
            //   c645fc07             | mov                 byte ptr [ebp - 4], 7
            //   8b45c4               | mov                 eax, dword ptr [ebp - 0x3c]
            //   85c0                 | test                eax, eax
            //   7406                 | je                  8
            //   8b08                 | mov                 ecx, dword ptr [eax]
            //   50                   | push                eax

        $sequence_4 = { 83c408 eb1b 33f6 3975f0 7611 8d043e 8bcb }
            // n = 7, score = 200
            //   83c408               | add                 esp, 8
            //   eb1b                 | jmp                 0x1d
            //   33f6                 | xor                 esi, esi
            //   3975f0               | cmp                 dword ptr [ebp - 0x10], esi
            //   7611                 | jbe                 0x13
            //   8d043e               | lea                 eax, [esi + edi]
            //   8bcb                 | mov                 ecx, ebx

        $sequence_5 = { 8d45d8 6a00 c7411000000000 c741140f000000 50 c60100 e8???????? }
            // n = 7, score = 200
            //   8d45d8               | lea                 eax, [ebp - 0x28]
            //   6a00                 | push                0
            //   c7411000000000       | mov                 dword ptr [ecx + 0x10], 0
            //   c741140f000000       | mov                 dword ptr [ecx + 0x14], 0xf
            //   50                   | push                eax
            //   c60100               | mov                 byte ptr [ecx], 0
            //   e8????????           |                     

        $sequence_6 = { 7514 8d85f0fdffff 8bcf 50 e8???????? }
            // n = 5, score = 200
            //   7514                 | jne                 0x16
            //   8d85f0fdffff         | lea                 eax, [ebp - 0x210]
            //   8bcf                 | mov                 ecx, edi
            //   50                   | push                eax
            //   e8????????           |                     

        $sequence_7 = { 33f6 8975ec 68???????? c745fc00000000 }
            // n = 4, score = 200
            //   33f6                 | xor                 esi, esi
            //   8975ec               | mov                 dword ptr [ebp - 0x14], esi
            //   68????????           |                     
            //   c745fc00000000       | mov                 dword ptr [ebp - 4], 0

        $sequence_8 = { 394614 730b 50 8bce e8???????? 8b4dfc }
            // n = 6, score = 200
            //   394614               | cmp                 dword ptr [esi + 0x14], eax
            //   730b                 | jae                 0xd
            //   50                   | push                eax
            //   8bce                 | mov                 ecx, esi
            //   e8????????           |                     
            //   8b4dfc               | mov                 ecx, dword ptr [ebp - 4]

        $sequence_9 = { 8d4dd8 e8???????? 8b45d4 83f810 7249 8b4dc0 40 }
            // n = 7, score = 200
            //   8d4dd8               | lea                 ecx, [ebp - 0x28]
            //   e8????????           |                     
            //   8b45d4               | mov                 eax, dword ptr [ebp - 0x2c]
            //   83f810               | cmp                 eax, 0x10
            //   7249                 | jb                  0x4b
            //   8b4dc0               | mov                 ecx, dword ptr [ebp - 0x40]
            //   40                   | inc                 eax

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