WaxfordSqueers
November 13th, 2012, 05:21
What is the purpose of the instructions repz ret used together? I have done a bit of research and it seems to be related to a difference in the way an AMD and Intel processor handles instruction, but I am wondering if it is used in some way for protection?
It follows a JNZ instruction where the Z flag is set. So the code looks as follows:
JNZ address
REPZ RET
JMP address
The machine code is:
7502
F3C3
E9 (address)
I did a search on RCE and saw a reference to REPZ NOP, I think as a means to cause a sleep situation. I am not sure how that would work.
It follows a JNZ instruction where the Z flag is set. So the code looks as follows:
JNZ address
REPZ RET
JMP address
The machine code is:
7502
F3C3
E9 (address)
I did a search on RCE and saw a reference to REPZ NOP, I think as a means to cause a sleep situation. I am not sure how that would work.