Closed ddddavidee closed 2 years ago
Did you confirm this is a capstone installation-related problem ?
Otherwise, this kind of exception on the disassembler can be thrown when capstone fails at disassembling a single instruction. On ARM32 this can happen if capstone tries to disassemble in thumb mode while the code is emulated in ARM mode or vice versa.
Edit: if it is the latter, this should fix it https://github.com/Ledger-Donjon/rainbow/commit/86ce13d5ddb4a787a05a8f10a8bb25ce684d3bcb
I confirm that is a capstone issue, related to the wrong disass mode loaded.
Thanks, this commit solves the issue.
Good to know, thanks.
I've the same issue, same exception in emulating x64 code.
Ouch ! Can you provide an example binary and your python script so I can try to reproduce ? :)
yes, of course. How am I supposed to post a binary here ?
Ah, forgot we couldn't do that. Let's see this on https://gitter.im/Ledger-Donjon/rainbow , you can send me a private message there.
Resolved by https://github.com/Ledger-Donjon/rainbow/commit/c82f7993e3ea23436491e41554fa9574ac400248 if I'm not mistaken
This exception is raised when emulating an ARM32 binary
If I understand correctly the problem is that:
the Capstone bindings are not installed ~(and apparently are not available for version 5.0.0 ??)~