Jump to content

5 posts in this topic

Recommended Posts

Posted (edited)

hi

 

how can i give the function high damage without breaking the whole function? i think i must mod ADDs but i'm not sure....

 

The game gives random number of damage

 

Note: name of the game are censored

LDR             R3, =(_GLOBAL_OFFSET_TABLE_ - 0x307460)
LDR             R2, =(g_db_ptr - 0x8CE914)
ADD             R3, PC, R3 ; _GLOBAL_OFFSET_TABLE_
STMFD           SP!, {R4-R8,LR}
SUB             SP, SP, #0x20
LDR             R7, [R3,R2] ; g_db
MOV             R5, R0
ADD             R6, SP, #0x38+var_34
LDR             R4, [R7]
BL              _ZNK7xxxxxxxxx8GetLevelEv ; xxxxxxxxx::GetLevel(void)
SUB             R1, R0, #1 ; unsigned int
ADD             R0, R4, #0x3AC ; this
BL              _ZNK12GSdbAccessor9GetRecordEj ; GSdbAccessor::GetRecord(uint)
MOV             R4, R0
MOV             R0, R5  ; this
BL              _ZNK7xxxxxxxxx11GetStrengthEv ; xxxxxxxxx::GetStrength(void)
ADD             R4, R4, R0
MOV             R0, R5  ; this
LDRB            R4, [R4,#-1]
BL              _ZNK7xxxxxxxx11GetStrengthEv ; xxxxxxxxx::GetStrength(void)
LDR             LR, =(unk_893C10 - 0x3074B4)
.ADD             R3, SP, #0x38+var_18
MOV             R12, R6
ADD             LR, PC, LR ; unk_893C10
CMP             R0, #6
SUBLS           R8, R0, #1
MOVHI           R8, #(off_8CE918+2 - 0x8CE914)
ADD             R8, R3, R8,LSL#2
LDMIA           LR!, {R0-R3}
STMIA           R12!, {R0-R3}
LDMIA           LR, {R0-R2}
STMIA           R12, {R0-R2}
LDR             R0, [R8,#-0x1C]
BL              _ZN14AppProtectData7GetDataENS_4SlotE ; AppProtectData::GetData(AppProtectData::Slot)
CMP             R4, R0
BGT             loc_307518
Updated by evildog1
Posted (edited)

MSHOOK it?

 

the function seems normal to me (un sub_x)

no i'm modding game on Android but i ask help here because they know more IDA hacking very well

Updated by evildog1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines