SYMBOLCOMMON_NAMEaka. SYNONYMS
win.loup (Back to overview)

Loup


Frank Boldewin describes Loup as a small cli-tool to cash out NCR devices (ATM).

References
2020-08-17Twitter (@Arkbird_SOLG)Arkbird
@online{arkbird:20200817:short:a510811, author = {Arkbird}, title = {{Short twitter thread with analysis on Loup ATM malware}}, date = {2020-08-17}, organization = {Twitter (@Arkbird_SOLG)}, url = {https://twitter.com/Arkbird_SOLG/status/1295396936896438272}, language = {English}, urldate = {2020-08-25} } Short twitter thread with analysis on Loup ATM malware
Loup
2020-08-17Twitter (@r3c0nst)Frank Boldewin
@online{boldewin:20200817:loup:c8e43e4, author = {Frank Boldewin}, title = {{Tweet on Loup}}, date = {2020-08-17}, organization = {Twitter (@r3c0nst)}, url = {https://twitter.com/r3c0nst/status/1295275546780327936}, language = {English}, urldate = {2020-08-17} } Tweet on Loup
Loup
Yara Rules
[TLP:WHITE] win_loup_auto (20220808 | Detects win.loup.)
rule win_loup_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-08-05"
        version = "1"
        description = "Detects win.loup."
        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.loup"
        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 = { d1e1 8b5405e0 89540df0 b804000000 c1e000 8b4c05e0 81e100020000 }
            // n = 7, score = 100
            //   d1e1                 | shl                 ecx, 1
            //   8b5405e0             | mov                 edx, dword ptr [ebp + eax - 0x20]
            //   89540df0             | mov                 dword ptr [ebp + ecx - 0x10], edx
            //   b804000000           | mov                 eax, 4
            //   c1e000               | shl                 eax, 0
            //   8b4c05e0             | mov                 ecx, dword ptr [ebp + eax - 0x20]
            //   81e100020000         | and                 ecx, 0x200

        $sequence_1 = { b9???????? e8???????? 8d85f0fdffff 50 6802020000 e8???????? 85c0 }
            // n = 7, score = 100
            //   b9????????           |                     
            //   e8????????           |                     
            //   8d85f0fdffff         | lea                 eax, [ebp - 0x210]
            //   50                   | push                eax
            //   6802020000           | push                0x202
            //   e8????????           |                     
            //   85c0                 | test                eax, eax

        $sequence_2 = { 8b1419 817c02fccccccccc 7512 8b441904 03c2 8b55fc }
            // n = 6, score = 100
            //   8b1419               | mov                 edx, dword ptr [ecx + ebx]
            //   817c02fccccccccc     | cmp                 dword ptr [edx + eax - 4], 0xcccccccc
            //   7512                 | jne                 0x14
            //   8b441904             | mov                 eax, dword ptr [ecx + ebx + 4]
            //   03c2                 | add                 eax, edx
            //   8b55fc               | mov                 edx, dword ptr [ebp - 4]

        $sequence_3 = { 7552 8b4dfc 81791420059319 7424 }
            // n = 4, score = 100
            //   7552                 | jne                 0x54
            //   8b4dfc               | mov                 ecx, dword ptr [ebp - 4]
            //   81791420059319       | cmp                 dword ptr [ecx + 0x14], 0x19930520
            //   7424                 | je                  0x26

        $sequence_4 = { 51 e8???????? 85c0 7513 8b45f4 }
            // n = 5, score = 100
            //   51                   | push                ecx
            //   e8????????           |                     
            //   85c0                 | test                eax, eax
            //   7513                 | jne                 0x15
            //   8b45f4               | mov                 eax, dword ptr [ebp - 0xc]

        $sequence_5 = { f3ab b9???????? e8???????? 0fb74508 }
            // n = 4, score = 100
            //   f3ab                 | rep stosd           dword ptr es:[edi], eax
            //   b9????????           |                     
            //   e8????????           |                     
            //   0fb74508             | movzx               eax, word ptr [ebp + 8]

        $sequence_6 = { 8b4d08 8b5104 83e266 752a }
            // n = 4, score = 100
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]
            //   8b5104               | mov                 edx, dword ptr [ecx + 4]
            //   83e266               | and                 edx, 0x66
            //   752a                 | jne                 0x2c

        $sequence_7 = { 50 8d15f41d4100 e8???????? 58 }
            // n = 4, score = 100
            //   50                   | push                eax
            //   8d15f41d4100         | lea                 edx, [0x411df4]
            //   e8????????           |                     
            //   58                   | pop                 eax

        $sequence_8 = { 83ec08 e8???????? 0fb7c0 8945fc e8???????? }
            // n = 5, score = 100
            //   83ec08               | sub                 esp, 8
            //   e8????????           |                     
            //   0fb7c0               | movzx               eax, ax
            //   8945fc               | mov                 dword ptr [ebp - 4], eax
            //   e8????????           |                     

        $sequence_9 = { 8b55fc 813a63736de0 755b 8b45fc 83781003 }
            // n = 5, score = 100
            //   8b55fc               | mov                 edx, dword ptr [ebp - 4]
            //   813a63736de0         | cmp                 dword ptr [edx], 0xe06d7363
            //   755b                 | jne                 0x5d
            //   8b45fc               | mov                 eax, dword ptr [ebp - 4]
            //   83781003             | cmp                 dword ptr [eax + 0x10], 3

    condition:
        7 of them and filesize < 257024
}
[TLP:WHITE] win_loup_w0   (20200817 | Detects of ATM Malware Loup)
rule win_loup_w0 {
	meta:
		description = "Detects of ATM Malware Loup"
		author = "Frank Boldewin (@r3c0nst)"
		reference = "https://twitter.com/r3c0nst/status/1295275546780327936"
		source = "https://raw.githubusercontent.com/fboldewin/YARA-rules/master/ATM.Malware.Loup.yar"
		date = "2020-08-17"
		hash = "6c9e9f78963ab3e7acb43826906af22571250dc025f9e7116e0201b805dc1196"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.loup"
        malpedia_rule_date = "20200817"
        malpedia_version = "20200817"
        malpedia_license = "CC BY-SA 4.0"
        malpedia_sharing = "TLP:WHITE"

	strings:
		$String1 = "C:\\Users\\muham\\source\\repos\\loup\\Debug\\loup.pdb" ascii nocase
		$String2 = "CurrencyDispenser1" ascii nocase
		$Code = {50 68 C0 D4 01 00 8D 4D E8 51 68 2E 01 00 00 0F B7 55 08 52 E8} // Dispense
		
	condition:
		uint16(0) == 0x5A4D and filesize < 100KB and all of ($String*) and $Code
}
Download all Yara Rules