dumping files loaded by game

Memory scanning, code injection, debugger internals and other gamemodding related discussion
Post Reply
reverser69
Expert Cheater
Expert Cheater
Posts: 104
Joined: Wed Dec 27, 2017 2:40 pm
Reputation: 47

dumping files loaded by game

Post by reverser69 »

hi all

anyone can help me with dumping custom files/scripts loaded by a game?
for example how people dumped FarCry .lua file or Call of duty .gsc files?

predprey
Expert Cheater
Expert Cheater
Posts: 207
Joined: Thu Mar 02, 2017 8:46 pm
Reputation: 140

Re: dumping files loaded by game

Post by predprey »

You can start by hooking ReadFileEx and its variants and see if the file getting read is the one that contains the script. But in the end you probably want to trace the breakpoints until you can find a the subroutine that decrypts/decompress the pack files from which then you can break the game once it decrypts the file, then you can dump the decompressed data from the memory.

But I'm not experienced in this area, so just my 2 cents. The pros probably have a dedicated compiled program that hooks the subroutines they discovered and automatically dumps the memory for them.

User avatar
SunBeam
Administration
Administration
Posts: 4704
Joined: Sun Feb 04, 2018 7:16 pm
Reputation: 4287

Re: dumping files loaded by game

Post by SunBeam »

He is not interested in learning how to reverse engineer or code some tool. He just wants to know what to use to dump that data T_T. Please head to [Link] and search there what you need.

User avatar
Chucky
Expert Cheater
Expert Cheater
Posts: 76
Joined: Thu Mar 08, 2018 4:01 pm
Reputation: 29

Re: dumping files loaded by game

Post by Chucky »

reverser69 wrote:
Wed Jan 27, 2021 12:49 pm
hi all

anyone can help me with dumping custom files/scripts loaded by a game?
for example how people dumped FarCry .lua file or Call of duty .gsc files?
[Link]

reverser69
Expert Cheater
Expert Cheater
Posts: 104
Joined: Wed Dec 27, 2017 2:40 pm
Reputation: 47

Re: dumping files loaded by game

Post by reverser69 »

thx guys
so far I extracted game archives but the only file extension I could see and was not graphical/sound, was the .bin file.
I also located where the game loads these files but I can't trace nor follow the code cuz the game uses a few functions for all things.

User avatar
SunBeam
Administration
Administration
Posts: 4704
Joined: Sun Feb 04, 2018 7:16 pm
Reputation: 4287

Re: dumping files loaded by game

Post by SunBeam »

^ You will have to do research on your own on the data types and such. We don't know. That's why I linked you to that forum, you're better off there finding a solution to all these random questions.

For FarCry games there's an extractor which uses a fixed list of names. Then there's a decompiler for the encoded .lua scripts. I don't know anything about the other game. Your forums are: XeNTaX and ZenHax. Google them up and start searching :)

Post Reply

Who is online

Users browsing this forum: No registered users