#disassembler #armv8 #arm64 #aarch64 #binja

no-std bad64

Rust bindings for Binja's arm64 disassembler

17 releases (5 breaking)

Uses new Rust 2021

0.6.0 Dec 22, 2021
0.5.0 Nov 1, 2021
0.4.0 Aug 26, 2021
0.3.0 Jul 22, 2021
0.1.2 Jan 30, 2021

#373 in Encoding

Download history 63/week @ 2022-08-09 27/week @ 2022-08-16 49/week @ 2022-08-23 29/week @ 2022-08-30 119/week @ 2022-09-06 35/week @ 2022-09-13 34/week @ 2022-09-20 53/week @ 2022-09-27 75/week @ 2022-10-04 32/week @ 2022-10-11 29/week @ 2022-10-18 68/week @ 2022-10-25 76/week @ 2022-11-01 56/week @ 2022-11-08 54/week @ 2022-11-15 25/week @ 2022-11-22

220 downloads per month
Used in 5 crates (2 directly)

Apache-2.0

525KB
3K SLoC

Binja Arm64 Disassembler

Build Status Latest Version Latest Docs

These are bindings to the Binary Ninja arm64 architecture/disassembler plugin.

Note that while Binary Ninja is an (excellent) commercial product, the disassembler is entirely Apache 2 licensed and may be used without a license. To install, just add bad64 as a normal dependency in Cargo.toml.

For more information on how this disassembler was created, see this blogpost by Andrew Lamoureux.

For docs and usage, please see docs.rs and the examples.

$ cargo run --example decode 0x91010420
Instruction {
    address: 0x1000,
    opcode: 0x91010420,
    op: ADD,
    num_operands: 0x3,
    operands: [
        Reg {
            reg: X0,
            arrspec: None,
        },
        Reg {
            reg: X1,
            arrspec: None,
        },
        Imm64 {
            imm: Unsigned(
                0x41,
            ),
            shift: None,
        },
    ],
    flags_set: false,
}
add x0, x1, #0x41

Dependencies

~5.5–7.5MB
~170K SLoC