https://machxnu.github.io/posts/patch-an-executable-with-Python/
Patch an executable with Python - MachXNU