ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Mar 30, 2017 8:23 pm

All times are UTC




Post new topic  Reply to topic  [ 32 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Sat Jan 17, 2015 5:05 pm 
User avatar

Joined: Sat Jan 17, 2015 4:51 pm
Posts: 2
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.


Top
   
PostPosted: Sat Jan 17, 2015 5:39 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 5713
A new magic value probably means a new set of keys to add.
Ekey, do you want to help? :)


Top
   
PostPosted: Sun Jan 18, 2015 12:26 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 713
I'm trying download client but speed toooo slow :/


Top
   
PostPosted: Sun Jan 18, 2015 12:39 pm 
User avatar

Joined: Sat Jan 17, 2015 4:51 pm
Posts: 2
yep try http download.


Top
   
PostPosted: Sun Jan 18, 2015 1:47 pm 

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


Top
   
PostPosted: Sun Jan 18, 2015 2:45 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 713
Code:
dwTotalFiles ^ 0x20141203
dwTableOffset ^ 0x6F61A5EA


Code:
dwTableSize = dwTotalFiles << 4;


For decrypt table used AES/128/ECB

Key
Code:
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


Top
   
PostPosted: Sun Jan 18, 2015 4:19 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 5713
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


Top
   
PostPosted: Sun Jan 18, 2015 5:19 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 713
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.

Top
   
PostPosted: Sun Jan 18, 2015 7:00 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 5713
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.


Top
   
PostPosted: Sun Jan 18, 2015 8:18 pm 

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


Top
   
PostPosted: Mon May 25, 2015 8:11 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 713
Huh, i have some free time to finish it. Here simple tool for decompress data (samples and sources included).

:mrgreen:
Image


Attachments:
RODecompress_Src.rar [3.58 MiB]
Downloaded 5884 times
Top
   
PostPosted: Tue May 26, 2015 4:32 am 

Joined: Tue May 26, 2015 1:28 am
Posts: 4
@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.


Top
   
PostPosted: Tue May 26, 2015 10:52 am 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 713
Some progress. Currently without names.

Image


Top
   
PostPosted: Tue May 26, 2015 11:35 am 

Joined: Tue May 26, 2015 1:28 am
Posts: 4
Do possible to unpack all the bgm music from sound.pg and sound1.pg?
:)


Top
   
PostPosted: Tue May 26, 2015 11:39 am 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 713
Yeah, sure.


Top
   
PostPosted: Tue May 26, 2015 11:44 am 

Joined: Tue May 26, 2015 1:28 am
Posts: 4
Many thanks to you EKey.
I love tht bgm music very well :)


Top
   
PostPosted: Tue May 26, 2015 12:53 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 713
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.

Top
   
PostPosted: Tue May 26, 2015 1:51 pm 

Joined: Tue May 26, 2015 1:28 am
Posts: 4
Pls check pm


Top
   
PostPosted: Sat Jun 13, 2015 8:17 pm 
User avatar

Joined: Thu Aug 14, 2014 8:52 pm
Posts: 178
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.


Top
   
PostPosted: Mon Jun 15, 2015 12:24 am 

Joined: Mon Jun 15, 2015 12:14 am
Posts: 2
is there a possibility for me to work on a english patch with the PG unpacker tool?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 32 posts ]  Go to page 1 2 Next

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited