Wednesday, 7 April 2021

I need help converting an unsigned int into a signed int in Ida Pro (Android ARM binary)

I am using Nox Emulator since I do not have an Android device (Nox is Android version 7) I've tried to make a free modified ipa and a free modified android apk for the app Kim Kardashian:Hollywood (the ipa is done as of this moment but I need a lot of help with the android one) Loaded the binary of the APK in Ida Pro and wanted to get to the offset where I can change the cost of an item in the game (here is the source I got it from https://ift.tt/2RiflAo) I've been trying to modify the offset of function "CustomizeUI_GetOptionCost" I tried doing a negative number then I realized it is an unsigned integer *sigh* Here is what the offset looks like below for those who are wondering: ; CustomizeUI_GetOptionCost(SSceneManager *, SCustomCharOption const&, unsigned int, unsigned int *, int *) j__Z25CustomizeUI_GetOptionCostP13SSceneManagerRK17SCustomCharOptionjPjPi ADRL R12, 0x69C0F8 LDR PC, [R12,#(_Z25CustomizeUI_GetOptionCostP13SSceneManagerRK17SCustomCharOptionjPjPi_ptr - 0x69C0F8)]! ; CustomizeUI_GetOptionCost(SSceneManager *,SCustomCharOption const&,uint,uint *,int *) ; End of function CustomizeUI_GetOptionCost(SSceneManager *,SCustomCharOption const&,uint,uint *,int *) So then I did some investigating ~ I xref to 0x69C0F8 and get this result from the first xref .text:005B14C0 MOV R3, R2 .text:005B14C2 MOV R2, R1 .text:005B14C4 MOV R1, R0 .text:005B14C6 LDR R0, =(strtoumax_ptr - 0x5B14CC) .text:005B14C8 ADD R0, PC ; strtoumax_ptr .text:005B14CA LDR R0, [R0] ; strtoumax .text:005B14CC B.W loc_5B13C8 .text:005B14CC ; --------------------------------------------------------------------------- .text:005B14D0 off_5B14D0 DCD strtoumax_ptr - 0x5B14CC NOPd the entirety of strtoumax_ptr and all the xrefs that contained it ~ noping it didn't help at all it made the cost of an item the maximum value of an unsigned integer which is interesting but not what I wanted at all I would like to make the cost of the items to a negative number instead (any negative number even -1) I really would like a helping hand for this ~ thanks in advance

from iOSGods RSS Feed https://ift.tt/3dNbzXl

No comments:

Post a Comment