Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!

Forum rules: Click here

Origin's par-file

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
User avatar
Haoose
mega-veteran
mega-veteran
Posts: 276
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 68 times
Been thanked: 183 times
Contact:

Origin's par-file

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 =-
Image

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1645
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 68 times
Been thanked: 825 times

Re: Origin's par-file

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.

User avatar
Haoose
mega-veteran
mega-veteran
Posts: 276
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 68 times
Been thanked: 183 times
Contact:

Re: Origin's par-file

Post by Haoose » Wed Jul 08, 2015 1:41 am

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 ;)
You do not have the required permissions to view the files attached to this post.
-= GP-team =-
Image

mirh
n00b
Posts: 12
Joined: Tue Nov 18, 2014 8:05 pm
Has thanked: 114 times
Been thanked: 4 times

Re: Origin's par-file

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.
Image

HammerTank
ultra-n00b
Posts: 4
Joined: Sat Jun 23, 2018 2:58 pm

Re: Origin's par-file

Post by HammerTank » Sun Sep 02, 2018 11:50 am

How are the first 4 bytes calculated actually? Can anyone tell?

Puterboy1
mega-veteran
mega-veteran
Posts: 161
Joined: Fri Mar 02, 2018 3:05 am
Been thanked: 6 times

Re: Origin's par-file

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: 4
Joined: Sat Jun 23, 2018 2:58 pm

Re: Origin's par-file

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
M-M-M-Monster veteran
Posts: 1645
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 68 times
Been thanked: 825 times

Re: Origin's par-file

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: 4
Joined: Sat Jun 23, 2018 2:58 pm

Re: Origin's par-file

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
M-M-M-Monster veteran
Posts: 1645
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 68 times
Been thanked: 825 times

Re: Origin's par-file

Post by Ekey » Sat Dec 07, 2019 3:32 am

Make sure your CRC32 algorithm works with polynomial 0x04C11DB7

HammerTank
ultra-n00b
Posts: 4
Joined: Sat Jun 23, 2018 2:58 pm

Re: Origin's par-file

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 with the given polynomial, I get 0xBDC63D58. 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.

Post Reply