Shan Gui: Definitive Edition *.rpa [REQUEST]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
huehuehue
Posts: 36
Joined: Tue Aug 26, 2014 7:33 am

Shan Gui: Definitive Edition *.rpa [REQUEST]

Post by huehuehue »

i tried the script for renpy here and it seems not working.

sample file:
https://mega.nz/file/J0czXCCD#3TJdhsD17 ... 7g-4D3Lu7c
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shan Gui: Definitive Edition *.rpa [REQUEST]

Post by aluigi »

Just updated the nopython script for handling the lack of MARK opcode:
http://aluigi.org/bms/rpa_renpy_nopython.bms
huehuehue
Posts: 36
Joined: Tue Aug 26, 2014 7:33 am

Re: Shan Gui: Definitive Edition *.rpa [REQUEST]

Post by huehuehue »

tried it and the result was:

Image

only the one showed in result extracted with only 73 bytes and the rest was not extracted.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Shan Gui: Definitive Edition *.rpa [REQUEST]

Post by aluigi »

Yeah but the problem is that the file you provided is out of the standard and has an additional index table not referenced anywhere.

The format of RPA is simple, there is the magic string "RPA-3.0" followed by the offset of the table and the key.
The index is completely and correctly read by the script (pickle.bms).

Then there is another index at offset 0x00271bf5 without any offset or other information for locating it, therefore I have no way to go forward.

Example of the first bytes with the duplicate "Made with Ren'Py":

Code: Select all

52 50 41 2d 33 2e 30 20 30 30 30 30 30 30 30 30   RPA-3.0 00000000
30 30 32 37 31 65 33 35 20 34 32 34 32 34 32 34   00271e35 4242424
32 0a 4d 61 64 65 20 77 69 74 68 20 52 65 6e 27   2.Made with Ren'
50 79 2e 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49   Py..PNG........I
48 44 52 00 00 00 01 00 00 00 01 01 00 00 00 00   HDR.............
37 6e f9 24 00 00 00 10 49 44 41 54 78 da 62 f8   7n.$....IDATx.b.
94 8b 76 45 dc 3e 04 37 00 00 00 00 59 4e 8d 22   ..vE.>.7....YN."
00 00 00 00 49 45 4e 44 ae 42 60 82 4d 61 64 65   ....IEND.B`.Made
20 77 69 74 68 20 52 65 6e 27 50 79 2e 42 67 6d    with Ren'Py.Bgm
75 ab 04 71 72 50 13 21 21 e2 22 0d 25 12 26 a9   u..qrP.!!.".%.&.
2b d2 22 23 20 15 25 9c 2f 28 29 a4 2f 14 20 21   +."# .%./()./. !
22 c2 24 23 22 17 20 21 22 b2 22 5b f8 83 7f f9   ".$#". !"."[....