This is a template for a packer, you can modify it to your own use case
make # output: unpacker.exe
python packer.py file_to_load.exe # output: out.exe
I decided to take the x86 packer from the wiredriver tutorial and make it x64 to understand what the differences are between an x86 and x64 PE