The Forum is up for sale: XeNTaX Forum looking for new owner

Battlefield 3 Decryptor

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
mojobojo
ultra-n00b
Posts: 2
Joined: Tue Oct 25, 2011 8:25 pm

Battlefield 3 Decryptor

Post by mojobojo »

Probably not good for a first post but there is no introduction forum so might as well get posting instead of lurking. I reversed the game and figured out the encryption used on the BF3 resources with the 0x00D1CE00 header magic. Just run it once on the file to decrypt it, and once again to re-encrypt it. The crypto is just a simple XOR encryption with a per-file key and a constant.

Source is included. Compile for linux with "gcc -Os bf3decrypt.c -o bf3decrypt"

Source
https://github.com/mojobojo/PublicXboxS ... 3decrypt.c
Last edited by mojobojo on Mon Mar 10, 2014 3:47 pm, edited 2 times in total.
howfie
double-veteran
double-veteran
Posts: 929
Joined: Fri Jul 08, 2011 12:06 pm
Location: Torrance, CA
Has thanked: 10 times
Been thanked: 274 times

Re: Battlefield 3 Decryptor

Post by howfie »

cool, thanks! will give it a try when the game comes down in price! got any sample model files for the guys to work with?
luxox18
mega-veteran
mega-veteran
Posts: 176
Joined: Fri Jul 29, 2011 9:18 pm
Has thanked: 54 times
Been thanked: 46 times

Re: Battlefield 3 Decryptor

Post by luxox18 »

The contents of this post was deleted because of possible forum rules violation.
Last edited by luxox18 on Mon Oct 31, 2011 3:13 am, edited 1 time in total.
panz0r
ultra-n00b
Posts: 1
Joined: Mon Oct 31, 2011 1:32 am

Re: Battlefield 3 Decryptor

Post by panz0r »

mojobojo wrote:Probably not good for a first post but there is no introduction forum so might as well get posting instead of lurking. I reversed the game and figured out the encryption used on the BF3 resources with the 0x00D1CE00 header magic. Just run it once on the file to decrypt it, and once again to re-encrypt it. The crypto is just a simple XOR encryption with a per-file key and a constant.

Source is included. Compile for linux with "gcc -Os bf3decrypt.c -o bf3decrypt"
http://dl.dropbox.com/u/45861203/bf3decrypt.zip
I have no idea what about these files and whatnot. I just want to know the weapon files, so I have a noob question. What did it do, me clicking on the bf3decrypt.exe? A cmd window popped up and then disappeared right away. =S Also, could you post the numbers? Thanks!
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: Battlefield 3 Decryptor

Post by OrangeC »

Works great decrypting the toc files, what about using these to extract the sb files contents?
RGGZOR
ultra-n00b
Posts: 5
Joined: Fri Sep 30, 2011 10:38 am

Re: Battlefield 3 Decryptor

Post by RGGZOR »

How do I use this tool? I want to translate the game and I'm running after opening the files from BF3.
User avatar
General Shepherd
ultra-n00b
Posts: 3
Joined: Wed Nov 02, 2011 10:21 pm
Location: Brasil
Contact:

Re: Battlefield 3 Decryptor

Post by General Shepherd »

panz0r wrote: I have no idea what about these files and whatnot. I just want to know the weapon files, so I have a noob question. What did it do, me clicking on the bf3decrypt.exe? A cmd window popped up and then disappeared right away. =S Also, could you post the numbers? Thanks!
You can't run it just clicking on the exe file. Open the console, go to the folder where is the bf3decrypt.exe, then type:

bf3decrypt [input file] [output file]

Obviously, change the [input file] and [output file] for the correct names of the files that you're trying to open.
Att
General Shepherd
GameVicio.com
Brazil
mitsuhiko
ultra-n00b
Posts: 5
Joined: Sat Oct 29, 2011 2:30 pm

Re: Battlefield 3 Decryptor

Post by mitsuhiko »

OrangeC wrote:Works great decrypting the toc files, what about using these to extract the sb files contents?
The toc and sb files are not too useful. They basically just group things together and have some payload. However the general format is used in more places. I outlined the basic file format here: https://github.com/mitsuhiko/frostbite2 ... ter/README

The same repository has a parser for these files and the code for decrypting and some other things we already found.
rengareng
veteran
Posts: 131
Joined: Fri Feb 18, 2011 10:23 am
Has thanked: 7 times
Been thanked: 49 times

Re: Battlefield 3 Decryptor

Post by rengareng »

could you provide an executable for these. Because, I have never compiled a python project.
User avatar
Evin
ultra-veteran
ultra-veteran
Posts: 347
Joined: Sat Aug 05, 2006 2:04 pm
Location: Hungary
Has thanked: 2 times
Been thanked: 160 times
Contact:

Re: Battlefield 3 Decryptor

Post by Evin »

If you install the Python, you can run the .py files. No compiled .py file.
seanpual123
ultra-n00b
Posts: 1
Joined: Thu Nov 10, 2011 11:52 am
Contact:

Re: Battlefield 3 Decryptor

Post by seanpual123 »

This part of battlefield is looking awesome i will buy it soon.
Post Reply