Advertising (This ad goes away for registered users. You can Login or Register)

Reverse of TN HEN main function

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
jigsaw
Posts: 255
Joined: Sat Dec 18, 2010 12:49 pm

Re: Reverse of TN HEN main function

Post by jigsaw » Tue Feb 01, 2011 3:59 pm

@V thanks. fixed now.

Just finish all routines except sub_00002EB0, which has no reference at all.
Advertising

User avatar
FrEdDy
HBL Collaborator
Posts: 243
Joined: Mon Sep 27, 2010 7:08 pm
Contact:

Re: Reverse of TN HEN main function

Post by FrEdDy » Tue Feb 01, 2011 4:17 pm

In PartitionCheck_Patched,shouldn't sceIoLseek have only 3 arguments?
Advertising
https://github.com/freddy-156
<@n00b81> FREDDY CUTTIES

Valantin
Posts: 89
Joined: Mon Jan 03, 2011 3:11 pm

Re: Reverse of TN HEN main function

Post by Valantin » Tue Feb 01, 2011 4:49 pm

jigsaw wrote:@V thanks. fixed now.
I refere to systemctrlforuser
jigsaw wrote: Just finish all routines except sub_00002EB0, which has no reference at all.
Try to reverse tn-c systemctrl.prx probably is a uncomplited function for downgrade

jigsaw
Posts: 255
Joined: Sat Dec 18, 2010 12:49 pm

Re: Reverse of TN HEN main function

Post by jigsaw » Tue Feb 01, 2011 5:42 pm

@V fixed again. thanks. so I can forget sub_00002EB0 and try to run it...will do it later.

@F lseek is updated with more arguments. check iofilemgr.prx then u'll see

User avatar
FrEdDy
HBL Collaborator
Posts: 243
Joined: Mon Sep 27, 2010 7:08 pm
Contact:

Re: Reverse of TN HEN main function

Post by FrEdDy » Tue Feb 01, 2011 6:07 pm

jigsaw wrote:@V fixed again. thanks. so I can forget sub_00002EB0 and try to run it...will do it later.

@F lseek is updated with more arguments. check iofilemgr.prx then u'll see
Oh,I didn't knew that,thanks
https://github.com/freddy-156
<@n00b81> FREDDY CUTTIES

Draan
Posts: 72
Joined: Tue Dec 21, 2010 9:49 pm

Re: Reverse of TN HEN main function

Post by Draan » Tue Feb 01, 2011 6:51 pm

Bug, lines 956-958.

Code: Select all

r = hdr->comp_size;
memmove(buf, buf + 0x150, size);
 *compressed_size = size;
Corrected:

Code: Select all

r = hdr->comp_size;
memmove(buf, buf + 0x150, r);
 *compressed_size = r;
Not size provided by function, but gzip size from header :).

jigsaw
Posts: 255
Joined: Sat Dec 18, 2010 12:49 pm

Re: Reverse of TN HEN main function

Post by jigsaw » Tue Feb 01, 2011 7:15 pm

@D Yep thanks. fixed.

I've tried to cleaned up the code, remove as many as g_0000XXXX as possible, and find suitable names for all functions.

Now the question is how to use psp-packer. I applied "psp-packer.exe systemctrl.prx" but systemctrl.prx is not touched at all. Neither "psp-packer.exe systemctrl.prx output.data" works. :roll:
I'm not having Linux at hand so no way to debug psp-packer. Anybody has tried psp-packer on it?

User avatar
FrEdDy
HBL Collaborator
Posts: 243
Joined: Mon Sep 27, 2010 7:08 pm
Contact:

Re: Reverse of TN HEN main function

Post by FrEdDy » Tue Feb 01, 2011 7:18 pm

jigsaw wrote:@D Yep thanks. fixed.

I've tried to cleaned up the code, remove as many as g_0000XXXX as possible, and find suitable names for all functions.

Now the question is how to use psp-packer. I applied "psp-packer.exe systemctrl.prx" but systemctrl.prx is not touched at all. Neither "psp-packer.exe systemctrl.prx output.data" works. :roll:
I'm not having Linux at hand so no way to debug psp-packer. Anybody has tried psp-packer on it?
Works perfectly for me,on Linux.
https://github.com/freddy-156
<@n00b81> FREDDY CUTTIES

JJS
Big Beholder
Posts: 1416
Joined: Mon Sep 27, 2010 2:18 pm
Contact:

Re: Reverse of TN HEN main function

Post by JJS » Tue Feb 01, 2011 7:29 pm

jigsaw wrote:"psp-packer.exe systemctrl.prx"
Tried that on Windows without a problem, the file gets packed. Have you run psp-packer before? It requires cygz.dll which Windows should complain about if it is missing, but you never know I guess.

jigsaw
Posts: 255
Joined: Sat Dec 18, 2010 12:49 pm

Re: Reverse of TN HEN main function

Post by jigsaw » Tue Feb 01, 2011 7:47 pm

maybe I got a broken or mismatch psp-packer? Could F or J upload your psp-packer here? thanks!

Post Reply

Return to “Programming and Security”