A static devirtualizer for VMProtect x64 3.x powered by VTIL.
NoVmp is a project devirtualizing VMProtect x64 3.0 - 3.5 (latest) into optimized VTIL and optionally recompiling back to x64 using the Virtual-machine Translation Intermediate Language library. It is rather experimental and is mostly a PoC I wanted to release. Most things can be improved especially with the new NativeLifters repo, but it did not exist back in the time this was written.
NoVmp accepts unpacked binaries, so if your binary is packed you'll have to dump it first, additionally if you did dump it using a tool like Scylla, you'll have to provide the original image base using the -base parameter like so:
-base 0x14000000
By default NoVmp will parse every single jump into a VM, if you are only interested in a number of specific virtualized routines you can use the -vms parameter like so with relative virtual addresses:
-vms 0x729B81 0x72521
These addresses should be pointing at the VMEnter, as shown below:
By default section discovery is automatic, but in case your calls are not being chained you should try adding the VMProtect section name into the section list using -sections as shown below:
-sections .xxx0 .yyy0
Note that the .<vmp>1 section is the merged VMProtect DLL which should not be inputted.
Additionally you can use any of the following switches:
-noopt: Disables optimization.-opt:constant: Optimizes the VMProtect Ultra constant obfuscation out.-experimental:recompile: Enables the experimental x64 compiler.
- Known issues from VTIL-Core, mainly the lack of jump table support and propagation passes taking too long/not being great which are being worked on.
- Binaries compiled with relocations stripped are not fully supported yet.
- Experimental compiler is a borderline broken demo, issues related to it should not be submitted as it'll be reworked and will be in VTIL-Core.
NoVmp is licensed under the GNU General Public License v3.
AnimeNoVMP is a maintained fork of NoVmp that turns the original proof of concept into a practical batch pipeline with a hardened lifting core. It is hardened and tuned against the aggressive VMProtect configurations found in newer builds of a certain anime game and similar commercial protected software, where the original tool fails or hangs on a large fraction of virtualized routines.
- VMProtect jump-table (virtual switch) resolution. Upstream throws
Whoooops hit switch case...whenever a VJMP target cannot be constant-folded. This fork recovers the relative jump table (target = addend + (int32)table[i]) straight from the image, forks the lift into every in-VM target, and treats dispatch-out-of-VM exits faithfully. To our knowledge no other open-source VMProtect devirtualizer (NoVmp, vmpattack, MogVMP, NoVmpy) implements this. - Safety guards. Branches whose target falls outside any mapped section are skipped instead of crashing the lift; the deobfuscation unroll is bounded.
- Per-VM wall-clock budget (
NOVMP_TIME_LIMIT, default 120 s,0disables). Real-world VMs occasionally spin forever; the budget makes them fail fast so batch runs keep moving. The default covers essentially everything; on our seven-version benchmark the only entries that need more are giant routines whose lifted output exceeds 80k instructions — rerunning those with-t 300converts them (100% → 98.4% family coverage at 120 s, 98.8% at 300 s). - Slice-bounded refinements. Every symbolic refinement the lifter makes
(exit destinations, branch analysis, shape probes, the block-local
optimizer and the constant-pool fix) runs under a wall-clock slice
(
NOVMP_RTRACE_BUDGET, default 10 s,0disables) and degrades to a faithful symbolic fallback when the slice expires; optional refinements latch off for the rest of the routine after diverging repeatedly. A divergent refinement costs a slice, never the whole budget. - Optional verbose tracing behind
NOVMP_VERBOSE=1. - Modern toolchain support. Builds out of the box with current GCC, CMake and Ninja; VTIL-Core and linux-pe are vendored (pinned, with small compiler fixes) so the tree is self-contained.
- vtildump, a small utility that renders
.vtilroutines into readable pseudo-assembly. - Batch tooling (
tools/):vmscan.py— find VMEnter entries and emit the entry list for the engine. The scan mode follows the image layout automatically (cross-branch references for classic/single-shell images, direct stub shape for dual-shell ones) and its output matches the engine's own discovery;--mode rawkeeps the legacy shape-only scan for debugging.run_all.sh— per-entry isolated batch devirtualization with a TSV summary (one crashing entry never kills the batch).compile_all.sh/dump_all.sh— drive VTIL-Utils to emit real x86-64 machine code or readable dumps for every lifted routine.summarize.py— render class histograms for batch output dirs and audit diffs against baseline runs: conversions, regressions, and instruction count changes split into premature-level (lift changed, semantic face) versus optimizer-only (noise face) deltas.
VTIL-Core and linux-pe are git submodules pointing at patched forks
(BUnipendix/VTIL-Core and BUnipendix/linux-pe, branch animenovmp);
clone with --recurse-submodules or let tools/build.sh fetch them. The
forks carry the hardening patches (crash guards, depth caps, sub-budget
plumbing) on top of the pinned upstream revisions; every change is an
ordinary commit on the fork branch, so a set of patches against the upstream
base can be regenerated at any time with
git -C VTIL-Core format-patch <upstream-rev>..animenovmp (same for
linux-pe). To use your own trees instead:
cmake -B build -DNOVMP_VTIL_SOURCE_DIR=/path/to/your/VTIL-Core -DNOVMP_LPE_SOURCE_DIR=/path/to/your/linux-petools/build.sh # cmake + ninja; needs g++ (C++20)
# fully offline: pre-fetch capstone/keystone and point DEPS at them
DEPS=/tmp/deps tools/build.sh
# through a proxy: PROXY=socks5h://127.0.0.1:1080 tools/build.shThis fork is developed and verified on Linux; the batch tooling is a POSIX shell workflow and the pinned linux-pe uses GCC-style attributes that MSVC does not accept. CI builds the engine end to end on Ubuntu (including the CMake 4.x compat patch for the fetched capstone).
For x86-64 code generation build VTIL-Utils separately (vtil compile), see
tools/compile_all.sh.
novmp-run (built next to NoVmp) drives the worker one process per
vmenter entry, so a segfault or a hang kills exactly that entry and never
the batch. Results come from each worker's -report JSONL line; workers that
die by signal are classified as crash:<signal>:
build/supervisor/novmp-run game.exe vms.txt -o out/ -j 4 -t 60 \
-sections .upx0 -base 0x140000000
# out/summary.tsv one line per entry: rva <tab> class
# out/<rva>.jsonl the worker's report line (ok/error + reason)
# out/logs/<rva>.log full worker logThe worker itself also accepts -report <file> directly for one-shot batch
use (-vms accepts many entries per process; a crash there still loses the
remaining entries, hence the supervisor). Errors are classified
(budget, invalid-vip, switch-case, invalid-vjmp, assertion,
vmenter-shape, unroll-bound, left-image, deobfuscate, error);
unknown vmenter generations are dumped to failures/ for offline profiling.
-profile <file.toml> describes how an image is protected — patterns and
shapes, never concrete addresses — so new protector generations adapt via
configuration instead of code changes.
Without -profile the profile is auto-detected from the image's section
layout (a .vmp section selects the classic VMProtect 3.x defaults; a
single .upx0 packer section selects cross-branch discovery; .upx0 +
.upx1 selects the dual-shell layout with stub-target discovery).
Unrecognized layouts fail loudly — pass an explicit profile:
AnimeNoVMP game.exe -profile profiles/anime-classic-dual.tomlprofiles/default.toml mirrors the built-in classic VMProtect 3.x behavior;
profiles/anime-classic-dual.toml adapts the older dual-shell layout (two
packer sections, stubs without cross-section references). See the comments
inside those files.
tools/vmscan.py game.exe --verbose > vms.txt # find VMEnter stubs
tools/run_all.sh game.exe vms.txt out/ # devirtualize the batch
tools/compile_all.sh out/ # .vtil -> x86-64
tools/dump_all.sh out/ # .vtil -> readable dumpSee KNOWN-LIMITATIONS.md. Not every virtualized routine lifts cleanly; failure classes and their meaning are documented there.
- Original NoVmp by Can Bölük — GPL-3.0.
- VTIL and VTIL-Utils by the VTIL project.
- This fork keeps the original license (GPL-3.0).
