D-ARM: Disassembling ARM Binaries by Lightweight Superset Instruction Interpretation and Graph Modeling
Authors:
- 1 May 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 2391-2408
Abstract
ARM binary analysis has a wide range of applications in ARM system security. A fundamental challenge is ARM disassembly. ARM, particularly AArch32, has a number of unique features making disassembly distinct from x86 disassembly, such as the mixing of ARM and Thumb instruction modes, implicit mode switching within an application, and more prevalent use of inlined data. Existing techniques cannot achieve high accuracy when binaries become complex and have undergone obfuscation. We propose a novel ARM binary disassembly technique that is particularly designed to address challenges in legacy code for 32-bit ARM binaries. It features a lightweight superset instruction interpretation method to derive rich semantic information and a graph-theory based method that aggregates such information to produce final results. Our comparative evaluation with a number of state-of-the-art disassemblers, including Ghidra, IDA, P-Disasm, XDA, D-Disasm, and Spedi, on thousands of binaries generated from SPEC2000 and SPEC2006 with various settings, and real-world applications collected online show that our technique D-ARM substantially outperforms the baselines.Keywords
This publication has 29 references indexed in Scilit:
- Rewrite to Reinforce: Rewriting the Binary to Apply Countermeasures against Fault Injection2021
- SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask2021
- Probabilistic Disassembly2019
- SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis2016
- UROBOROS: Instrumenting Stripped Binaries with Static Reassembling2016
- Using Datalog for Fast and Easy Program Analysis2011
- BAP: A Binary Analysis Platform2011
- Approximation Algorithms for the Weighted Independent Set ProblemLecture Notes in Computer Science, 2005
- A note on greedy algorithms for the maximum weighted independent set problemDiscrete Applied Mathematics, 2003
- SPEC CPU2000: measuring CPU performance in the New MillenniumComputer, 2000