SYMBOLCOMMON_NAMEaka. SYNONYMS
win.salgorea (Back to overview)

Salgorea

aka: BadCake

Actor(s): APT32

VTCollection    

There is no description at this point.

References
2019-04-24 ⋅ Check Point Research ⋅ Itay Cohen
Deobfuscating APT32 Flow Graphs with Cutter and Radare2
Salgorea
2019-01-17 ⋅ Accenture ⋅ Matthew Brady
Pond Loach delivers BadCake malware
Salgorea APT32
2018-03-01 ⋅ ESET Research ⋅ OceanLotus: Old techniques, new backdoor
OceanLotus: Old techniques, new backdoor
Salgorea
Yara Rules
[TLP:WHITE] win_salgorea_auto (20260917 | Detects win.salgorea.)
rule win_salgorea_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.salgorea."
        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.salgorea"
        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 = { 66c1e804 8b44240c 0fbafa00 0fbcd2 }
            // n = 4, score = 300
            //   66c1e804             | shr                 ax, 4
            //   8b44240c             | mov                 eax, dword ptr [esp + 0xc]
            //   0fbafa00             | btc                 edx, 0
            //   0fbcd2               | bsf                 edx, edx

        $sequence_1 = { 8b5c240c 53 9d 8b5c2404 }
            // n = 4, score = 300
            //   8b5c240c             | mov                 ebx, dword ptr [esp + 0xc]
            //   53                   | push                ebx
            //   9d                   | popfd               
            //   8b5c2404             | mov                 ebx, dword ptr [esp + 4]

        $sequence_2 = { 66c1e306 80eb38 80e6ee f8 f6d1 52 40 }
            // n = 7, score = 300
            //   66c1e306             | shl                 bx, 6
            //   80eb38               | sub                 bl, 0x38
            //   80e6ee               | and                 dh, 0xee
            //   f8                   | clc                 
            //   f6d1                 | not                 cl
            //   52                   | push                edx
            //   40                   | inc                 eax

        $sequence_3 = { 8b5c2404 f8 99 8b1424 f5 66f7d8 8b442410 }
            // n = 7, score = 300
            //   8b5c2404             | mov                 ebx, dword ptr [esp + 4]
            //   f8                   | clc                 
            //   99                   | cdq                 
            //   8b1424               | mov                 edx, dword ptr [esp]
            //   f5                   | cmc                 
            //   66f7d8               | neg                 ax
            //   8b442410             | mov                 eax, dword ptr [esp + 0x10]

        $sequence_4 = { 66c1e303 f6d1 f8 6633d2 66b8b96a 66b9ada1 66f7f1 }
            // n = 7, score = 300
            //   66c1e303             | shl                 bx, 3
            //   f6d1                 | not                 cl
            //   f8                   | clc                 
            //   6633d2               | xor                 dx, dx
            //   66b8b96a             | mov                 ax, 0x6ab9
            //   66b9ada1             | mov                 cx, 0xa1ad
            //   66f7f1               | div                 cx

        $sequence_5 = { 51 66b9b469 66f7f1 f7da }
            // n = 4, score = 300
            //   51                   | push                ecx
            //   66b9b469             | mov                 cx, 0x69b4
            //   66f7f1               | div                 cx
            //   f7da                 | neg                 edx

        $sequence_6 = { 8b5c240c 53 d50a 48 d40a 22c9 }
            // n = 6, score = 300
            //   8b5c240c             | mov                 ebx, dword ptr [esp + 0xc]
            //   53                   | push                ebx
            //   d50a                 | aad                 
            //   48                   | dec                 eax
            //   d40a                 | aam                 
            //   22c9                 | and                 cl, cl

        $sequence_7 = { 51 6698 f7db 33d2 b889510000 b98c0b0000 }
            // n = 6, score = 300
            //   51                   | push                ecx
            //   6698                 | cbw                 
            //   f7db                 | neg                 ebx
            //   33d2                 | xor                 edx, edx
            //   b889510000           | mov                 eax, 0x5189
            //   b98c0b0000           | mov                 ecx, 0xb8c

        $sequence_8 = { a1???????? 8945cc 8d45cc 3930 }
            // n = 4, score = 200
            //   a1????????           |                     
            //   8945cc               | mov                 dword ptr [ebp - 0x34], eax
            //   8d45cc               | lea                 eax, [ebp - 0x34]
            //   3930                 | cmp                 dword ptr [eax], esi

        $sequence_9 = { 8d943a9979825a 8b7df4 c1c61e 33fe 23f9 337df4 }
            // n = 6, score = 100
            //   8d943a9979825a       | lea                 edx, [edx + edi + 0x5a827999]
            //   8b7df4               | mov                 edi, dword ptr [ebp - 0xc]
            //   c1c61e               | rol                 esi, 0x1e
            //   33fe                 | xor                 edi, esi
            //   23f9                 | and                 edi, ecx
            //   337df4               | xor                 edi, dword ptr [ebp - 0xc]

        $sequence_10 = { 8d95a4feffff 3bca 7725 8bfa }
            // n = 4, score = 100
            //   8d95a4feffff         | lea                 edx, [ebp - 0x15c]
            //   3bca                 | cmp                 ecx, edx
            //   7725                 | ja                  0x27
            //   8bfa                 | mov                 edi, edx

        $sequence_11 = { 8d943a9979825a c1c11e 8bfe 33f9 }
            // n = 4, score = 100
            //   8d943a9979825a       | lea                 edx, [edx + edi + 0x5a827999]
            //   c1c11e               | rol                 ecx, 0x1e
            //   8bfe                 | mov                 edi, esi
            //   33f9                 | xor                 edi, ecx

        $sequence_12 = { 8d95a8feffff e8???????? 8bf0 59 }
            // n = 4, score = 100
            //   8d95a8feffff         | lea                 edx, [ebp - 0x158]
            //   e8????????           |                     
            //   8bf0                 | mov                 esi, eax
            //   59                   | pop                 ecx

        $sequence_13 = { 8d943a9979825a 8bf9 337dfc 8bf2 }
            // n = 4, score = 100
            //   8d943a9979825a       | lea                 edx, [edx + edi + 0x5a827999]
            //   8bf9                 | mov                 edi, ecx
            //   337dfc               | xor                 edi, dword ptr [ebp - 4]
            //   8bf2                 | mov                 esi, edx

        $sequence_14 = { 8d943ad6c162ca 8b7df4 337dec d1c6 }
            // n = 4, score = 100
            //   8d943ad6c162ca       | lea                 edx, [edx + edi - 0x359d3e2a]
            //   8b7df4               | mov                 edi, dword ptr [ebp - 0xc]
            //   337dec               | xor                 edi, dword ptr [ebp - 0x14]
            //   d1c6                 | rol                 esi, 1

        $sequence_15 = { 8d95a4feffff e8???????? 84c0 7508 }
            // n = 4, score = 100
            //   8d95a4feffff         | lea                 edx, [ebp - 0x15c]
            //   e8????????           |                     
            //   84c0                 | test                al, al
            //   7508                 | jne                 0xa

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