Dabbler in re here, so potentially a stupid question... I know ida, binary ninja, and ghidra are really powerful at generating pseudo code. From everything I've read pseudo code can't be edited in realtime but can be edited as assembly, I was just wondering why you couldn't do a similar process to the one below?
step 1 decompile exe to fake code
step 2 make code template for compiling in c or c++
step 3 load fake code into template
step 4 compile basic template and stop at assembly code generation
step 5 copy assembly from halfway compiled c++ exe
step 6 auto replace halfway compiled code as assembly to ida assembly code
alternatively
step 1 decompile exe to fake code
step 2 make code template for compiling in c or c++
step 3 load fake code into template
step 4 compile basic template and stop at assembly code generation
step 5 load the function into ida or such with pdb
decompile exe to fake code
make code template for compiling in c or c++
load fake code into template
compile basic template and stop at assembly code generation
copy assembly from halfway compiled c++ exe
auto replace halfway compiled code as assembly to ida assembly code
step 6 generate fake code for your template exeAlternatively,
step 7 go to the function and get the assembly from there to copy and replace
decompile exe to fake code
make code template for compiling in c or c++
load fake code into template
compile basic template and stop at assembly code generation
load the function into ida or such with pdb
generate fake code for your template exe
go to the function and get the assembly from there to copy and replace
I know this method wouldn't be fast... but I am suprisedsurprised no one has tried a method like this as far as I'm aware? Am I just missing something obvious?