unpack#5

Malware unpacking · 3642 objects · 30 static reports · generated 2026-10-16 17:07:15 UTC

Task outcome

9 unpacked objects

Analysis summary

The MSI/CFB package was successfully unpacked through its CAB and NSIS layers, recovering the disguised Python bytecode stages, their decoded Python sources, and one final C# implant source; the chains use hex/XOR/reverse/Base64/zlib and AES-encrypted PowerShell payloads. The first chain yielded a Cloudflare Worker C2 and implant, while the second chain’s inner envelope was not decrypted before the token limit, so its final implant body remains unresolved.

Read full analysis

Kesakode detections

No Kesakode detections recorded.

Unpacked objects

MsiCustomActions.dll

ID 93
File type PE
Category PROGRAM
Architecture X86
Size 208.0 KiB
Kesakode No verdict available
SHA256 0630014e81058bc5976b626865a7d6cf33cc9a8dcad5e6e73c266c0bce9f4abe

RVtools-4.7.0.2.exe

ID 122
File type PE
Category PROGRAM
Architecture X86
Size 18.5 MiB
Kesakode No verdict available
SHA256 d2c57c58e358b1707e6f39bbfe72532e9cc4a169345bb35bba8b9d927cb6fd6d

start.exe

ID 123
File type PE
Category PROGRAM
Architecture DOTNET
Size 6.0 KiB
Kesakode No verdict available
SHA256 3685368e63a3c892e425eea24a48bc6abf5ff84418bd2f42f35119f87b4d838f

rvtools4.7.1.msi

ID 3959
File type CFB
Category DOCUMENT
Architecture MSI
Size 8.0 MiB
Kesakode No verdict available
SHA256 0506126bcbc4641d41c138e88d9ea9f10fb65f1eeab3bff90ad25330108b324c

LICENSE.txt_pyc_stage

ID 4697
File type PYC
Category PROGRAM
Architecture PY312
Size 127.9 KiB
Kesakode No verdict available
SHA256 11e359697202065e919714d4af0f7b66fb05a2105acefc19d98a0194d55d28d6

LICENSE1.txt_pyc_stage

ID 4698
File type PYC
Category PROGRAM
Architecture PY312
Size 129.3 KiB
Kesakode No verdict available
SHA256 dca22262d20af2d86fdb7fde57f39d4660066db53ade9ddb03980a7a2fdf9e42

license_stage_source.py

ID 7419
File type text/utf8
Category DOCUMENT
Architecture NONE
Size 85.3 KiB
Kesakode No verdict available
SHA256 64adba36691129d9d520dde9686ddcb3874356c6dfec66700ab9f55c124cdfd7

license1_stage_source.py

ID 7420
File type text/utf8
Category DOCUMENT
Architecture NONE
Size 86.8 KiB
Kesakode No verdict available
SHA256 9c1f13d716846fd47ede42b73ce5ab7b8f4d25d04bbb8f2d643f9603b59f0e41

final_implant_csharp.cs

ID 7427
File type text/utf16
Category DOCUMENT
Architecture NONE
Size 15.6 KiB
Kesakode No verdict available
SHA256 30e8156337fd09b61cadd2a9e01cde74bc1417f44a20994a32b43f38dac154a9
Unpacking report

File description

Submitted root analysis is a 19,697,664-byte CFB/MSI package: an EXEMSI "MSI Wrapper" 25.0.54.0 installer ("RVtools System 4.7.0.2", APPNAME "MSI Wrapper (25.0.54.0)", BZ.* properties, EXEMSI.COM company string). It is a multi-stage chained installer whose real content is concealed behind CAB → NSIS → Python-bytecode layers, ending in an in-memory-compiled C# implant that beacons to Cloudflare Workers URLs.

Container handling

Root MSI (58) executed-bearing members analysed with analyse_virtual_file:

  • /Binary.bz.CustomActionDll → MsiCustomActions.dll (PE x86, PDB ...\MsiWrapper\MsiCustomActions\Release\MsiCustomActions.pdb) — wrapper custom-action DLL that drives bz.EarlyInstallMain/bz.LateInstall* actions. No further packing.
  • /Binary.bz.WrappedSetupProgram → CAB (19,427,917 bytes, entropy 226), containing two members:
    • RVtools-4.7.0.2.exe (PE x86) — NSIS installer stub with forged version info ("Obsidian Vector Labs / EchoPulse / NexusCore Runtime / Adaptive Task Orchestrator").
    • start.exe (6,144-byte .NET PE, spoofed "Host Process for Windows Services" metadata) — no packing found.

NSIS payload: overlay at #a400 in , carved at #a47a → (NSIS, "NullsoftInst", 0xDEADBEEF header, LZMA-compressed PackedData, entropy 226). Malcat expanded ~150 members, among them the analysed, execution-bearing / referenced ones:

  • rvtools4.7.1.msi (Dell/Entrust-signed decoy MSI, executed by the script via msiexec)
  • UsbService86.exe (Python Software Foundation signed pythonw.exe, renamed)
  • Unicode.Data.Automation.dll (Microsoft System.Management.Automation.dll, PowerShell engine, loaded from Python)
  • ClrLoader.dll (.NET mixed-mode clr_loader 0.2.9), clr.py, python312.zip, python312._pth, Cert.txt (contents: 16344757446464758540), METADATA, entry_points.txt, and the NSIS script (#Setup), decompiled to .
  • Concealed payloads: LICENSE.txt and LICENSE1.txt — both are Python 3.12 .pyc modules (magic CB0D0D0A) disguised as license text; the NSIS script drops them into SystemWEB\SystemInfo / AppUpdate\SystemInfo, adds the Run value UpdateWINPY = ...\AppUpdate\SystemInfo\LICENSE.txt and executes LICENSE1.txt through nsExec (plus sc config msdtc start= demand / obj= LocalSystem and OracleOciLibPath=C:\ProgramData\SysIco — DLL-search-path hijack setup).

Genuine unpacking (not mere extraction): the two PYC stages were decoded with precise Malcat transforms, and the final implant was decrypted as described below. unpack_custom families did not apply to any identified object; no UPX/#UPX.Unpacked case arose.

Packing evidence

  • Root MSI: high-entropy streams (Binary.bz.WrappedSetupProgram entropy 225/226) — compressed transport, not encryption.
  • : uniform high section entropy (156), NSIS overlay entropy 226, anomalies XorInLoop (4×), StackArrayInitialisationX86, ManyUniqueImmediateBytes, NoChecksum, UnbalancedVirtualPhysicalRatio — NSIS LZMA packing plus padding; disassembly of EntryPoint at 0x40369f showed an ordinary NSIS stub (GetVersionExW/UXTHEME/lstrlenA), so the concealment is in the payload, not a modified stub.
  • /: 100 junk functions (func_0…func_99, randomized names, identical print-scaffolding) used as padding; module code imports base64+zlib, stores a 73,600/75,040-character HEXA string (score 198), then executes exec(zlib.decompress(base64.b64decode(bytes(<xor>) [::-1])).decode('utf-8')).
  • PS layer inside the decoded Python: split-string obfuscation ($var4_part0..part8), Add-Type -TypeDefinition with SecureString/BSTR marshalling, and a 2|<base64>|<hex> envelope hiding a further AES-256 payload.
  • Checked and found not further packed: , , , , , , (plain ZIP of stdlib .pyc).

Encryption/packing methods and keys found

Layer 1 — Python droppers (, ), transform chain: hex decode → xor → reverse → base64 decode → zlib decompress:

  • LICENSE.txt: hex string at #4ae2, XOR key constant ztvmqjxr = 196 (0xC4) → (87,355-byte Python source).
  • LICENSE1.txt: hex string at #402f, XOR key constant evzgtgqe = 80 (0x50) → (88,838-byte Python source).

Layer 2 — both sources build a PowerShell script (Unicode.Data.Automation.dll via pythonnet clr.AddReference):

  • : sleep 60; 32-byte AES key 17 08 6F 12 F0 0B F1 A0 D6 68 66 23 54 9B F3 20 73 70 68 0D 59 49 9A F9 A1 3B 90 D6 16 74 2F BE (hex 17086f12f00bf1a0d6686623549bf3207370680d59499af9a13b90d616742fbe); blob at #1b0 = 32-char hex IV 76492d1116743f0423413b16050a5345 + base64(UTF-16LE); reconstructed C2 https://08f0.proxy-edge-c5f.workers.dev/, token sgHDLwbfskesAXRtOPSWUhYp, timeouts 75000/10000.
  • : sleep 15; 32-byte key 66,0,58,137,46,70,158,0,245,50,191,118,250,47,188,105,109,232,147,26,220,54,92,37,60,155,244,91,98,194,204,68; same hex IV prefix at #1aa; C2 https://mud.alert-router-b3a.workers.dev/, token kgZgwUMuMaoonJhCKrdLzujD, timeout 35000.

Layer 3 — envelope (from ): cut 32 + base64 decode → (64,246-byte UTF-16 text) = 2|1rKs9WdfgDCvNqWs3U6dJw==|<hex>; hex-decode of field 3 (offset #36) → (16,048 bytes); then cut 16 + AES-256-CBC, key 17086f12f00bf1a0d6686623549bf3207370680d59499af9a13b90d616742fbe, IV 19cb0e790feb58066d6be3865f3e81f4 (first 16 bytes of field 3), PKCS7-unpadded → (16,024-byte UTF-16): the final C# implant source — namespace frdQ, public class XKBpYVk with ShowWindow/GetConsoleWindow imports, console hiding, JavaScriptSerializer, runspace/PowerShell pipeline creation, certificate-validation callbacks, a StringBuilder "userinput" report loop, and Main() → MGyHTjqIx("https://08f0.proxy-edge-c5f.workers.dev/", "sgHDLwbfskesAXRtOPSWUhYp", "10000").

Unresolved limitations: the inner 2|…|hex envelope of the second chain () was not run through the same Layer-3 decryption before the token limit — the second C# implant body is therefore not recovered (its C2/token/timeout are already known from the PS script). Intermediate buffers (raw base64 decode), (hex-decode artifact), , , (16-byte D6B2ACF5675F8030AF36A5ACDD4E9D27) are supporting material, and (wrong-key XOR attempt) is not a valid payload. No deep behavioural analysis was performed.