Dragons Dogma Online

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Dragons Dogma Online

Post by chrrox »

This game appears to be using blowfish.
Anyone want to try to get the key?
http://www.dd-on.jp/starting/download/c ... taller.exe
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Re: Dragons Dogma Online

Post by chrrox »

This is what previous resident evil games did
http://residentevilmodding.boards.net/t ... nformation
The 2 keys found in ddo so far are.


f23e98HafJdSoaj80QBjhh23oajgklSadrhogh2IJnwJEF58
nGIzy3qJo2fqLOgZI3Bv4UwZZ3LqKCUW

any idea how to get this working in quickbms.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dragons Dogma Online

Post by aluigi »

It's written that it's just blowfish so something like:

Code: Select all

encryption blowfish "f23e98HafJdSoaj80QBjhh23oajgklSadrhogh2IJnwJEF58"
get SIZE asize
log "dump.dat" 0 SIZE
If the output is still garbage then try bf_ecb instead of blowfish
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Dragons Dogma Online

Post by Ekey »

Ok. Here algo for make encryption key from 2 initial keys

Code: Select all

void MakeKey(unsigned char* nFinalKey, int dwKeyLength)
{
   // This initial keys from > Phoenix Wright 5
   unsigned char bKey1[] = "imaguy_uyrag_igurustim_";
   unsigned char bKey2[] = "enokok_ikorodo_odohuran";
   BYTE bResult;
   int i = 0;
   int k = 0;

   do
   {
      bResult = ((bKey2[i]) ^ bKey1[--dwKeyLength]) | k & 0xFF;
      nFinalKey[i++] = bResult;
      k = k + 0x40;
   }
   while ( k != 0x5C0 );
}


Usage

Code: Select all

   unsigned char bFinalKey[23] = {0};
   MakeKey(bFinalKey, 23);
   CBlowFish BlowFish(bFinalKey, 23);
   
   >>SwapBuffer<<
   
   //Decrypt buffer by block with size 0x50
   for (DWORD i = 0; i < dwBlocks; i++, pBuffer += 0x50)
      BlowFish.Decrypt(pBuffer, pBuffer, 0x50, 0);


Tested on game Phoenix Wright 5 for iOS. For DDO need to find correct keys with size 23 bytes each i guess.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dragons Dogma Online

Post by aluigi »

Do you mean something like this?

Code: Select all

set bKey1 string "f23e98HafJdSoaj80QBjhh23oajgklSadrhogh2IJnwJEF58"     #"imaguy_uyrag_igurustim_"
set bKey2 string "nGIzy3qJo2fqLOgZI3Bv4UwZZ3LqKCUW"                     #"enokok_ikorodo_odohuran"
strlen dwKeyLength bKey1    # or fixed 23?
putvarchr nFinalKey dwKeyLength 0
callfunction MakeKey 1

get SIZE asize
log MEMORY_FILE 0 0
append
for OFFSET = 0 < SIZE
    encryption blowfish nFinalKey "" 0 dwKeyLength
    log MEMORY_FILE OFFSET SIZE
next OFFSET + 0x50
append

log "dump.dat" 0 SIZE MEMORY_FILE

startfunction MakeKey
   math i = 0
   math k = 0
   math TMP = dwKeyLength
   do
      getvarchr TMP1 bKey2 i
      math TMP - 1
      getvarchr TMP2 bKey1 TMP
      xmath bResult "((TMP1 ^ TMP2) | k) & 0xFF"
      putvarchr nFinalKey i bResult
      math i + 1
      math k + 0x40
   while k != 0x5C0
endfunction
I can't test it with the game because the download will probably take years or more.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Dragons Dogma Online

Post by Ekey »

Yep but seems for DDO used other algorithm and i have no idea how it works. Also i found strange string mofumofu capcom(^-^). I think it's one part of initials keys but not sure.

Code: Select all

Lu3ZgjtC key for > savedata.dat
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Re: Dragons Dogma Online

Post by chrrox »

aluigi wrote:I can't test it with the game because the download will probably take years or more.

I can upload it to mega if you want or just a sample archive with exe's
Aethris
Posts: 3
Joined: Sat Oct 22, 2016 6:10 pm

Re: Dragons Dogma Online

Post by Aethris »

I was wondering if anyone managed to find success with this?

I attempted the posted scripts with quickBMS, and only received garbage outputs (tried bf_ecb as mentioned).

I'm not too familiar with quickBMS, so I'm hitting a wall. If it's a matter of clean game files, I can provide those easily and rapidly.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dragons Dogma Online

Post by aluigi »

Yeah, provide the files.
As you can see I had no confirmation that my test script worked and this thread is one year old so it's not excluded the usage of a new key made by the developers.
Aethris
Posts: 3
Joined: Sat Oct 22, 2016 6:10 pm

Re: Dragons Dogma Online

Post by Aethris »

Yeah, it crossed my mind that the keys may have been changed after I ran the scripts.

I can provide any individual files you'd like, but a mirror I manage of the whole game (compressed) may be found here...

https://mega.nz/#!I5pxgR4J!IVMO2wV1Y2az ... VW1fgmaef8

A series of split-archives (1 GB) may be found here...

https://drive.google.com/drive/folders/ ... sp=sharing
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dragons Dogma Online

Post by aluigi »

A couple of individual files are enough, they should be quite small I guess since the other users never talked about archives but just about files.
Aethris
Posts: 3
Joined: Sat Oct 22, 2016 6:10 pm

Re: Dragons Dogma Online

Post by Aethris »

Here are four files, two .arc and two .exe. The .arc's are relatively small, so I highly doubt there's any included imagery or other resources. Just text. The names of the .arc's also lead me to believe that is the case. Everything beyond music and videos (cinematics) are within .arc files.

[character_edit_select.arc - 3.9 MB]
https://mega.nz/#!FtRXULqL!q_TM3mFCsIVC ... RGjjjjGX9g

[menu.arc - 36 KB]
https://mega.nz/#!loxUFTKY!PeWYSarH_EAV ... ebj-HvTG2c

[DDO.exe - 56.7 MB]
https://mega.nz/#!Y9IGjSjC!20Nnumsum6bC ... 46Y9AJAwlI

[ddo_launcher.exe - 31.3 MB]
https://mega.nz/#!to43BQQB!kXnAKrIKYdte ... BXB795PrsQ
SaikaDarkmoon
Posts: 1
Joined: Sun Nov 06, 2016 9:18 pm

Re: Dragons Dogma Online

Post by SaikaDarkmoon »

Hi I don't know what blowfish is or any code really outside a little html and C++ but if there is anything I can do to help please let me know some guides or instructions on what to do etc,

I'd love to see more of the game translated and texture mods be a possibility.
chuatrum
Posts: 1
Joined: Sun Feb 04, 2018 4:16 am

Re: Dragons Dogma Online

Post by chuatrum »

Hi,
Not sure if anyone is still interested in decrypting this. Currently, the person who’s doing translation patch has gone cold for nearly 2 months. Here’s the github of the project in case you need:
https://github.com/riftcrystal/DDON-Translation
Game files are included in the release section.
I know this is a niche game and does not gather a lot of interest but we really need some helps to make the game’s menu at least translated and up to date so any way to decrypt the files (and recompile it) would be greatly appreciated
vladantd
Posts: 1
Joined: Wed Aug 01, 2018 12:24 pm

Re: Dragons Dogma Online

Post by vladantd »

Has anyone had any luck with this maybe?