Gyakuten Sayban 5, Phoenix Wright Dual destinies, GMD files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
david_keen
Posts: 5
Joined: Sun Jul 05, 2015 4:48 pm

Gyakuten Sayban 5, Phoenix Wright Dual destinies, GMD files

Post by david_keen »

Hello, i am trying to extract the text of this files, but i am stuck without know what to do.

i already used hex editor to see the content, that looks similar to ARC files (just in the headers).

GMD

Code: Select all

GMD...........05............d...........kokoro_00.....p..)....z..).......).......).......).......).......).......).......).......)TEXT_0_00.TEXT_0_01.TEXT_0_02.TEXT_0_03.TEXT_0_04.TEXT_1_00.TEXT_1_01.TEXT_1_02.TEXT_1_03.TEXT_1_04.\yk6#/rnhn7*>k,:%S.ul.+3?-,;lb|sc6../xgu)mv:<zkzl~b'#2..?ydt/jhxgyu#!!(..:7n.8a{~9lyl<dfxe&.[el4isj8/xch}..n.2mrmp*{AU+3?-,1/'j{~{op...,jub)78"Ue:$'9=i.z....-z`jns?k/`gev~ 8<,:..pu*:g.?bb1{by4dz.P/bc('47d<}wscr$6#*l{5...F-}fbycz{`&t|t;CU2`a.~Mu;>x3kbc1|afc%.E?i`tc)S7-0gnp+9a!l>|rf!../yaq+~h7m/qcgn7!9t,.B~s4?.x|?~xp}yeqo..z/F&r{sg>:v#...l0".yf}o`t/~}uyhb>..&&):7n.tcxg7j2l0e3rh"...@4.th/hgr..:^n(sq4o1j0l9da1#".....Iisz{gch)[g!3~m4h?i0AU..?-m.k-{qx.r?k/kc(.


ARC

Code: Select all

ARC.........msg\kokoro_00_eng.................................................+$.......@....UI\3_mg\32_kokoro\tex\image00_flash_GSM_NOMIP....................].$=E.....@....UI\3_mg\32_kokoro\tex\image00_00_BM_NOMIP........................].$\......@....UI\3_mg\32_kokoro\tex\image00_01_BM_NOMIP........................].$.......@Tq..UI\3_mg\32_kokoro\tex\image00_02_BM_NOMIP........................].$W......@fC..UI\3_mg\32_kokoro\kokoro_image00..................................."....0..@.4..UI\0_system\00_font\kokoro\font_kokoro00_00_ID_HQ................].$.B.....@?T..UI\0_system\00_font\kokoro\font_kokoro00......... (at this point is totally different)


i try with "ARCtool" ARCtool can transform the GMDs of Dragon dogma, but with my gmds says that "texts" (for example TEXT_0_00) are variables but the rest of code.

Code: Select all

.\yk6#/rnhn7*>k,:%S.ul.+3?-,;lb|sc6../xgu)mv:<zkzl~b'#2..?ydt/jhxgyu#!!(..:7n.8a{~9lyl<dfxe&.[el4isj8/xch}..n.2mrmp*{AU+3?-,1/'j{~{op...,jub)78"Ue:$'9=i.z....-z`jns?k/`gev~ 8<,:..pu*:g.?bb1{by4dz.P/bc('47d<}wscr$6#*l{5...F-}fbycz{`&t|t;CU2`a.~Mu;>x3kbc1|afc%.E?i`tc)S7-0gnp+9a!l>|rf!../yaq+~h7m/qcgn7!9t,.B~s4?.x|?~xp}yeqo..z/F&r{sg>:v#...l0".yf}o`t/~}uyhb>..&&):7n.tcxg7j2l0e3rh"...@4.th/hgr..:^n(sq4o1j0l9da1#".....Iisz{gch)[g!3~m4h?i0AU..?-m.k-{qx.r?k/kc(.


dont know what is it, i try using quick bms, using the comtype_scan2.bms, and could have.
- COMP_RLE3
- COMP_TDCB_silence
- COMP_COPY
- COMP_ZLIB_NOERROR
- COMP_DEFLATE_NOERROR
- COMP_LZP
- COMP_BPE_ALT1

but now i dont know what i should do or how i could write the BSM script, i tryied some scripts but dont works.

P.D.: sorry for my english.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Gyakuten Sayban 5, Phoenix Wright Dual destinies, GMD files

Post by aluigi »

Try to upload some samples to check.

In the meantime, being a Capcom game it's possible that this script works for ARC:
http://aluigi.org/papers/bms/dmc4.bms
david_keen
Posts: 5
Joined: Sun Jul 05, 2015 4:48 pm

Re: Gyakuten Sayban 5, Phoenix Wright Dual destinies, GMD files

Post by david_keen »

aluigi wrote:Try to upload some samples to check.

In the meantime, being a Capcom game it's possible that this script works for ARC:
http://aluigi.org/papers/bms/dmc4.bms


i dont have problems with arcs, i just talked about then because the header looks like similar, i uploaded some files that i think could be used for examples.

https://mega.nz/#F!p4E0xawR!QADVQw45XDGZgySGQlQEAw

every kokoro_(name, example 01)_eng.gmd, have been extract from 1 arc file with the same name with .arc the only txt, is the file that arctool make when i use -gmd

the arcs have inside, 1 msg folder with 1 gmd, 1 UI folder with mg and system, that have tex file and other objetcs or models.

there are some others gmd, that i can find in the script folder.

in script folder:
- is the file ScriptReadFlgTbl.prp
- the folder _output with the files _sce(number)_c(number)_(number)_eng.gmd

i uploaded all maybe knowing how works scripread can be solved, or if we could find any way to at least decrypt a little of the GMDs files.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Gyakuten Sayban 5, Phoenix Wright Dual destinies, GMD files

Post by aluigi »

So basically your request is about the obfuscation used on the strings.
Now I understand.

Maybe someone else has already worked on this stuff, let's wait if there are updates.
david_keen
Posts: 5
Joined: Sun Jul 05, 2015 4:48 pm

Re: Gyakuten Sayban 5, Phoenix Wright Dual destinies, GMD files

Post by david_keen »

i find 1 tool for ios version, that extract the gmd but i cant run it and i dont know python, could anyone read it, and tell me what to do, to try it?

https://github.com/wmltogether/Phoenix- ... -Mod-Tools

is just the modules for extract gmd, i already have the arcs extracted.
david_keen
Posts: 5
Joined: Sun Jul 05, 2015 4:48 pm

Re: Gyakuten Sayban 5, Phoenix Wright Dual destinies, GMD files

Post by david_keen »

i already use the tool with iOS version, in iOS version, the .arcs are encrypted but the gmds are in plain text.

iOS

Code: Select all

GMD.........................$...".......DetectiveMemo......N.I.....N.I.....N.I.....N.ISUMMARY_00.CAP_DEF.CAP_VIC.CAP_MEMO.Case Brief.Defendant.Victim.Notes.


3ds

Code: Select all

GMD..........s.4............$...".......DetectiveMemo......=.).....=.).....>.).....>.)SUMMARY_00.CAP_DEF.CAP_VIC.CAP_MEMO.H}t?/Mtol|..:tgzo?j!L.bpkda.Ab}qx.


the tool use blowfish and zlib decode, dont know if someone could with that info, help to know how to decrypt the files

and also if really use blowfish how could be that files have the same lenght?, when i try to use blowfish the strings are always longer or shorter.

Edit: The mega folder have already some gmd and arc files from ios an 3ds, and if anyone need anything more, just ask it
david_keen
Posts: 5
Joined: Sun Jul 05, 2015 4:48 pm

Re: Gyakuten Sayban 5, Phoenix Wright Dual destinies, GMD files

Post by david_keen »

Finally done.

Sorry for the triple post, but finally with the help of skye we know how to get the files from the gmds, to do it need to do a xor with 2 strings, both strings was in code.bin searching for gmds they appears.

Then she write a tool for extract -e and insert the gmds.

http://www.mediafire.com/download/8nccz ... 9p/gmd.zip

that link have the executable and the source code in c#

that extract the file and make a .txt then u can write the .txt with -i, (opcional -encoding for say what character set https://msdn.microsoft.com/en-us/librar ... 10%29.aspx)

now everyone can translate the english version for Gateway.