How mochabyte0x/vmkit works
vmkit is a header-only C++20 template for building IR-bytecode loaders. A loader supplies a mutable context and opcode handlers; the VM optionally decrypts bytecode, decodes and dispatches each operation, and lets handlers perform loader-specific work. The example documents a builder-to-loader shellcode round trip. The source excerpt shows the VM internals, while example behavior and its connections are based on the README; no separate storage or external-service layer is present.
Main entry points: vm_loader.hpp VM Dispatcher · example_builder.cpp Example Builder · example_loader.cpp Example Loader · payload.bin Shellcode Payload
Components 10
Other components
- Loader
- Example Builder
example/example_builder.cpp - Shellcode Payload
example/payload.bin - IR Bytecode
- VM Dispatcher
vm_loader.hpp - Opcode Handlers
vm_loader.hpp - Loader Context
- Config Hooks
vm_loader.hpp - API Hash
vm_loader.hpp - Example Loader
example/example_loader.cpp
Connections 8
- Example Builder → Shellcode Payload: reads
README.md - Example Builder → IR Bytecode: emits
README.md - Loader → VM Dispatcher: invokes
README.md - Example Loader → VM Dispatcher: invokes
README.md - VM Dispatcher → IR Bytecode: decodes
vm_loader.hpp - VM Dispatcher → Config Hooks: calls hooks
vm_loader.hpp - VM Dispatcher → Opcode Handlers: dispatches
vm_loader.hpp - Opcode Handlers → Loader Context: updates
README.md