Injection Into A Code Cave

  1. In a patching software like x64dbg, allow somewhere to jump to a codecave
  2. Add the instructions: pushad and pushfd
  3. Copy paste the hexidecimal data of your executable into the codecave CTRL+E while selecting a codecave region
  4. Afterwards, add the two instructions: