Help Me Revelation Online .PG

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
nuuneoi
Posts: 2
Joined: Sat Jan 17, 2015 4:51 pm

Help Me Revelation Online .PG

Post by nuuneoi »

Hello guys,i need to make some patch but i can't extract .pg file. i try on this post viewtopic.php?f=9&t=138 and http://forum.xentax.com/viewtopic.php?p=82822#p82822 but nothing happen. i greatly thank for all for help on this post.

sample file form last update http://goo.gl/XPppLS
http://goo.gl/wb3mgP


This for download game client http://tianyu.163.com/download/


Thank u all for help.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help Me Revelation Online .PG

Post by aluigi »

A new magic value probably means a new set of keys to add.
Ekey, do you want to help? :)
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Help Me Revelation Online .PG

Post by Ekey »

I'm trying download client but speed toooo slow :/
nuuneoi
Posts: 2
Joined: Sat Jan 17, 2015 4:51 pm

Re: Help Me Revelation Online .PG

Post by nuuneoi »

yep try http download.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Help Me Revelation Online .PG

Post by Ekey »

I'm using HTTP
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Help Me Revelation Online .PG

Post by Ekey »

Code: Select all

dwTotalFiles ^ 0x20141203
dwTableOffset ^ 0x6F61A5EA


Code: Select all

dwTableSize = dwTotalFiles << 4;


For decrypt table used AES/128/ECB

Key

Code: Select all

MOV DWORD PTR SS:[ESP+20],12CF0451
MOV DWORD PTR SS:[ESP+24],CECB9717
MOV DWORD PTR SS:[ESP+28],90A133D6
MOV DWORD PTR SS:[ESP+2C],BFF4FFD4
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help Me Revelation Online .PG

Post by aluigi »

Ok I have updated the script but the only problem now is the compression algorithm because lzo1x doesn't work.
The following is the link to the script, feel free to test it:
http://aluigi.org/papers/bms/others/1gab_2gab_bag.bms
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Help Me Revelation Online .PG

Post by Ekey »

Seems found algo, but one problem - 1 call is virtualized

Edited: See below :)
Last edited by Ekey on Mon May 25, 2015 8:17 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Help Me Revelation Online .PG

Post by aluigi »

It seems a standard algorithm to which have been applied some XORs.
There is xor 0xd7, then there is an interesting xor [ebx] 0x14 and so on.
Anyway it doesn't seem lzo1x.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Help Me Revelation Online .PG

Post by Ekey »

i have no idea
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Help Me Revelation Online .PG

Post by Ekey »

Huh, i have some free time to finish it. Here simple tool for decompress data (samples and sources included).

:mrgreen:
Image
maplechin
Posts: 4
Joined: Tue May 26, 2015 1:28 am

Re: Help Me Revelation Online .PG

Post by maplechin »

@echo off
color a
RODecompress 00000093.dat 00000093.dec
RODecompress 000000ce.dat 000000ce.dec
RODecompress 0000021e.dat 0000021e.dec
RODecompress 00000129.dat 00000129.dec
RODecompress 0000035a.dat 0000035a.dec
pause

Refer to the batch file above, how to unpack the .pg file before can get any .dat file for latest client version?
I wanna to unpack the sound.pg and sound1.pg for bgm and sound audio.
Anyone can help??
Thanks.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Help Me Revelation Online .PG

Post by Ekey »

Some progress. Currently without names.

Image
maplechin
Posts: 4
Joined: Tue May 26, 2015 1:28 am

Re: Help Me Revelation Online .PG

Post by maplechin »

Do possible to unpack all the bgm music from sound.pg and sound1.pg?
:)
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Help Me Revelation Online .PG

Post by Ekey »

Yeah, sure.
maplechin
Posts: 4
Joined: Tue May 26, 2015 1:28 am

Re: Help Me Revelation Online .PG

Post by maplechin »

Many thanks to you EKey.
I love tht bgm music very well :)
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Help Me Revelation Online .PG

Post by Ekey »

I'm trying registering account but is does not work for me. Can someone make account?
Last edited by Ekey on Tue May 26, 2015 2:26 pm, edited 1 time in total.
maplechin
Posts: 4
Joined: Tue May 26, 2015 1:28 am

Re: Help Me Revelation Online .PG

Post by maplechin »

Pls check pm
CriticalError
Posts: 204
Joined: Thu Aug 14, 2014 8:52 pm

Re: Help Me Revelation Online .PG

Post by CriticalError »

ummm very nice news, I delete this game because nobody release yet a tools, but now I see somebody back again with this format, I hope you can do something Ekey with file names, this would be cool if you can, if still need accont tell me and I create one.
darkblood
Posts: 2
Joined: Mon Jun 15, 2015 12:14 am

Re: Help Me Revelation Online .PG

Post by darkblood »

is there a possibility for me to work on a english patch with the PG unpacker tool?