c++ - Decrypted exe wont run -


i'm writing c++ program takes in input exe file, encrypts (just xoring) , adds encrypted exe resource exe (stub).

the stub decrypts exe , saves it. problem decrypted exe won't run. bytes same, can open decrypted exe in pe editor, won't run.

any suggestions?

if original .exe , decrypted .exe really same, , assuming decrypted executable windows .exe file .exe extension (as referring .exe , pe format seems indicate), might mean you've stumbled security feature of kind.

the behaviour of program of single-stage malware dropper. doesn't matter if decrypted file not malicious: system cannot know it; sees executable creates executable , attempts execute it, , marks "do not execute this, ever" (for example via disallowrun. there other ways).

it possible (and, not take wrong, more likely) you're doing wrong: extension not .exe, file not exactly same (have checked md5/sha checksums of original , decrypted file?), attempt run file while it's still open writing...

try looking @ event viewer and/or antivirus software log, if any, see whether may shed light. own development machine, , have full administrator rights check policies, in case? also, check , report error status and/or error message might attempting execution.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -