addr=
while(addr<):
next_addr = NextHead(addr)
if "eax, ds:" in GetDisasm(addr):
PatchByte(addr,0xb8)
PatchByte(addr+1,0x00)
PatchByte(addr+2,0x00)
PatchByte(addr+3,0x00)
PatchByte(addr+4,0x00)
PatchByte(addr+5,0x90)
PatchByte(addr+6,0x90)
if "ecx, ds:" in GetDisasm(addr):
PatchByte(addr,0xb9)
PatchByte(addr+1,0x00)
PatchByte(addr+2,0x00)
PatchByte(addr+3,0x00)
PatchByte(addr+4,0x00)
PatchByte(addr+5,0x90)
PatchByte(addr+6,0x90)
if "edx, ds:" in GetDisasm(addr):
PatchByte(addr,0xba)
PatchByte(addr+1,0x00)
PatchByte(addr+2,0x00)
PatchByte(addr+3,0x00)
PatchByte(addr+4,0x00)
PatchByte(addr+5,0x90)
PatchByte(addr+6,0x90)
if "esi, ds:" in GetDisasm(addr):
PatchByte(addr,0xbe)
PatchByte(addr+1,0x00)
PatchByte(addr+2,0x00)
PatchByte(addr+3,0x00)
PatchByte(addr+4,0x00)
PatchByte(addr+5,0x90)
PatchByte(addr+6,0x90)
if "edi, ds:" in GetDisasm(addr):
PatchByte(addr,0xbf)
PatchByte(addr+1,0x00)
PatchByte(addr+2,0x00)
PatchByte(addr+3,0x00)
PatchByte(addr+4,0x00)
PatchByte(addr+5,0x90)
PatchByte(addr+6,0x90)
addr = next_addr