Update 1/6:New version,faster and smaller
Download win32 exe:View attachment desklunvr.7z
Download source codeView attachment XOR.7z
------------------------------------------
since sill not find key to decrypt rom,
i'am try to port that code to c++,so it can be run on windows
1,de-compile code to asm code by ida pro
get code like this
2,change asm code to c++ code
and define
3,run c++ code on windows
by now,step 2 is finish,and can run by vc 6,
but some thing wrong in code convert,the result not right
still study asm syntax....
Download win32 exe:View attachment desklunvr.7z
Download source codeView attachment XOR.7z
------------------------------------------
since sill not find key to decrypt rom,
i'am try to port that code to c++,so it can be run on windows
1,de-compile code to asm code by ida pro
get code like this
Code:
.text:000224F6 SUB SP, SP, #0x5C
.text:000224F8 LDR R4, loc_228DC
.text:000224FA ADD R4, PC
.text:000224FC STR R0, [SP,#0xC]
.text:000224FE STR R1, [SP,#8]
.text:00022500 STR R2, [SP,#4]
2,change asm code to c++ code
Code:
/*224F6*/ SUB (SP, SP, 0x5C);
/*224F8*/ LDRx (R4, 0x228DC);
/*224FA*/ ADD (R4, 0x224FA+8+DLL);//PC,
/*224FC*/ STR (R0, SP,0xC);
/*224FE*/ STR (R1, SP,8);
/*22500*/ STR (R2, SP,4);
Code:
void SUB (u32 &a,u32 b,u32 c) {a=b-c;}
void LDRx (u32 &a,u32 b) {a=b;}
void ADD (u32 &a,u32 b) {a+=b;}
void STR (u32 a,u32 b,u32 c) {pu32 p=(pu32)(b+c);*p=a;}
3,run c++ code on windows
by now,step 2 is finish,and can run by vc 6,
but some thing wrong in code convert,the result not right
still study asm syntax....
Last edited: