SYMBOLCOMMON_NAMEaka. SYNONYMS
win.upatre (Back to overview)

Upatre

VTCollection     URLhaus    

Upatre is primarly a downloader. It has been discovered in 2013 and since that time it has been widely updated. Upatre is responsible for delivering further malware to the victims, in specific upatre was a prolific delivery mechanism for Gameover P2P in 2013-2014 and then for Dyre in 2015.

References
2020-06-24Marco Ramilli's BlogMarco Ramilli
Is upatre downloader coming back ?
Upatre
2018-07-13Palo Alto Networks Unit 42Brittany Ash, Mike Harbison
Upatre Continued to Evolve with new Anti-Analysis Techniques
Upatre
2017-07-10Secrary BlogSecrary
Upatre - Trojan Downloader
Upatre
2015-10-06Palo Alto Networks Unit 42Richard Wartell
Ticked Off: Upatre Malware’s Simple Anti-analysis Trick to Defeat Sandboxes
Upatre
2015-06-10Johannes Bader
Win32/Upatre.BI - Part One
Upatre
Yara Rules
[TLP:WHITE] win_upatre_auto (20260504 | Detects win.upatre.)
rule win_upatre_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-05-04"
        version = "1"
        description = "Detects win.upatre."
        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.upatre"
        malpedia_rule_date = "20260422"
        malpedia_hash = "a182e35da64e6d71cb55f125c4d4225196523f14"
        malpedia_version = "20260504"
        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 = { 33c0 aa b404 895d98 8bfb 03d8 }
            // n = 6, score = 200
            //   33c0                 | xor                 eax, eax
            //   aa                   | stosb               byte ptr es:[edi], al
            //   b404                 | mov                 ah, 4
            //   895d98               | mov                 dword ptr [ebp - 0x68], ebx
            //   8bfb                 | mov                 edi, ebx
            //   03d8                 | add                 ebx, eax

        $sequence_1 = { 8945d0 03c1 8945fc 8bd8 03c1 8bf8 }
            // n = 6, score = 200
            //   8945d0               | mov                 dword ptr [ebp - 0x30], eax
            //   03c1                 | add                 eax, ecx
            //   8945fc               | mov                 dword ptr [ebp - 4], eax
            //   8bd8                 | mov                 ebx, eax
            //   03c1                 | add                 eax, ecx
            //   8bf8                 | mov                 edi, eax

        $sequence_2 = { 8b7df4 33c0 b02f 66ab 8b45a8 }
            // n = 5, score = 200
            //   8b7df4               | mov                 edi, dword ptr [ebp - 0xc]
            //   33c0                 | xor                 eax, eax
            //   b02f                 | mov                 al, 0x2f
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   8b45a8               | mov                 eax, dword ptr [ebp - 0x58]

        $sequence_3 = { ebf5 8b7594 33c9 66ad 6685c0 7404 66ab }
            // n = 7, score = 200
            //   ebf5                 | jmp                 0xfffffff7
            //   8b7594               | mov                 esi, dword ptr [ebp - 0x6c]
            //   33c9                 | xor                 ecx, ecx
            //   66ad                 | lodsw               ax, word ptr [esi]
            //   6685c0               | test                ax, ax
            //   7404                 | je                  6
            //   66ab                 | stosw               word ptr es:[edi], ax

        $sequence_4 = { ad 0430 66ab 81c60e010000 ac 3c01 740c }
            // n = 7, score = 200
            //   ad                   | lodsd               eax, dword ptr [esi]
            //   0430                 | add                 al, 0x30
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   81c60e010000         | add                 esi, 0x10e
            //   ac                   | lodsb               al, byte ptr [esi]
            //   3c01                 | cmp                 al, 1
            //   740c                 | je                  0xe

        $sequence_5 = { 66ab b02f 66ab 8bc1 0430 }
            // n = 5, score = 200
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   b02f                 | mov                 al, 0x2f
            //   66ab                 | stosw               word ptr es:[edi], ax
            //   8bc1                 | mov                 eax, ecx
            //   0430                 | add                 al, 0x30

        $sequence_6 = { e9???????? 8d4590 50 6a40 }
            // n = 4, score = 200
            //   e9????????           |                     
            //   8d4590               | lea                 eax, [ebp - 0x70]
            //   50                   | push                eax
            //   6a40                 | push                0x40

        $sequence_7 = { 897d9c b988130000 51 56 }
            // n = 4, score = 200
            //   897d9c               | mov                 dword ptr [ebp - 0x64], edi
            //   b988130000           | mov                 ecx, 0x1388
            //   51                   | push                ecx
            //   56                   | push                esi

        $sequence_8 = { 3bd0 7508 8b4dd4 894df4 eb0e }
            // n = 5, score = 100
            //   3bd0                 | cmp                 edx, eax
            //   7508                 | jne                 0xa
            //   8b4dd4               | mov                 ecx, dword ptr [ebp - 0x2c]
            //   894df4               | mov                 dword ptr [ebp - 0xc], ecx
            //   eb0e                 | jmp                 0x10

        $sequence_9 = { 741b e0d6 b454 d2ea 54 b2f2 37 }
            // n = 7, score = 100
            //   741b                 | je                  0x1d
            //   e0d6                 | loopne              0xffffffd8
            //   b454                 | mov                 ah, 0x54
            //   d2ea                 | shr                 dl, cl
            //   54                   | push                esp
            //   b2f2                 | mov                 dl, 0xf2
            //   37                   | aaa                 

        $sequence_10 = { 894dfc c645bc6a c645bd09 c645c46a c645c501 c645c3e8 c645cfc3 }
            // n = 7, score = 100
            //   894dfc               | mov                 dword ptr [ebp - 4], ecx
            //   c645bc6a             | mov                 byte ptr [ebp - 0x44], 0x6a
            //   c645bd09             | mov                 byte ptr [ebp - 0x43], 9
            //   c645c46a             | mov                 byte ptr [ebp - 0x3c], 0x6a
            //   c645c501             | mov                 byte ptr [ebp - 0x3b], 1
            //   c645c3e8             | mov                 byte ptr [ebp - 0x3d], 0xe8
            //   c645cfc3             | mov                 byte ptr [ebp - 0x31], 0xc3

        $sequence_11 = { eb2b 8b55f4 8b420c 50 e8???????? 83c404 0fb7c8 }
            // n = 7, score = 100
            //   eb2b                 | jmp                 0x2d
            //   8b55f4               | mov                 edx, dword ptr [ebp - 0xc]
            //   8b420c               | mov                 eax, dword ptr [edx + 0xc]
            //   50                   | push                eax
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   0fb7c8               | movzx               ecx, ax

        $sequence_12 = { 83c404 0fb7c0 83f805 7514 8b4df8 }
            // n = 5, score = 100
            //   83c404               | add                 esp, 4
            //   0fb7c0               | movzx               eax, ax
            //   83f805               | cmp                 eax, 5
            //   7514                 | jne                 0x16
            //   8b4df8               | mov                 ecx, dword ptr [ebp - 8]

        $sequence_13 = { e8???????? 8b55d0 52 e8???????? e9???????? 8b4514 8b4de8 }
            // n = 7, score = 100
            //   e8????????           |                     
            //   8b55d0               | mov                 edx, dword ptr [ebp - 0x30]
            //   52                   | push                edx
            //   e8????????           |                     
            //   e9????????           |                     
            //   8b4514               | mov                 eax, dword ptr [ebp + 0x14]
            //   8b4de8               | mov                 ecx, dword ptr [ebp - 0x18]

        $sequence_14 = { 668b4508 668945ec 0fb74dec 81f9007d0000 }
            // n = 4, score = 100
            //   668b4508             | mov                 ax, word ptr [ebp + 8]
            //   668945ec             | mov                 word ptr [ebp - 0x14], ax
            //   0fb74dec             | movzx               ecx, word ptr [ebp - 0x14]
            //   81f9007d0000         | cmp                 ecx, 0x7d00

        $sequence_15 = { 8b510c 52 e8???????? 83c404 0fb7c0 83f803 7534 }
            // n = 7, score = 100
            //   8b510c               | mov                 edx, dword ptr [ecx + 0xc]
            //   52                   | push                edx
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   0fb7c0               | movzx               eax, ax
            //   83f803               | cmp                 eax, 3
            //   7534                 | jne                 0x36

    condition:
        7 of them and filesize < 294912
}
[TLP:WHITE] win_upatre_w0   (20170517 | Detects Upatre malware - file hazgurut.exe)
rule win_upatre_w0 {
	meta:
		author = "Florian Roth"
		description = "Detects Upatre malware - file hazgurut.exe"
		reference = "https://weankor.vxstream-sandbox.com/sample/6b857ef314938d37997c178ea50687a281d8ff9925f0c4e70940754643e2c0e3?environmentId=7"
		date = "2015-10-13"
		score = 70
		hash = "7ee0d20b15e24b7fe72154d9521e1959752b4e9c20d2992500df9ac096450a50"
		hash = "79ffc620ddb143525fa32bc6a83c636168501a4a589a38cdb0a74afac1ee8b92"
		hash = "62d8a6880c594fe9529158b94a9336179fa7a3d3bf1aa9d0baaf07d03b281bd3"
		hash = "c64282aca980d558821bec8b3dfeae562d9620139dc43d02ee4d1745cd989f2a"
		hash = "a35f9870f9d4b993eb094460b05ee1f657199412807abe6264121dd7cc12aa70"
		hash = "f8cb2730ebc8fac1c58da1346ad1208585fe730c4f03d976eb1e13a1f5d81ef9"
		hash = "b65ad7e2d299d6955d95b7ae9b62233c34bc5f6aa9f87dc482914f8ad2cba5d2"
		hash = "6b857ef314938d37997c178ea50687a281d8ff9925f0c4e70940754643e2c0e3"
		hash = "33a288cef0ae7192b34bd2ef3f523dfb7c6cbc2735ba07edf988400df1713041"
		hash = "2a8e50afbc376cb2a9700d2d83c1be0c21ef942309676ecac897ba4646aba273"
		hash = "3d0f2c7e07b7d64b1bad049b804ff1aae8c1fc945a42ad555eca3e1698c7f7d3"
		hash = "951360b32a78173a1f81da0ded8b4400e230125d05970d41621830efc5337274"
		hash = "bd90faebfd7663ef89b120fe69809532cada3eb94bb94094e8bc615f70670295"
		hash = "8c5823f67f9625e4be39a67958f0f614ece49c18596eacc5620524bc9b6bad3d"
		source = "https://github.com/mattulm/sfiles_yara/blob/master/malware/upatre_oct15.yar"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.upatre"
        malpedia_version = "20170517"
        malpedia_license = "CC BY-NC-SA 4.0"
        malpedia_sharing = "TLP:WHITE"
	strings:
		$a1 = "barcod" fullword ascii

		$s0 = "msports.dll" fullword ascii
		$s1 = "nddeapi.dll" fullword ascii
		$s2 = "glmf32.dll" fullword ascii
		$s3 = "<requestedExecutionLevel level=\"requireAdministrator\" uiAccess=\"false\">" fullword ascii
		$s4 = "cmutil.dll" fullword ascii
		$s5 = "mprapi.dll" fullword ascii
		$s6 = "glmf32.dll" fullword ascii
	condition:
		$a1 in (0..4000) and all of ($s*)
}
Download all Yara Rules