I have a C array that contains binary x86_64 machine code, which I need to convert to assembly code on a Linux machine. I have no problem in converting the C array to a binary executable, but can’t find the utility to convert it to asm code.
Any ideas?
Thanks!
You are probably looking for a disassembler. A disassembler takes machine code (either from an executable, or from an object file) and turns it back into human-readable assembly language. If that’s what you need, have a look at this list of disassemblers for Linux.
Some disassemblers that aren’t listed there:
IDA Pro: Apparently one of the most powerful disassemblers. Probably overkill for your purposes.
ndisasm (accompanies the nasm assembler)