On 1/19/22, k <gmkarl@gmail.com> wrote:
decompiled function as of today: \00 def example_sum(left, right, sum): it doesn't look like much, but it's progress
There will be a party if your new ghidra prints printf("Hello world.\n"); https://github.com/NationalSecurityAgency/ghidra
might take me a bit to figure out what a really helpful next step is here, but hopefully i'll figure out how to get more parts in of some kind or another, somewhere.
Maybe feed in lots of tiny source code example unit tests that have only one possible reverse, then two possible reverses using the one's as discriminator, then three using two's, etc. Probably no one has yet written a complete testbook for all the functions of any given language, that could then be compiled and dumped in. But it might be possible to automate the creation of one by grokking all the function definitions from the source of whatever language. The closer to machine instruction language the greater chance of correct reversal. So perhaps step work from the machine base backward in intermediate stages from the hardware level up the tree of each abstraction layers to the specific human language. Instead of trying straight from say some highlevel python lang directly to lowlevel x86 lang. And slam entire linux kernels and windows apps through it for noisy fun.