ट्रेस-सहायित VMProtect डीवर्चुअलाइज़ेशन अनुसंधान प्लेटफ़ॉर्म: संस्करण फ्रंट-एंड एक साझा Remill/LLVM बैकएंड को फ़ीड करते हैं ताकि हैंडलर को लिफ्ट किया जा सके, डेटाफ़्लो रिकवर किया जा सके, और नेटिव ऑब्जेक्ट्स उत्पन्न किए जा सकें।
ट्रेस-सहायित VMProtect डीवर्चुअलाइज़ेशन अनुसंधान: संस्करण फ्रंट-एंड (1.x गेट / 2.x टेबल / 3.x FDJ) एक साझा बैकएंड को फीड करते हैं (Remill लिफ्ट → LLVM ऑप्ट → सेमांटिक कार्ड्स → डेटाफ़्लो → नेटिव ऑब्जेक्ट्स)।
कई सुरक्षा मोड्स में स्व-निर्मित VMP 3.9.4 बाइनरीज़ के विरुद्ध मान्य किया गया। VMP 3.8.x/3.10.x संगतता प्रयोगात्मक और नमूना-निर्भर है।
यह VMProtect-संरक्षित बाइनरीज़ का विश्लेषण करने के लिए एक अनुसंधान प्लेटफ़ॉर्म है जिनका आप स्वामी हैं या जिन्हें रिवर्स इंजीनियर करने का लाइसेंस आपके पास है — यह कोई सार्वभौमिक, पुश-बटन डीवर्चुअलाइज़र नहीं है:
src/
lib.rs crate root, data_dir()
pe_loader.rs PE parsing / VA reads
opcode_map.rs legacy handler-type labels (oracle only, see module docs)
frontend/
mod.rs VmFrontend trait (detect/fetch_stream/handler_addrs)
fetch_finder.rs movzx-byte FDJ scan + watchset/snapshot helpers
cryptor_miner.rs per-site ValueCryptor mining (branch-following)
site_emulator.rs sample-specific oracle decoders (legacy)
handler_classifier.rs handler classification via legacy patterns
classifier_legacy.rs first-bytes patterns (weak; fallback only)
v1_gate.rs VMP 1.x gate-scan front-end
v2_walker.rs VMP 2.x dispatch-table front-end
v3_fdj.rs VMP 3.x FDJ front-end
backend/
value_cryptor.rs ADD/SUB/XOR/ROL/ROR/NOT/NEG/... chains
lifter.rs iced-x86 text lift + Remill subprocess backend
llvm_pipeline.rs opt -O3 over Remill IR (real passes)
harness/
snapshot.rs Unicorn snapshots: sections+scratch mapping,
IN hooks, import stubs, watch hits, memlog,
zero-slide fast-forward
tests/
smoke.rs synthetic PE64 + hand-built fetch chain (no fixtures)
tools/ (analysis drivers; each documents its inputs)
scripts/ Triton/angr/Ghidra helpers (external deps)
# Debian/Ubuntu (LLVM 22 for optional llvm feature)
sudo apt install llvm-22-dev libclang-22-dev clang-22
cargo build --release # pure Rust (no LLVM link)
cargo build --release --features llvm # llvm-sys link check
pip install triton-library capstone pefile # python helpers
# Remill (optional lifter backend): build upstream, export REMILL_LIFT=<path>/remill-lift
# Souper (optional MBA superoptimizer): external only, wire its `souper` CLI
# to scripts/triton_handlers.py output if desired; not vendored.
Dockerfile पूर्ण env को पुनरुत्पादित करता है। CI cargo build/test --release चलाता है
(डिफ़ॉल्ट फ़ीचर्स, कोई LLVM लिंक नहीं, कोई व्यावसायिक फ़िक्स्चर नहीं; sample-gated
टेस्ट स्किप होते हैं, tests/smoke.rs हमेशा चलता है)। वैकल्पिक --features llvm
लिंक चेक एक non-blocking CI जॉब के रूप में चलता है (LLVM 22 आवश्यक)।
| Var | Default | Meaning |
|---|---|---|
DATA_DIR | ./data | सभी टूल आर्टिफ़ैक्ट्स |
WATCH_FILE | $DATA_DIR/watch.txt | देखने के लिए VAs फ़ेच करें |
CARDS | open_cards3.json | Remill कार्ड कैश फ़ाइल |
BIN_PATH | लक्ष्य बाइनरी पथ (टूल डिफ़ॉल्ट: ./target.exe प्लेसहोल्डर) | लक्ष्य बाइनरी |
IAT_JSON | — | {api_name: iat_va} इम्पोर्ट स्टब मैप |
VMP_TEST_BIN / VMP_ORACLE | tests/fixtures/… | लाइसेंस्ड-सैंपल टेस्ट |
REMILL_LIFT | PATH पर remill-lift-22 | Remill लिफ़्ट बाइनरी |
DEVIRT / FORCE_EDGE / REPO_ROOT | ./target/… / . | स्क्रिप्ट-कॉल्ड बाइनरीज़ + रेपो रूट |
VMP_WORK_DIR | सिस्टम टेम्प | लिफ़्ट स्क्रैच |
EFLAGS / IN_RET / DLL_MAIN | — | स्नैपशॉट स्टेट वेरिएंट |
ret, इम्पोर्ट स्टब्स, IN हुक)।reg किसी निष्पादित बाइट-लोड को फ़ीड करता है, चाहे उसका
मनेमोनिक कुछ भी हो। स्टैटिक movzx पैटर्न केवल फ़ॉलबैक सीड हैं —
केवल-स्टैटिक हिट्स ने हार्डन्ड लक्ष्यों पर 0% निष्पादन मापा।
फ़ेच-शेप कवरेज: movzx ✓, movsx ✓ (SMC रन के बीच में इनके बीच
पलटता है; माइनर दोनों स्वीकार करता है), और-gated/co-byte फ़ेच ✓
लाइव कैप्चर के माध्यम से। मापा गया बायस (3.9.4, devirt fetch
dispatch-anchored back-slices बनाम स्टैटिक स्ट्रिक्ट स्कैन): असंयुक्त
पॉपुलेशन — सेंसर ने 8 फ़ेच-शेप्ड बाइट साइट्स पाईं जिन्हें
पैटर्न+mov-imm32 गेट ने कभी प्रस्तावित नहीं किया (indexed/scaled रूप
जैसे movzx edx,[r9+riz-1]), 1 ने एक सत्यापित चेन माइन की
(Rol→Inc→Xor52→Ror, कुंजी r10l); शेष VM-कॉन्टेक्स्ट
लोड हैं जिन्हें माइनर सही ढंग से अस्वीकार करता है। अन्य शेप (जैसे स्ट्रिंग
ऑप्स): बाइट्स लाएँ, माइनर केस पाएँ — फ़ेच के आसपास के ऑपकोड
बाइट्स के साथ एक इश्यू फ़ाइल करें। पैटर्न-लॉक्ड फ़ेच यहाँ एक प्रलेखित
गैर-विधि है।opt -O3, कार्ड्स/डेटाफ़्लो उत्सर्जित करें,
llc के साथ पुनःसंकलित करें (ld -r कम्पोज़ेबिलिटी सिद्ध करता है)।synth में
एक रैखिक सबसेट के रूप में पोर्ट किए गए (simplify_chain, कोड में
श्रेय सहित)। हमने लिफ़्टर के रूप में Remill+LLVM रखा; कोई IR स्वैप नहीं।devirt brighten के रूप में पोर्ट किया (पूल 3.9 पर फ़ायर नहीं होता — प्रलेखित)।backend/mba.rs के रूप में पोर्ट किए गए (पेपर-व्युत्पन्न, कोई वेंडर्ड कोड नहीं)।MIT (LICENSE देखें) निर्भरता नोट्स के साथ (विशेष रूप से Unicorn GPL-2.0)। केवल शोध/शैक्षिक उपयोग, उन बाइनरीज़ पर जिनका आप स्वामी हैं या जिनका विश्लेषण कर सकते हैं।
AI सहायता से निर्मित (डिज़ाइन, कोड, दस्तावेज़ — मानव-निर्देशित,
मशीन-जाँचित: docs/coverage.md में प्रत्येक संख्या अपने बगल के कमांड से
पुनरुत्पादित होती है)।