Use advanced loader generator,if i remember have options like sleep and wait until first windows before apply the patches,the final loader is a VB6 packed with upx,just unpack it and you can check how works.
Here a very good basic example made by Xylitol
https://github.com/Xyl2k/Xylitol-MAS...der)/patch.asm