Skip to content
Guest Big Announcement

How to freeze values in Armv7

Featured Replies

Hello ppl

For example i am hacking an armv7 binary. What i need is that i move a value to a function and make it stay that way aka make it not decrease. For example i do 

MOV R0,#5 

i want the value to remain 5 and not decrease down to 4,3,2,1 

What is the way to do that? 

Pls show me da wae

Solved by Guest

2 minutes ago, TheArmKing said:

Hello ppl

For example i am hacking an armv7 binary. What i need is that i move a value to a function and make it stay that way aka make it not decrease. For example i do 

MOV R0,#5 

i want the value to remain 5 and not decrease down to 4,3,2,1 

What is the way to do that? 

Pls show me da wae

Replace the SUB instructon with mov r0, #5

  • Solution
7 hours ago, TheArmKing said:

Even a sub function like

SUB SP,SP,0x#10 

?

No, SP is the stack pointer never mess with it, modify sub instructions were registers are r0-r12

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.