1

I’ve found many mips 32 bit decompilers. I’m trying to decompile a simple 64bit elf from mips to c. Ida doesn’t seem to have much of a problem with disassembly. After some fixings I tried the decompiler and found ida only supports 32 bits. Then I went down the google rabbit hole.

Does anyone know of a 64bit mips decompiler?

4

https://ghidra-sre.org/

Ghidra supports a lot of processors including mips64

2
  • Does it do decompilation as well most support 64bit disassembly but not decompilation. Apr 21 at 13:52
  • @PeterRobertson Ghidra is setup such that any processor supported will have disassembly, decompilation, and other analysis tools/scripts included (this goes for their release at least, out of tree processors may have only added support for disassembly)
    – mumbel
    Apr 21 at 23:09
3

Mumbel is correct, Ghidra supports decompilation of MIPS64 binaries; see "What Processors are Currently Supported" in their FAQ.

Here is a screenshot of decompilation of the main() function of readelf compiled to target MIPS64 architecture:

mips64-readelf main decompilation in Ghidra

2

https://github.com/uxmal/reko

Reko is a binary decompiler that supports a lot of processors, including Mips64. Feel free to reach out to us for assistance on https://gitter.im/uxmal/reko.

1

Ghidra was the way to go, no other reverse engineering software had 64 bit MIPS. Reko came close and when I mailed that team they said they would implement it in the coming days. IDA only disassembles partly and cant decompile. Ret from Avast 32 bit only as well. Once JDK 11 was installed disassembled and decompiled the .o elf easily. There is some problem with the dwarf analyzer not working or doing the symlinks, so ill have to find a fix for that. I don't love Ghidra but I think I'm starting too.

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.