Skip to main content
Challenges Nested VM
Reverse engineering Impossible A two-layer virtual machine and simplifying MBA expressions Solves: 4

Nested VM

Author: CyberSamSU
Points
400

The archive has two files: vm.py — a readable Python interpreter, and program.bin — its bytecode. To run: python3 vm.py <16 ta kichik hex belgi>, the answer is OK or NO. Everything is harmless: computation only.

But program.bin is not the check itself: it is the interpreter of a second (inner) virtual machine, and the inner machine has its own stack model and its own opcode table (the table rotates depending on the byte position). The real check is the inner bytecode: 16 hex characters are turned into a 64-bit number, 8 rounds of add-rotate-xor mixing are performed and the result is compared with a constant. The inner machine's handlers are obfuscated with MBA (mixed boolean-arithmetic expressions), for example it computes a+b as (a^b)+2*(a&b).

Flag: BAYROQ{ICHMA_ICH_VM_<16 belgi>} — the 16 characters that give OK.

Attached files
matryoshka-vm.zip Log in to download
Hints 4
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −40 pts Log in
Hint 2 −80 pts Log in
Hint 3 −120 pts Log in
Hint 4 Free Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 24.11.2026
2. Odam 25.11.2026
3. AGENT X 27.11.2026
4. Doston Allayarov 28.11.2026