cs.CRJun 18, 2026

Multi-View Decompilation for LLM-Based Malware Classification

Authors: Bercan TurkmenVyas Raina

Organizations: Independent Researcher · SPARK

Abstract

Malware analysts often inspect compiled binaries through decompiled pseudo-C, when source code is unavailable. Recent work suggests that large language models (LLMs) can assist this process by classifying decompiled code as benign or malicious, but existing pipelines typically rely on a single decompiler view. We argue that this assumption is fragile: decompilers are lossy heuristic tools, and different decompilers can expose different artefacts of the same binary. We curate a benchmark of benign utilities and malicious programs spanning a range of threat behaviors. Each sample is compiled and decompiled with both Ghidra and RetDec, yielding matched pseudo-C views. Across a range of LLMs from major model families, we find that providing both decompiler views improves malicious-class F1, mainly by increasing recall on malicious samples. Agreement analyses further show that Ghidra and RetDec make partially different errors, supporting the view that decompiler outputs provide complementary evidence. Our results suggest that multi-decompiler prompting is a simple, training-free way to improve LLM-based malware triage in practical settings.

Explore similar work

CardsList
  1. Large Byte Model: Teaching Language Models About Compiled Code

    Jun 1, 2026Florian Störtz, Catalin-Andrei Stan, Alexandru Dinu +4Malware DetectionTokenization

  2. LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attribution

    May 7, 2026Christopher G. Pedraza Pohlenz, Hassan Jalil Hadi, Ali Hassan +1Malware DetectionProgram Analysis