Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MIPS Decompiler [closed]

I'm looking for a decompiler capable of transforming MIPS machine code into C code. Any suggestions?

like image 800
wanderingbear Avatar asked Jun 10 '09 17:06

wanderingbear


People also ask

What is MIPS decompiler?

Our MIPS processor and microcontroller machine code decompiler allows reverse engineers and security auditors to analyze malicious MIPS programs and audit complex embedded systems.

Is decompiling code possible?

It is impossible use decompilation for original source code reproduction because original code identifiers, such as variable and function names, are rarely stored in computer code. However, code containing metadata or debugging information may include identifiers.

Why is decompiler needed?

A decompiler can be useful in some cases for the following purposes: Recovery of lost source code to archive or maintain the code. Debugging programs. Antivirus capability to find vulnerabilities in the program.


3 Answers

Assuming you have a MIPS object file or executable file, you can use objdump from the free Code Sourcery Gnu toolchain.

mips-linux-gnu-objdump -d foo.o > foo.S

like image 163
markgz Avatar answered Oct 20 '22 22:10

markgz


You might find this to be useful.

like image 44
Paul Sonier Avatar answered Oct 20 '22 21:10

Paul Sonier


There is JEB, which now supports decompilation of MIPS 32-bit code. The output (pseudo-C) is interactive and can be refactored/modified. There is a free demo.

like image 29
j04n Avatar answered Oct 20 '22 22:10

j04n