0x The Malware Lab
Stealer
Stealer.YouUp.Nim

Nim / Win64 · YouUp

A Nim-compiled information stealer. It reaches a hardcoded C2, reads a target file (cosmo.jpeg) from the desktop, and exfiltrates it as encrypted, base64-encoded chunks over HTTP.

Identification

Original name
Malware.Unknown.exe.malz
Aliases
Malware.Unknown.exe.malz
File type
PE32+ executable (GUI) x86-64, for MS Windows
SHA256
81A10784AE60A58A969E858C9C4A2AE0D4EBE46E9BD6776992461C062F70099D
MD5
812a7c7eb9d7a4332b9e166aa09284d7
VirusTotal
23/71 security vendors flagged this file as malicious

Capabilities

Indicators of Compromise

Network indicators

TypeValueNote
domainhey.youup.localC2 / exfiltration host (stored as interleaved-obfuscated string)
domainauth.ns.localSecondary host referenced in strings
user-agentNim httpclient/1.6.2Default Nim HTTP client user agent

Host indicators

TypeValueNote
fileDesktop\cosmo.jpegTarget file read and exfiltrated

MITRE ATT&CK

TechniqueIDNote
Data from Local SystemT1005Reads cosmo.jpeg from the desktop.
Archive Collected DataT1560Encrypts and base64-encodes data before sending.
Exfiltration Over C2 ChannelT1041Sends the encoded data to the C2 over HTTP.
Obfuscated Files or InformationT1027C2 strings are stored interleaved/obfuscated; Nim stack strings.

Execution flow

1. Resolve / connect to the hardcoded C2 (hey.youup.local). 2. Read the target file cosmo.jpeg from the Desktop. 3. Encrypt the contents and base64-encode them. 4. Exfiltrate the encoded data to the C2 in chunks.

Static analysis

Compilation timestamp 2022-01-29 17:39:03 UTC, entry point 5280, 7 sections. Interesting FLOSS/strings output shows classic Nim artifacts and obfuscated C2 hosts stored with interleaved characters:


fatal.nim  socket closesocket WSAIoctl getaddrinfo connect
BCryptGenRandom @Bcrypt.dll
@Nim httpclient/1.6.2
hwtwtwpw:w/w/whwewyw.wywowuwuwpw.wlwowcwawlw   -> http://hey.youup.local
axuxtxhx.xnxsx.xlxoxcxaxlx                     -> auth.ns.local
Desktop\cosmo.jpeg

The IAT shows the usual C-runtime/Nim bootstrap imports (VirtualAlloc, VirtualProtect, LoadLibraryA, critical-section APIs).

Dynamic analysis

From first analysis this is an info stealer written in Nim. It connects to hey.youup.local and exfiltrates some encrypted data, base64-encoded (the target being cosmo.jpeg). This is a close sibling of the SikoMode stealer — same Desktop\cosmo.jpeg target, similar Nim tradecraft — but a different C2 and encoding path.

Screenshots

VirusTotal detections
VirusTotal detections
PE header / compilation info
PE header / compilation info
Nim string artifacts
Nim string artifacts
Obfuscated C2 strings
Obfuscated C2 strings
Networking imports
Networking imports
Bcrypt / crypto imports
Bcrypt / crypto imports
cosmo.jpeg reference
cosmo.jpeg reference
IAT overview
IAT overview
Dynamic analysis
Dynamic analysis
Network capture
Network capture
Exfiltration traffic
Exfiltration traffic
Encoded payload
Encoded payload
← All samples