Coders and would-be coders alike, this is the place to talk about programming.
-
Haoose
- mega-veteran

- Posts: 281
- Joined: Tue Mar 01, 2011 9:34 pm
- Has thanked: 70 times
- Been thanked: 188 times
-
Contact:
Post
by Haoose » Thu Jul 02, 2015 7:03 pm
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.
-= GP-team =-

-
Ekey
- M-M-M-Monster veteran

- Posts: 1737
- Joined: Wed Mar 31, 2010 6:54 am
- Has thanked: 85 times
- Been thanked: 945 times
Post
by Ekey » Tue Jul 07, 2015 12:59 am
here
You do not have the required permissions to view the files attached to this post.
-
Haoose
- mega-veteran

- Posts: 281
- Joined: Tue Mar 01, 2011 9:34 pm
- Has thanked: 70 times
- Been thanked: 188 times
-
Contact:
Post
by Haoose » Wed Jul 08, 2015 1:41 am
Origin PAR Tool by Ekey (h4x0r) & Haoose
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 
You do not have the required permissions to view the files attached to this post.
-= GP-team =-

-
mirh
- n00b
- Posts: 14
- Joined: Tue Nov 18, 2014 8:05 pm
- Has thanked: 115 times
- Been thanked: 5 times
Post
by mirh » Mon Sep 07, 2015 3:01 pm
You may want to check this.
It only results in gibberish in your tool.
You do not have the required permissions to view the files attached to this post.
-
HammerTank
- ultra-n00b
- Posts: 7
- Joined: Sat Jun 23, 2018 2:58 pm
- Has thanked: 1 time
Post
by HammerTank » Sun Sep 02, 2018 11:50 am
How are the first 4 bytes calculated actually? Can anyone tell?
-
Puterboy1
- mega-veteran

- Posts: 187
- Joined: Fri Mar 02, 2018 3:05 am
- Been thanked: 6 times
Post
by Puterboy1 » Fri Sep 07, 2018 5:17 am
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.
-
HammerTank
- ultra-n00b
- Posts: 7
- Joined: Sat Jun 23, 2018 2:58 pm
- Has thanked: 1 time
Post
by HammerTank » Wed Nov 07, 2018 6:19 pm
Hmm, sadly none of the creators is reachable anymore.

-
Ekey
- M-M-M-Monster veteran

- Posts: 1737
- Joined: Wed Mar 31, 2010 6:54 am
- Has thanked: 85 times
- Been thanked: 945 times
Post
by Ekey » Thu Nov 21, 2019 2:42 pm
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?

-
HammerTank
- ultra-n00b
- Posts: 7
- Joined: Sat Jun 23, 2018 2:58 pm
- Has thanked: 1 time
Post
by HammerTank » Thu Dec 05, 2019 9:18 pm
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.
-
Ekey
- M-M-M-Monster veteran

- Posts: 1737
- Joined: Wed Mar 31, 2010 6:54 am
- Has thanked: 85 times
- Been thanked: 945 times
Post
by Ekey » Sat Dec 07, 2019 3:32 am
Make sure your CRC32 algorithm works with polynomial 0x04C11DB7
-
HammerTank
- ultra-n00b
- Posts: 7
- Joined: Sat Jun 23, 2018 2:58 pm
- Has thanked: 1 time
Post
by HammerTank » Mon Dec 09, 2019 9:28 pm
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
You do not have the required permissions to view the files attached to this post.
Last edited by
HammerTank on Sun Jul 05, 2020 9:50 pm, edited 1 time in total.
-
HammerTank
- ultra-n00b
- Posts: 7
- Joined: Sat Jun 23, 2018 2:58 pm
- Has thanked: 1 time
Post
by HammerTank » Tue Jun 30, 2020 9:21 pm
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?
-
HammerTank
- ultra-n00b
- Posts: 7
- Joined: Sat Jun 23, 2018 2:58 pm
- Has thanked: 1 time
Post
by HammerTank » Sun Sep 06, 2020 7:29 pm
Sadly, noone is willing to help, right?

-
HammerTank
- ultra-n00b
- Posts: 7
- Joined: Sat Jun 23, 2018 2:58 pm
- Has thanked: 1 time
Post
by HammerTank » Mon Nov 23, 2020 6:07 pm
Thank you very much. The second link did it with the hint that only every 4th byte is used.
