TERF File Decrypter / Reencrypter script

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
fifabrowny
Posts: 4
Joined: Sun Feb 16, 2020 2:41 am

TERF File Decrypter / Reencrypter script

Post by fifabrowny »

Hi Aluigi,

Are you able to write a decrypter / re encrypter for the below file ?

Quick BMS actually works to extract the file , so I believe you already have a decrypter, would it be hard to write a script to re encrypt the file?

https://filebin.net/mmv5mtocyrg1ajd8


If this was possible I could just hex edit the full file and that would do the trick, as Quickbms cannot reimport these files back in to the archive.

Hoping you may be able to help as you did something similar in this thread

viewtopic.php?t=7172
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: TERF File Decrypter / Reencrypter script

Post by aluigi »

Sorry, the ea_madden compression is quite complex.
You should be happy that the decompression exists.
If you want to reinject the files in the archive I suggest you to try setting the ALGO field to 0 for forcing the file to be stored uncompressed (it takes time, you have to try manually).
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: TERF File Decrypter / Reencrypter script

Post by aluigi »

I released a beta version of quickbms that automatically does what I wrote in my previous post.
This is the beta: http://aluigi.org/beta/quickbms_beta.zip
For using the new feature edit reimport2.bat and add the -e option:

Code: Select all

quickbms.exe -G -w -r -r -e