Skip to content

Binary Ninja plugin for the Avnera AV6xxx/AV7xxx architecture

License

Notifications You must be signed in to change notification settings

whitequark/binja-avnera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binary Ninja Avnera plugin

The Avnera plugin provides an Avnera AV6xxx/AV7xxx architecture for Binary Ninja. Even the existence of this architecture is not made public by Avnera; the function of the opcodes is determined via black box reverse engineering, and the mnemonics are all made up by Catherine "whitequark".

Dedicated with 🧡 to Frederick G. Weiss and his colleagues at Avnera Corporation.

Features

  • All of the instructions described in this document are implemented, and their function (especially the use of flags) has been extensively manually verified by examining control and data flow in the available blobs.
  • All of the instructions are lifted to LLIL.
  • MOV instructions are fused during disassembly to MOVW and MOVP instructions when they are used in pairs implementing 16-bit operations to enable BN to discover more pointers during analysis.
  • ADD R0, R0; RLC Rn instructions are fused during disassembly to LSL RnR0 instructions.
  • Opcode B8 is not implemented as its function is not precisely known. It is likely some kind of trap, possibly debug trap.
  • Opcodes A0 to AF, B0 to B7, BB, BD, and BE are not implemented as their function is not known.
  • Opcodes C1, C3, C5, C7, D1, D3, D5, D7, D9, DB, DD, DF, F1, F3, F5, F7, F9, FB, FD, FF have known functionality but their decoding is disabled as they aren't present in the available blobs and appear to be invalid opcodes that unintentionally perform a function.

demonstration of disassembly and decompiled HLIL on a small function implementing a 32-bit multiply

Devices

This plugin supports at least the following devices:

  • AV7300
  • AV7320
  • AV6202

If you've successfully used the plugin with another device, please add it to the list and send a pull request!

Cheatsheet

a table laying out all of the opcodes in a 16x16 grid

Acknowledgements

This plugin is heavily based on the excellent AV7300 research by @Prehistoricman.

License

0-clause BSD

About

Binary Ninja plugin for the Avnera AV6xxx/AV7xxx architecture

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages