N
N
nnGot5832022-04-10 16:28:46
ARM
nnGot583, 2022-04-10 16:28:46

Reverse engineering. Modifying the Popup panel?

My task was to change the values ​​to 20 (on the screenshot), but the best I could do was just remove them...
Screenshot:
6252d88ce59e3414606672.jpeg
I found a piece of disassembled code where, in my opinion, the values ​​I need are exactly:

;-- func. 0118eab0:
0x0118eab0 sub sp, sp, 0x50
0x0118eab4 stp x24, x23, [sp, 0x10]
0x0118eab8 stp x22, x21, [sp, 0x20]
0x0118eabc stp x20, x19, [sp, 0x30]
x2 ,eac0 , 0x40]
0x0118eac4 add x29, sp, 0x40
0x0118eac8 mov x19, x0
0x0118eacc adrp x20, 0x2c0e000
0x0118ead0 ldrb w8, [x20, 0xa1f]
0x0118ead4 tbnz w8, 0eaf0x
0x0118ead8 adrp x8, 0x245f000
0x0118eadc nop
0x0118eae0 ldr w0, [x8, AVAssetExportPresetPassthrough] ; 0x490
0x0118eae4 bl func.00ce5d5c ; sym.func.00ce5d5c
0x0118eae8 movz w8, 0x1
0x0118eaec strb w8, [x20, 0xa1f]
0x0118eaf0 str wzr, [sp, 8]
0x0118eaf4 str xzr, [sp]
0x0118eaf8 mov x0, x19
0x0118eafc movz x1, 0
0x0118eb00 bl func.011071bc ; sym.func.011071bc
0x0118eb04 ldr x8, [x19, 0x88]
0x0118eb08 cbz x8, 0x118ec44
0x0118eb0c ldur x21, [x8, 0x2c]
0x0118eb10 ldr w20, [x8, 0x34]
0x0112
0x0118eb18 ldr w22, [x8, 0x28]
0x0118eb1c adrp x24, 0x2da7000
0x0118eb20 add x24, x24, 0x3c8
0x0118eb24 ldr x0, [x24]
0x0118eb28 ldrb w8, [x0, 0x12f]
0x0118eb2c tbz w8, 1, 0x118eb3c
0x0118eb30 ldr w8, [x0 , 0xe0]
0x0118eb34 cbnz w8, 0x118eb3c
0x0118eb38 bl func.00ce5e64 ; sym.func.00ce5e64
0x0118eb3c mov x0,
x21 0x0118eb40 mov x1, x20
0x0118eb44 mov x2, x23
0x0118eb48 mov x3, x22
0x0118eb4c movz x4, 0
0x0118eb50 bl func.013d4238 ; sym.func.013d4238
0x0118eb54 ldr x8, [x24]
0x0118eb58 ldr x8, [x8, 0xb8] 0x0118eb5c ldur
x2, [x8, 0xc] 0x0118eb60
ldr w3, [x8, 0x14 ] sym.func.013d2ae0 0x0118eb70 str x0, [sp] 0x0118eb74 mov x21, sp 0x0118eb78 str w1, [sp, 8] 0x0118eb7c ldr x20, [x19, 0x98] 0x0118eb80 orr x0, x21, 4 0x0118eb8eb80 .0220d5ec ; sym.func.0220d5ec 0x0118eb8c cbz x20, 0x118ec44 0x0118eb90 mov x1, x0 0x0118eb94 mov x0, x20
0x0118eb98 movz x2, 0
0x0118eb9c bl func.012a33b8 ; sym.func.012a33b8
0x0118eba0 ldr x8, [x19, 0x88]
0x0118eba4 cbz x8, 0x118ec44
0x0118eba8 add x20, x21, 8
0x0118ebac ldr w8, [x8, 0x1c]
0x0118ebb0 ldr x21, [x19, 0x90]
0x0118ebb4 cmp w8, 1
0x0118ebb8 b.hi 0x118ebe8
0x0118ebbc mov x0, sp
0x0118ebc0 movz x1, 0
0x0118ebc4 bl func.0220d5ec ; sym.func.0220d5ec
0x0118ebc8 cbz x21, 0x118ec44
0x0118ebcc mov x1, x0
0x0118ebd0 mov x0,
x21 0x0118ebd4 movz x2, 0
0x0118ebd8 bl func.012a33b8 ; sym.func.012a33b8
0x0118ebdc ldr x19, [x19, 0xa0]
0x0118ebe0 mov x0, x20
0x0118ebe4 b 0x118ec10
0x0118ebe8 mov x0, x20
0x0118ebec movz x1, 0
0x0118ebf02; fundec5ec02; sym.func.0220d5ec
0x0118ebf4 cbz x21, 0x118ec44
0x0118ebf8 mov x1, x0
0x0118ebfc mov x0,
x21 0x0118ec00 movz x2, 0
0x0118ec04 bl func.012a33b8 ; sym.func.012a33b8
0x0118ec08 ldr x19, [x19, 0xa0]
0x0118ec0c mov x0, sp
0x0118ec10 movz x1, 0
0x0118ec14 bl func.0220d5ec ; sym.func.0220d5ec
0x0118ec18 cbz x19, 0x118ec44
0x0118ec1c mov x1, x0
0x0118ec20 mov x0, x19
0x0118ec24 movz x2, 0
0x0118ec28 bl func.012a33b8 ; sym.func.012a33b8
0x0118ec2c ldp x29, x30, [sp, 0x40]
0x0118ec30 ldp x20, x19, [sp, 0x30]
0x0118ec34 ldp x22, x21, [sp, 0x20]
0x0118ec38 ldp x24, x18x01, [
0x018x01 ] add sp, sp, 0x50
0x0118ec40 ret
0x0118ec44 bl func.00ce5ef4 ; sym.func.00ce5ef4

If you use nop on all mov x1, x0 , all values ​​will be lost:

6252da3f77d2f375606330.jpeg

I'm not good at reverse engineering, so if you can help me, I'd be very grateful.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question