Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
942 stars 213 forks source link

Can not parse macos system binary files. #6100

Closed M3noetius closed 2 weeks ago

M3noetius commented 2 weeks ago

Version and Platform (required):

Bug Description: __text section of Mach-O file is not getting parsed/decompiled

Steps To Reproduce:

  1. Copy /usr/libexec/watchdogd
  2. Open the file with binja
  3. Change the platform to macos-AARCH64
  4. Go to the __text section or click on any function from the symbol view

Expected Behavior: The disassembly should be shown.

Additional Information: The same thing happens with system at least (I have not tried any other) binaries on iOS. watchdogd.zip

negasora commented 2 weeks ago

This is working fine for me with both 4.2.6337-dev and 4.2.6390-dev - do you have initial analysis hold set maybe?

M3noetius commented 2 weeks ago

I checked it again. During the initial analysis. When the "Open with options" window opens , at the top, the binary is recognized as a universal binary. From there you have to choose the arme version and not leave it on the default x86_x64.