Inside ept.c, when counting the number of instruction bytes at the start of the hooked function, the instruction pointer is not incremented - this results in counting the length of the same instruction over and over again.
SizeOfHookedInstructions += LDE(TargetFunction, 64))
should be changed to something like:
SizeOfHookedInstructions += LDE(TargetFunction + SizeOfHookedInstructions, 64))
Inside ept.c, when counting the number of instruction bytes at the start of the hooked function, the instruction pointer is not incremented - this results in counting the length of the same instruction over and over again.
SizeOfHookedInstructions += LDE(TargetFunction, 64))
should be changed to something like:
SizeOfHookedInstructions += LDE(TargetFunction + SizeOfHookedInstructions, 64))