; ; CRYPTO_ocb128_copy_ctx from 0x817f24 to 0x817fa8 (132 bytes) ; ; 2 xrefs: ; > sub_7FDA8C @ 0x7fdb78 ; > @ 0x62cdc ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; PUSH {R3-R7,LR} ; +0x0, 0x817f24 MOV R7, R2 ; +0x4, 0x817f28 MOV R4, R1 ; +0x8, 0x817f2c MOV R2, #0xA8; size_t ; +0xc, 0x817f30 MOV R6, R3 ; +0x10, 0x817f34 MOV R5, R0 ; +0x14, 0x817f38 BL memcpy ; +0x18, 0x817f3c CMP R7, #0 ; +0x1c, 0x817f40 LDR R3, [R4,#0x40] ; +0x20, 0x817f44 STRNE R7, [R5,#8] ; +0x24, 0x817f48 CMP R6, #0 ; +0x28, 0x817f4c STRNE R6, [R5,#0xC] ; +0x2c, 0x817f50 CMP R3, #0 ; +0x30, 0x817f54 BEQ loc_817F9C ; +0x34, 0x817f58 LDR R0, [R4,#0x18] ; +0x38, 0x817f5c LDR R1, =(aCryptoModesOcb - 0x817F70); "crypto/modes/ocb128.c" ; +0x3c, 0x817f60 MOV R0, R0,LSL#4 ; +0x40, 0x817f64 ADD R1, PC, R1; "crypto/modes/ocb128.c" ; +0x44, 0x817f68 MOV R2, #0xD5 ; +0x48, 0x817f6c BL CRYPTO_malloc ; +0x4c, 0x817f70 CMP R0, #0 ; +0x50, 0x817f74 STR R0, [R5,#0x40] ; +0x54, 0x817f78 BEQ locret_817FA4 ; +0x58, 0x817f7c LDR R2, [R4,#0x14] ; +0x5c, 0x817f80 LDR R1, [R4,#0x40]; void * ; +0x60, 0x817f84 ADD R2, R2, #1 ; +0x64, 0x817f88 MOV R2, R2,LSL#4; size_t ; +0x68, 0x817f8c BL memcpy ; +0x6c, 0x817f90 MOV R0, #1 ; +0x70, 0x817f94 POP {R3-R7,PC} ; +0x74, 0x817f98 MOV R0, #1 ; +0x78, 0x817f9c POP {R3-R7,PC} ; +0x7c, 0x817fa0 POP {R3-R7,PC} ; +0x80, 0x817fa4