; ; ECDH_compute_key from 0x7e9d54 to 0x7e9e64 (272 bytes) ; ; 3 xrefs: ; > sub_88B1F4 @ 0x88b2d8 ; > sub_88B1F4 @ 0x88b388 ; > @ 0x618cc ; ; 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 ; LDR R12, [R3] ; +0x0, 0x7e9d54 PUSH {R4-R6,LR} ; +0x4, 0x7e9d58 LDR R5, [R12,#0x24] ; +0x8, 0x7e9d5c MOV R4, #0 ; +0xc, 0x7e9d60 SUB SP, SP, #0x18 ; +0x10, 0x7e9d64 CMP R5, R4 ; +0x14, 0x7e9d68 STR R1, [SP,#0x18+var_C] ; +0x18, 0x7e9d6c STR R4, [SP,#0x18+var_8] ; +0x1c, 0x7e9d70 BEQ loc_7E9E3C ; +0x20, 0x7e9d74 CMP R1, #0 ; +0x24, 0x7e9d78 BLT loc_7E9DE8 ; +0x28, 0x7e9d7c MOV R6, R0 ; +0x2c, 0x7e9d80 ADD R1, SP, #0x18+var_4 ; +0x30, 0x7e9d84 ADD R0, SP, #0x18+var_8 ; +0x34, 0x7e9d88 BLX R5 ; +0x38, 0x7e9d8c CMP R0, #0 ; +0x3c, 0x7e9d90 BEQ loc_7E9DE0 ; +0x40, 0x7e9d94 LDR R3, [SP,#0x18+arg_0] ; +0x44, 0x7e9d98 CMP R3, #0 ; +0x48, 0x7e9d9c BEQ loc_7E9E14 ; +0x4c, 0x7e9da0 MOV R12, R3 ; +0x50, 0x7e9da4 MOV R2, R6 ; +0x54, 0x7e9da8 LDR R0, [SP,#0x18+var_8] ; +0x58, 0x7e9dac LDR R1, [SP,#0x18+var_4] ; +0x5c, 0x7e9db0 ADD R3, SP, #0x18+var_C ; +0x60, 0x7e9db4 BLX R12 ; +0x64, 0x7e9db8 LDR R5, [SP,#0x18+var_8] ; +0x68, 0x7e9dbc LDR R4, [SP,#0x18+var_4] ; +0x6c, 0x7e9dc0 LDR R2, =(aCryptoEcEcKmet - 0x7E9DD8); "crypto/ec/ec_kmeth.c" ; +0x70, 0x7e9dc4 MOV R0, R5 ; +0x74, 0x7e9dc8 MOV R1, R4 ; +0x78, 0x7e9dcc ADD R2, PC, R2; "crypto/ec/ec_kmeth.c" ; +0x7c, 0x7e9dd0 MOV R3, #0x97 ; +0x80, 0x7e9dd4 BL CRYPTO_clear_free ; +0x84, 0x7e9dd8 LDR R0, [SP,#0x18+var_C] ; +0x88, 0x7e9ddc ADD SP, SP, #0x18 ; +0x8c, 0x7e9de0 POP {R4-R6,PC} ; +0x90, 0x7e9de4 MOV R3, #0x8B ; +0x94, 0x7e9de8 STR R3, [SP,#0x18+var_18] ; +0x98, 0x7e9dec LDR R3, =(aCryptoEcEcKmet - 0x7E9E08); "crypto/ec/ec_kmeth.c" ; +0x9c, 0x7e9df0 MOV R0, #0x10 ; +0xa0, 0x7e9df4 MOV R1, #0xF6 ; +0xa4, 0x7e9df8 MOV R2, #0xA1 ; +0xa8, 0x7e9dfc ADD R3, PC, R3; "crypto/ec/ec_kmeth.c" ; +0xac, 0x7e9e00 BL ERR_put_error ; +0xb0, 0x7e9e04 MOV R0, R4 ; +0xb4, 0x7e9e08 ADD SP, SP, #0x18 ; +0xb8, 0x7e9e0c POP {R4-R6,PC} ; +0xbc, 0x7e9e10 LDR R2, [SP,#0x18+var_C] ; +0xc0, 0x7e9e14 LDR R4, [SP,#0x18+var_4] ; +0xc4, 0x7e9e18 LDR R5, [SP,#0x18+var_8] ; +0xc8, 0x7e9e1c CMP R2, R4 ; +0xcc, 0x7e9e20 MOVHI R2, R4; size_t ; +0xd0, 0x7e9e24 MOV R0, R6; void * ; +0xd4, 0x7e9e28 MOV R1, R5; void * ; +0xd8, 0x7e9e2c STRHI R4, [SP,#0x18+var_C] ; +0xdc, 0x7e9e30 BL memcpy ; +0xe0, 0x7e9e34 B loc_7E9DC4 ; +0xe4, 0x7e9e38 MOV R3, #0x87 ; +0xe8, 0x7e9e3c STR R3, [SP,#0x18+var_18] ; +0xec, 0x7e9e40 LDR R3, =(aCryptoEcEcKmet - 0x7E9E5C); "crypto/ec/ec_kmeth.c" ; +0xf0, 0x7e9e44 MOV R0, #0x10 ; +0xf4, 0x7e9e48 MOV R1, #0xF6 ; +0xf8, 0x7e9e4c MOV R2, #0x98 ; +0xfc, 0x7e9e50 ADD R3, PC, R3; "crypto/ec/ec_kmeth.c" ; +0x100, 0x7e9e54 BL ERR_put_error ; +0x104, 0x7e9e58 MOV R0, R5 ; +0x108, 0x7e9e5c B loc_7E9DE0 ; +0x10c, 0x7e9e60