kgsws wrote:Check PRX decrypter source code.
I actually started doing that in the meantime. It looks like
DecryptPRX2 is what I want, but I don't know how to determine the tag info for a PRX whose tag isn't in PRXdecrypter's list, specifically the "key" used to initialize tmp2:
- Code: Select all
int i, j;
u8 *p = tmp2+0x14;
for (i = 0; i < 9; i++) {
for (j = 0; j < 0x10; j++) {
p[(i << 4) + j] = pti->key[j];
}
p[(i << 4)] = i;
}
if (Scramble((u32 *)tmp2, 0x90, pti->code) < 0) {
(I think there are few enough Scramble codes / keyseeds that I can just try them all.)
For example, one of those I'm testing with has the tag 0xc0cb167c. Where can I find the init key that goes with it? Is there some way to derive it, or will I have to brute-force it? (I hope not!)
EDIT: Hmm, never mind that last part... looks like it was one of the "old-style" PRXs that uses
DecryptPRX1.
