Page 1 of 1

Origin's par-file

Posted: Thu Jul 02, 2015 7:03 pm
by Haoose
Hi.
This is a script for par-files from games in Origin.

Code: Select all

get ID long
if ID == 1007747626
	set POS 0
else
	set POS 4
endif

encryption XOR "q@pO3o#5jNA6$sjP3qwe1"
get SIZE asize
math SIZE -= POS
log "decrypted_par.txt" POS SIZE
Does anyone know assignment of first 4 bytes of par-file?
Most likely it is a checksum.

Re: Origin's par-file

Posted: Tue Jul 07, 2015 12:59 am
by Ekey
here

Re: Origin's par-file

Posted: Wed Jul 08, 2015 1:41 am
by Haoose
Origin PAR Tool by Ekey (h4x0r) & Haoose
Image

Code: Select all

https://cloud.mail.ru/public/5ctW/2WVSRg3C5
http://sendfile.su/1529805
https://mega.nz/#!FXZkAAST!vKSD505ohUn_wIavonqzVLKa736Ot5ZwRKm73Riunx0
Open - decode par-file
Patch - patching par-file for use game in offline mode (removes the substring "RequiredToPlayV1,")
Save - encode par-file

Enjoy ;)

Re: Origin's par-file

Posted: Mon Sep 07, 2015 3:01 pm
by mirh
You may want to check this.
It only results in gibberish in your tool.

Re: Origin's par-file

Posted: Sun Sep 02, 2018 11:50 am
by HammerTank
How are the first 4 bytes calculated actually? Can anyone tell?

Re: Origin's par-file

Posted: Fri Sep 07, 2018 5:17 am
by Puterboy1
No, but I’ll bet it’s distinctive...that is I feel there have been others that have tried before to extract the files from the game.

Re: Origin's par-file

Posted: Wed Nov 07, 2018 6:19 pm
by HammerTank
Hmm, sadly none of the creators is reachable anymore. :(

Re: Origin's par-file

Posted: Thu Nov 21, 2019 2:42 pm
by Ekey
HammerTank wrote:
Sun Sep 02, 2018 11:50 am
How are the first 4 bytes calculated actually? Can anyone tell?
This is CRC32 of encrypted data :)
HammerTank wrote:
Wed Nov 07, 2018 6:19 pm
Hmm, sadly none of the creators is reachable anymore. :(
What you mean? ;)

Re: Origin's par-file

Posted: Thu Dec 05, 2019 9:18 pm
by HammerTank
Ekey wrote:
Thu Nov 21, 2019 2:42 pm
This is CRC32 of encrypted data :)
It doesn't seem to be CRC32. I already checked that. That's why I'm asking.
I took a par file, removed the first 4 bytes and the CRC32 doesn't match the hash I removed before.

Re: Origin's par-file

Posted: Sat Dec 07, 2019 3:32 am
by Ekey
Make sure your CRC32 algorithm works with polynomial 0x04C11DB7

Re: Origin's par-file

Posted: Mon Dec 09, 2019 9:28 pm
by HammerTank
Ekey wrote:
Sat Dec 07, 2019 3:32 am
Make sure your CRC32 algorithm works with polynomial 0x04C11DB7
I used that. Look at the file I attached. The checksum in the file is 0x31E360B3, but when I calculate the CRC32, I get 0xBDC63D58 (polynomial 0x00000000) or 0xDCB13237 (polynomial 0x04C11DB7). So what's wrong? I don't get it. :(
RA95Launcher.zip

Re: Origin's par-file

Posted: Tue Jun 30, 2020 9:21 pm
by HammerTank
Noone? :(

In your tool, the following two different contents result in the same checksum. So this is obviously no CRC32 as it would also change with every byte that changed...

Code: Select all

[Base]
ContentId = 1001288
ProductTitle = "Command and Conquer Red Alert"
InstalledDistro = RequiredToPlayV1,AccessDigitalV3
SupportedDistros

Code: Select all

[Base]
ContentId = 1001288
ProductTitle = "Command and Conquer Red Alert"
InstalledDistro = RequiredToPlayV1,AccessDigitalV4
SupportedDistros
But both these contents result in the same checksum with your tool. Can you please explain?

Re: Origin's par-file

Posted: Sun Sep 06, 2020 7:29 pm
by HammerTank
Sadly, noone is willing to help, right? :(

Re: Origin's par-file

Posted: Wed Nov 18, 2020 7:40 pm
by mirh

Re: Origin's par-file

Posted: Mon Nov 23, 2020 6:07 pm
by HammerTank
Thank you very much. The second link did it with the hint that only every 4th byte is used. ;)