New
#1
Analyze why EXE file (that I created myself) wont load (sys error 193)
(similar post on Software and Apps forum)
I have written my own program that creates a .EXE file by modifying another .EXE file. The output file will not run. Intel's SDE program tells me it gets a system error 193.
If the tool changes nothing, but just writes back everything it finds in the input, then the output runs fine, and in fact the binary files are identical.
I have the tool making just a few changes. It lengthens the file size and virtual size of section # 4 (.data) by 1000x, and adds 1000x to the RVA of section # 5 (.rdata). It also adjusts the Relocations Data Directory pointer and the SizeOfImage in the image header. Otherwise the two files are identical.
But the output file doesn't load.
I also tried setting the output Checksum and SizeOfCode fields to 0 without changing anything else, and it runs successfully. So these fields are apparently not the cause of the problem.
DO YOU KNOW a way or a tool to tell me what's wrong with my output .EXE??
If you would like to analyze the files yourself, please tell me how to package the .EXEs as an attachment for you.
Thanks.