Is it possible to edit/modify compressed QT Resources?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
eriger777
Posts: 13
Joined: Thu May 14, 2015 8:09 pm

Is it possible to edit/modify compressed QT Resources?

Post by eriger777 »

Hi, I have an application that I would love to modify a Qt resource that is compiled into the executable. I used this script right here to decompress/extract the resource files, but there is no way re-reimport them, this is the script I used.

https://github.com/axstin/qtextract


Is this possible to do with quickbms?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Is it possible to edit/modify compressed QT Resources?

Post by aluigi »

In theory it would be possible to extract and replace the resource from the executable with tools like resource hacker, and then parsing the dumped resource with a quickbms script.

The format looks quite simple, do you have a sample to analyze?
eriger777
Posts: 13
Joined: Thu May 14, 2015 8:09 pm

Re: Is it possible to edit/modify compressed QT Resources?

Post by eriger777 »

First of all, thank you for responding!

I tried using resource hacker but the file system is embedded.

I'm interested in the themes/DarkTheme.json file

Image


Download Link:https://drive.google.com/uc?export=download&id=1ea8ARWy8KjTdqU9xgaEZoLqSxZRpUKEl
eriger777
Posts: 13
Joined: Thu May 14, 2015 8:09 pm

Re: Is it possible to edit/modify compressed QT Resources?

Post by eriger777 »

aluigi wrote:In theory it would be possible to extract and replace the resource from the executable with tools like resource hacker, and then parsing the dumped resource with a quickbms script.

The format looks quite simple, do you have a sample to analyze?



CC'd I updated the thread! :D
eriger777
Posts: 13
Joined: Thu May 14, 2015 8:09 pm

Re: Is it possible to edit/modify compressed QT Resources?

Post by eriger777 »

Hi sorry to bump, any updates or leads that will point me in the right direction?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Is it possible to edit/modify compressed QT Resources?

Post by aluigi »

The main problem is locating the archived data in the resources, that's why that lua script is a bit complicated with its searching function.
What I mean is that it's not just a standalone archive.
And since it's in a PE resource it would make it even more complicated to edit it using new files which are bigger messing everything.