Skip to main content

Why cantcan't you edit pseudo code?

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

  1. decompile exe to fake code

  2. make code template for compiling in c or c++

  3. load fake code into template

  4. compile basic template and stop at assembly code generation

  5. copy assembly from halfway compiled c++ exe

  6. 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

  1. decompile exe to fake code

  2. make code template for compiling in c or c++

  3. load fake code into template

  4. compile basic template and stop at assembly code generation

  5. load the function into ida or such with pdb

  6. generate fake code for your template exe

  7. 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?

Why cant you edit pseudo code?

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

step 6 generate fake code for your template exe

step 7 go to the function and get the assembly from there to copy and replace

I know this method wouldn't be fast... but am suprised no one has tried a method like this as far as I'm aware? Am I just missing something obvious?

Why can't you edit pseudo code?

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?

  1. decompile exe to fake code

  2. make code template for compiling in c or c++

  3. load fake code into template

  4. compile basic template and stop at assembly code generation

  5. copy assembly from halfway compiled c++ exe

  6. auto replace halfway compiled code as assembly to ida assembly code

Alternatively,

  1. decompile exe to fake code

  2. make code template for compiling in c or c++

  3. load fake code into template

  4. compile basic template and stop at assembly code generation

  5. load the function into ida or such with pdb

  6. generate fake code for your template exe

  7. 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 surprised no one has tried a method like this as far as I'm aware? Am I just missing something obvious?

Became Hot Network Question
Source Link

Why cant you edit pseudo code?

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

step 6 generate fake code for your template exe

step 7 go to the function and get the assembly from there to copy and replace

I know this method wouldn't be fast... but am suprised no one has tried a method like this as far as I'm aware? Am I just missing something obvious?