I have a program which converts videos from a proprietary format into mp4. The conversion is very slow and CPU utilization is less than 1%. I'm able to speed up the conversion process via Cheat Engine's "Speed Hack" feature. This way, I can reach 100% CPU utilization, and the conversion is done within seconds. The resulting mp4 file looks fine. There are no issues. I'm assuming that the developers of the conversion tool forgot to remove a sleep() in their program. Is there an easy way to search for sleep via IDA-Free or Ghidra or Ollydbg? I want to overwrite the sleep with NOP.
Load your binary into IDA, after completing the initial analysis click on, imports, then press CTRL + F and type sleep, automatically IDA will reference the import (if used), from that you will need to list all cross references with "X", so it will locate the routines used for its sleep function, however taking into account, I do not believe that the developer has used something like sleep, it may be some thread not synchronized correctly, see also:
Understand how the Cheat Engine speed hack works:
Try to implement your own speed hack based on someone else's idea:
Tips for cool projects:
- Try to attach a process and apply it
Take the basic Guided Hacking training (It will help you a lot):