WinRAR Archives Can Run Bytecode, and One Hacker Built a Toolchain to Program Them

Fun with Constrained Programming

WinRAR Archives Can Run Bytecode, and One Hacker Built a Toolchain to Program Them

RAR files can embed bytecode for the RarVM, a small x86-like virtual machine that runs reversible filters to boost compression. WinRAR lets archives define new filters at runtime, but no tool existed to explore this, so the author built an assembler, linker, and documentation. Because WinRAR checks output against a stored CRC, he ported a CRC compensation algorithm to RarVM so programs can produce dynamic output and patch it at runtime to match.

Needless to say, programming something as ridiculous as WinRAR presents some interesting challenges, but the fact that it's so widely deployed presents some fun possibilities.

More from this day

2026-11-18