0

I am trying to use HexRay's decompiler API, however having trouble due to its lack of documentation. Is there any means so That I can get to see the Python implementation of decompiler API?

  • The actual source files should be contained in your IDA's python distribution (idaapi.py, idc.py, ..).. I fear there is no decent documentation – Nordwald Jan 20 '17 at 19:14
  • Those are stubs generated by SWIG – Holmes.Sherlock Jan 20 '17 at 19:38
  • yes, but they are still the "Python implementation of decompiler API". – Igor Skochinsky Jan 23 '17 at 8:43
  • I guess that the actual logic is wrapped inside corresponding .so libraries – Holmes.Sherlock Jan 23 '17 at 8:44
1

As far as I remember IDA license allows reverse engineering of IDA itself. If suggestion that same rule is applicable to the decompiler is correct - the most approachable way to see the implementation is to reverse engineer the plugin - despite the fact that at least part of it should be significantly obfuscated.

There is, however, additional source of the information you can use, the documentation about C++ decompiler SDK is opened and can be found here.

It includes the source of hexrays.hpp file (here) with decent amount of comments that may be helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.