arXiv:2610.36288cs.CROct 2026

Manuscript Offprint

arXiv:2610.36288

BUSTA: Teaching Small Language Models to Reason About Binary Execution

Ritika Poddar, Aidan Fennelly, Deirdre Murphy, Eric Wolos, Corre L. Steele, Michael Doyle

Abstract

Large Language Models (LLM) are increasingly applied to Reverse Engineering (RE) workflows. RE, however, differs from common LLM coding tasks as it requires models to reason about low-level program behavior. Furthermore, the deployment of tooling in resource-constrained sandboxed RE environments limits the ability to use frontier-scale solutions. We examine whether a targeted LLM training approach can transfer distinct RE skills to open models via inverse basic-block execution: given an x86-64 basic block and a desired output register state, the model predicts the input register values that produce it. Fine-tuning Qwen3-1.7B and Nemotron-3-Nano with Group Relative Policy Optimization (GRPO) raises knowable-register prediction accuracy from 73.2% to 85.3% and from 63.3% to 95.2%, respectively. Frontier models still score highest (up to 99.2%), but our fine-tuned Nemotron-3-Nano comes within four points at a fraction of the parameter count. We release both fine-tuned models and the training dataset.

1 Introduction

Reverse engineering (RE) is integral to vulnerability research and malware analysis [Manuel et al., 2024, Hu et al., 2025, Lea et al., 2025], and while momentum for LLM-based RE research is growing, zero- and few-shot prompting approaches are far more represented than fine-tuning [Hu et al., 2025]. RE tasks are not always readily generalizable from other common software tasks. RE has its own syntax; useful models must read assembly, registers, and traces, as well as reason over low-level program state [Lea et al., 2025]. We therefore study whether targeted training can teach models useful RE skills that general prompting does not.

We present a novel application determining what program inputs or initial machine state lead to a desired execution state, a task that arises frequently in vulnerability research. Symbolic execution engines such as angr can sometimes solve this problem by exploring execution paths and solving the resulting constraints [Shoshitaishvili et al., 2016, Stephens et al., 2016, Shoshitaishvili et al., 2015], but are often limited by path explosion and expensive constraint solving [Cadar and Sen, 2013, Baldoni et al., 2018]. Recent work pairs LLMs with symbolic and concolic execution to guide search, construct harnesses, or assist constraint solving [Shafiuzzaman et al., 2026, Li et al., 2025, Tu et al., 2026, Nong and Cai, 2026, Eslamimehr, 2026, Ma et al., 2026, Chen et al., 2026], but these approaches primarily operate over source code or source-level intermediate representations. We instead investigate whether LLMs can reason directly over disassembled binary code when source is not available. As a first step, we study a simplified basic-block problem: given a basic block and desired output register values, can an LLM predict input register values that produce them?

Preprint.

Our secondary focus is whether a small fine-tuned model can rival out-of-the-box frontier models. Reverse-engineering workflows frequently analyze sensitive or malicious binaries in isolated environments where third-party frontier APIs cannot be used; open-weight models can instead run locally [Lea et al., 2025], and among these, smaller models fit tighter compute budgets [Samsi et al., 2023].

We fine-tune two models with our approach, BUSTA (Binary Understanding Task Assistant): BUSTA-BB-Qwen3-1.7B and BUSTA-BB-Nemotron-3-Nano, using Group Relative Policy Optimization (GRPO) [Shao et al., 2024] on inverse basic-block runtime prediction, and demonstrate significant gains in knowable-register accuracy over the base models, with Qwen3-1.7B increasing from 73.2% to 85.3% and Nemotron-3-Nano from 63.3% to 95.2%. 1^{1} We comprehensively benchmark across open and frontier models on a diverse dataset, with significant effort toward equitable and reliable comparison across differing model generation styles.