Overview
Dr.Semu provides a command-line interface throughLauncherCLI.exe for analyzing malware samples. The tool accepts either individual executable files or directories containing multiple executables.
Basic Syntax
User-Facing Options
These are the primary options you’ll use when running Dr.Semu.Path to a Windows executable (.exe) file or directory containing executables.
- If a file is provided: Analyzes that single executable
- If a directory is provided: Analyzes all .exe files in the directory
-tExample:Command-line arguments to pass to the target executable.Aliases:
-cDefault: Empty (no arguments)Example:Time limit for monitoring the target process, in seconds. The process will be terminated after this duration.Aliases:
-lDefault: 120 (2 minutes)Example:Internal Options
These options are used internally by Dr.Semu’s architecture and are passed to the DynamoRIO client. You should not use these manually.VM instance index number for multi-sample analysis.
Process ID of the fake explorer.exe process.
Location of Dr.Semu binaries directory.
Virtual machine temporary directory path.
Report directory name for JSON output.
Main mailslot name for inter-process communication.
Time limit passed to the DynamoRIO client.
Examples
Analyze a Single File
Analyze with Custom Arguments
Analyze with Extended Time Limit
Batch Analyze a Directory
C:\samples\ directory, running each in its own VM instance.
Exit Codes
| Code | Description |
|---|---|
0 | Analysis completed successfully |
-1 | Invalid arguments or file not found |
Notes
Dr.Semu only accepts Windows PE executables with
.exe extension. Other file types will be rejected with an “Invalid file extension” error.Architecture Detection
Dr.Semu automatically detects the target architecture (x86 or x64) and loads the appropriate DynamoRIO client:- 32-bit executables: Uses
drsemu_x86.dllwithdynamorio/bin32/drrun.exe - 64-bit executables: Uses
drsemu_x64.dllwithdynamorio/bin64/drrun.exe
Next Steps
Analyzing Samples
Learn how to analyze malware samples step-by-step
Understanding Reports
Interpret the JSON analysis reports