You will have to attach a debugger to it. Stop it at the execution point, where you will not destroy anything, replace the executable image, the instruction pointers by the rule, and if you select a bad breakpoint, you will also have to rebuild the stack and change the variables that may be affected / added by new code.
This is a lot more complicated than you want.
If your modification is local, you might be better off with a code pen as a workaround for this particular executable instance.
source
share