Dragon Nest .PAK Files Problem

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
fags343
Posts: 3
Joined: Thu Sep 03, 2015 5:15 pm

Dragon Nest .PAK Files Problem

Post by fags343 »

hello
i can't extract dragon nest .pak files
i'm using the quickbms 0.6.6a and dragonnest.bms

Image

code

Code: Select all

IDString "EyedentityGames Packing File 0.1" 
goto 0x104
get Files long
get noffset long
goto noffset
for i = 0 < FILES
getdstring NAME 0x100
get ZSIZE long
get SIZE long
get ZSIZE1 long
get OFFSET long
get UNK3 long
getdstring NULL1 0x28
if SIZE == 0
print "skip %NAME%"
else
clog NAME OFFSET ZSIZE SIZE
endif
next i 


can you help me?
thanks
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dragon Nest .PAK Files Problem

Post by aluigi »

Upload one of these archives
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dragon Nest .PAK Files Problem

Post by aluigi »

Since the OP apparently no longer cares about this, I leave a link to a resource and a keyword for the search engines:
https://github.com/alin1337/DNSkyProject (DNPakCrypto/DNPakCrypto/Main.cpp)
Ralukat Labs Packing System 1.1

Basically it's just a set of different XOR obfuscations based on the section of the archive to decrypt, I mean like:

Code: Select all

buffer[i] ^= buffer[i - 1] ^ cheimagice[i % 512];
buffer[i] ^= rlkt[i%(sizeof(rlkt)-1)];
buffer[i] ^= cheimagice[(j+0x69) % 512];
buffer[i] ^= buffer[i - 1] ^ cheimagice[j % 512];