#arm64 #disassembler #api-bindings #armv8 #binja

no-std bad64

Rust bindings for Binja's arm64 disassembler

20 unstable releases (8 breaking)

0.9.0 Nov 30, 2023
0.7.0 Nov 14, 2023
0.6.0 Dec 22, 2021
0.5.0 Nov 1, 2021
0.2.0 Mar 31, 2021

#705 in Encoding

Download history 22/week @ 2024-06-07 35/week @ 2024-06-14 62/week @ 2024-06-21 12/week @ 2024-06-28 15/week @ 2024-07-05 26/week @ 2024-07-12 19/week @ 2024-07-19 40/week @ 2024-07-26 53/week @ 2024-08-02 39/week @ 2024-08-09 27/week @ 2024-08-16 13/week @ 2024-08-23 15/week @ 2024-08-30 9/week @ 2024-09-06 10/week @ 2024-09-13 18/week @ 2024-09-20

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

Apache-2.0

530KB
3K SLoC

Contains (ELF exe/lib, 40KB) res/id

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: None,
}
add x0, x1, #0x41

Dependencies

~5–8.5MB
~178K SLoC