How could I convert a movq
SSE2 instruction into a simple code snippet which I could later patch into the original EXE which cointained? Please if you could provide sample direct instructions to be used as a replacement "template", so much the better!
I am mostly interested in writing such template-based replacement into my CodeBlocks project using C mostly, so I'd prefer it to be inline ASM form. That way I could programatically patch the subst into original instructions which are 5-byte long with an ASM call to the inline piece of code within the same C I'm using to patch the EXE (rest of the code already written).
I know the question sounds a bit more general than you'd like maybe, but any insight will be appreciated. Thanks in advance!