binaryninja-api
binaryninja-api copied to clipboard
Add support for `GENTER` and `GEXIT` in AArch64 on Apple platforms
The GXF feature on newer Apple SoCs uses two custom instructions, GENTER and GEXIT. These appear in the iOS kernelcache and SPTM on newer devices.
Their opcodes are:
20 14 20 00: GENTER00 14 20 00: GEXIT
These instructions are not supported by Binary Ninja, and are disassembled as undefined instructions. This is problematic on its own, but also acts as a barrier to disassembling the rest of a function, making it's impact more annoying than just being an undefined instruction.