[DiscordArchive] after binary patching, what brakes?
[DiscordArchive] after binary patching, what brakes?
Archived author: ZaDarkSide • Posted: 2023-03-10T16:34:38.895000+00:00
Original source
well i was talking about packing/unpacking as in if you use for example UPX, you can pack the executable in this case it's just compression no encryption you write a loader that unpacks the compressed data in memory and runs it, but you can unpack it and run the unpacked version instead
Archived author: Fabian • Posted: 2023-03-10T16:34:41.002000+00:00
Original source
they are part of unpacking many other things (mostly related to the entrypoint, anti debugging etc.)
Archived author: ZaDarkSide • Posted: 2023-03-10T16:35:36.921000+00:00
Original source
so you must unfuck the entrypoint, remove the checks, and should work unpacked?
Archived author: Fabian • Posted: 2023-03-10T16:35:53.925000+00:00
Original source
no
Archived author: Fabian • Posted: 2023-03-10T16:36:57.829000+00:00
Original source
you have to fully rebuild the process that the wow client does before reaching the entrypoint when unpacked
Archived author: Fabian • Posted: 2023-03-10T16:37:04.059000+00:00
Original source
that is MUCH work
Archived author: Fabian • Posted: 2023-03-10T16:37:20.034000+00:00
Original source
and even then it most likely won't run unpacked
Archived author: Fabian • Posted: 2023-03-10T16:37:29.168000+00:00
Original source
many things there rely on your current base address etc.
Archived author: ZaDarkSide • Posted: 2023-03-10T16:38:04.237000+00:00
Original source
from my understanding any program that is executed in memory is automatically unpacked/unencrypted etc., you can dump the unpacked/unencrypted version from memory back to another binary, then you need to do some fixups, like rebuild IAT, and recalculate RVA, remove some checks etc.
Archived author: Fabian • Posted: 2023-03-10T16:38:08.975000+00:00
Original source
So don't even try that, you won't be successful xD