Building a Custom Mach-O Memory Loader for macOS - Part 1 - XPN InfoSec Blog

https://blog.xpnsec.com/building-a-mach-o-memory-loader-part-1/