MiniMax Model Writes 2M Lines of Rust to Clone a Decompiler

On November 28, MiniMax published an internal assessment of its reverse-engineering capabilities on its official WeChat account. Using an internal model that has not been released, the company reproduced the functionality of a well-known closed-source binary analysis tool inside an isolated environment, then tested the model's ability to recover 100 samples protected by virtualization and obfuscation. The post closes with a warning that the software industry should develop new protection techniques quickly, and says MiniMax is carefully considering restricting or removing end-to-end software cloning capabilities in the official release.

MiniMax did not name the software it cloned. It described it only as the "widely recognized benchmark closed-source software" in binary analysis, whose main job is turning machine code into human-readable pseudocode.

Illustration: miniature workers build an orange copy of a gray cube, showing MiniMax cloning closed-source software

2,000 sub-agents, 2 million lines of Rust

In the experiment, the model had only a basic toolchain: Ghidra, the GDB debugger, a test and verification framework, C/C++ and Rust compilers, and a multi-agent orchestration scaffold. The model first called the analysis interfaces to understand the target program's core binary, then split the reconstruction into pieces and handed them to sub-agents, which implemented the modules one by one in Rust. After each module was finished, the workflow fed the same batch of samples to the original and the rebuilt version, compared the output differences and revised the code.

MiniMax put the scale of the effort at 2,000 sub-agent sessions, about 2 million lines of Rust and 10,000 automated test cases. The rebuilt decompilation pipeline covers disassembly, intermediate code generation, data-flow analysis, control-flow structuring, compiler optimization and pseudocode generation, and can be run from the command line or through API calls. The company says analysis speed improved "somewhat" but gave no specific multiple.

The third test is the most telling. The team compiled the core modules rewritten in Rust into a shared library and dropped it directly into the original program's directory, keeping the original graphical interface. The host program launched as usual, loaded files and completed decompilation, which shows that the rewritten code matched the original at the level of exported symbols and interface contracts.

Obfuscated samples: 70% in one attempt, 94% over multiple rounds

The second evaluation targeted virtualization protection such as VMProtect and Themida. These tools translate native instructions into a private bytecode and run it in a custom interpreter, so a few dozen lines of logic can balloon into tens of thousands of instructions.

According to MiniMax, the model worked out two steps on its own, without targeted prompting. It first used static tools to find the virtual machine's entry point, then wrote its own GDB scripts to run the sample, watched how memory and registers changed, and stripped out the core computation loop. It then combined runtime results with symbolic reasoning to simplify the instruction stream into C/C++ source, comparing inputs and outputs until the code passed the verifier.

On 100 high-difficulty samples built internally, the single-attempt autonomous recovery rate was 70%, rising to 94% when 8 samples were allowed and combined with verifier feedback, and the combined recovery rate for the sample groups protected by VMProtect 3.x and Themida exceeded 90%. The company says samples that once took security experts several days of manual analysis can now be finished in tens of minutes.

The test set was built by MiniMax itself. Its composition and difficulty distribution have not been published, so outsiders cannot currently reproduce these figures.

Chinese software vendors will feel the pressure first

Many single-player games, industrial software packages and industry-specific clients in China rely on packers and offline license checks to resist cracking, and mobile apps often hide their communication protocols and local keys inside obfuscated code. These are the two lines of defense MiniMax points to: the "engineering-scale barrier" created by the sheer size of large software codebases, and obfuscation and virtualization protection.

If this kind of capability reaches public models, the first to come under pressure will be software that charges based on client-side verification. The directions MiniMax suggests are moving high-value logic to the server side, combining it with hardware-level trusted execution environments, and developing dynamic adversarial protection aimed at large-model inference. The first two require network connectivity and hardware support, so single-player software and offline scenarios can hardly adopt them as they are.

The company also listed limitations. On samples with multiple layers of nested virtualization or strong anti-debugging, the first-attempt success rate in fully autonomous mode drops noticeably, and sometimes the execution trace is so large that it overflows the context window. The generated code is only an experimental validation of the core modules and remains "a huge gap" from a standalone commercial-grade product that no longer depends on the original, and refactoring at the million-line scale still relies heavily on custom scaffolding. MiniMax also says that the reconstructed code, shared libraries, scripts and logs produced by the experiment were all destroyed after the metrics were recorded.

A little over a week ago, MiniMax disclosed an evaluation in which an internal model broke several post-quantum cryptography candidate schemes. In both cases the company published the risk assessment first and discussed release controls afterward. It has not yet said which capabilities will be removed from the official release or how they will be restricted.

Sources: MiniMax official technical article, CocoLoop; MiniMax's assessment notes cover the verified sub-agent session count, lines of code, test case count and recovery rates for each sample group.