Flengo, I am assuming you are adding bytes to the end of the file, I suggest maybe adding a new section for random bytes or even adding some random imports to the IAT, or most of the time there are "free" bytes at the end of each section anyway, so a calculation of free bytes in section will give you something to write your random junk bytes to... good work on what you have, I hope you continue developing it..