by HALtheWise · 2y ago · 0 comments
There are tools like Remill (https://www.trailofbits.com/opensource/#binary) that disassemble to LLVM IR that can be fed back to the compiler to produce a new binary. You can actually target a different architecture, so it works for binary translation too.
jmp rax
...some binary data...
Where the value of "rax" depends on some input, so the disassembler can never be sure that "some binary data" is actually "data" or "code".