HxD code that it do not currupt exe

Help on how to use HxD.
Post Reply
lacaca
Posts: 1
Joined: 17 Apr 2019 06:22

HxD code that it do not currupt exe

Post by lacaca » 17 Apr 2019 06:26

Hi,

whenever i edit or insert byte in my exe file it get corrupt, exe is compress via UPX 3.02. the code i want to edit is
CODE: SELECT ALL

‡..QÔ‹äBûxýòõÒ³ø
(87 00 0D 51 D4 8B E4 42 FB 78 FD F2 F5 D2 B3 F8).

could you please let me know how or what should i edit that it does not corrupt my exe file? waiting for you response.
thank you

Maël
Site Admin
Posts: 1071
Joined: 12 Mar 2005 14:15

Re: HxD code that it do not currupt exe

Post by Maël » 18 Apr 2019 00:08

You need to uncompress it first, modify it, then recompress it to ensure the compressed data remains valid. As far as I remember UPX offers options to uncompress as well.

Changing compressed data in place while ensuring it remains valid is close to impossible.

Post Reply