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?

4
  • 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
    Commented Jan 20, 2017 at 19:14
  • Those are stubs generated by SWIG
    – sherlock
    Commented Jan 20, 2017 at 19:38
  • yes, but they are still the "Python implementation of decompiler API".
    – Igor Skochinsky
    Commented Jan 23, 2017 at 8:43
  • I guess that the actual logic is wrapped inside corresponding .so libraries
    – sherlock
    Commented Jan 23, 2017 at 8:44

1 Answer 1

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 and acknowledge you have read our privacy policy.

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