Sandsprite Papers

Artificial Intelligence

VB6 P-Code / Reversing

Reverse Engineering / Binary Analysis

Visual Basic 6
|
-
VB6 P-Code Opcode Reference: Runtime Handler Analysis and Compiler Verification - Sandsprite 2026
This reference documents the Visual Basic 6 P-code instruction set, including opcode formats, operands, runtime handler behavior, and instruction semantics. It builds upon decades of accumulated VB6 reverse-engineering research, extending the existing opcode tables through automated analysis of MSVBVM60.DLL and systematic compiler-generated testing.
The research combines IDA-based runtime handler analysis with approximately 3,070 targeted VB6 test programs to correlate source-level constructs with their compiled P-code representations. AI-assisted analysis was used to reconstruct instruction behavior, identify undocumented operations, and cross-reference findings against the runtime implementation.
The resulting searchable reference covers 1,165 opcode dispatch slots and 775 distinct handlers, providing a technical foundation for VB6 P-code disassembly, decompiler development, and further reverse-engineering research.
An open source interactive viewer app is also available.
|