{"type": "func", "start": 8296696, "end": 8296796, "name": "EC_KEY_oct2priv", "pseudocode": "// \n// EC_KEY_oct2priv from 0x7e98f8 to 0x7e995c (100 bytes)\n// \n// 2 xrefs:\n// > d2i_ECPrivateKey @ 0x7e74e0\n// > <???> @ 0x6151c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall EC_KEY_oct2priv(int a1)\n{\n  int *v1; // r3\n  int v2; // r3\n  int (*v3)(void); // r3\n\n  v1 = *(int **)(a1 + 12);\n  if ( !v1 )\n    return 0;\n  v2 = *v1;\n  if ( !v2 )\n    return 0;\n  v3 = *(int (**)(void))(v2 + 164);\n  if ( v3 )\n    return v3();\n  ERR_put_error(16, 255, 66, \"crypto/ec/ec_key.c\", 590);\n  return 0;\n}", "assembly": "; \n; EC_KEY_oct2priv from 0x7e98f8 to 0x7e995c (100 bytes)\n; \n; 2 xrefs:\n; > d2i_ECPrivateKey @ 0x7e74e0\n; > <???> @ 0x6151c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDR             R3, [R0,#0xC]                                          ; +0x0, 0x7e98f8\nCMP             R3, #0                                                 ; +0x4, 0x7e98fc\nBEQ             loc_7E9920                                             ; +0x8, 0x7e9900\nLDR             R3, [R3]                                               ; +0xc, 0x7e9904\nCMP             R3, #0                                                 ; +0x10, 0x7e9908\nBEQ             loc_7E9920                                             ; +0x14, 0x7e990c\nLDR             R3, [R3,#0xA4]                                         ; +0x18, 0x7e9910\nCMP             R3, #0                                                 ; +0x1c, 0x7e9914\nBEQ             loc_7E9928                                             ; +0x20, 0x7e9918\nBX              R3                                                     ; +0x24, 0x7e991c\nMOV             R0, #0                                                 ; +0x28, 0x7e9920\nBX              LR                                                     ; +0x2c, 0x7e9924\nPUSH            {LR}                                                   ; +0x30, 0x7e9928\nLDR             R3, =0x24E                                             ; +0x34, 0x7e992c\nSUB             SP, SP, #0xC                                           ; +0x38, 0x7e9930\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x3c, 0x7e9934\nLDR             R3, =(aCryptoEcEcKeyC - 0x7E9950); \"crypto/ec/ec_key.c\" ; +0x40, 0x7e9938\nMOV             R0, #0x10                                              ; +0x44, 0x7e993c\nMOV             R1, #0xFF                                              ; +0x48, 0x7e9940\nMOV             R2, #0x42 ; 'B'                                        ; +0x4c, 0x7e9944\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x50, 0x7e9948\nBL              ERR_put_error                                          ; +0x54, 0x7e994c\nMOV             R0, #0                                                 ; +0x58, 0x7e9950\nADD             SP, SP, #0xC                                           ; +0x5c, 0x7e9954\nPOP             {PC}                                                   ; +0x60, 0x7e9958", "xrefs": ["d2i_ECPrivateKey @ 0x7e74e0", "<???> @ 0x6151c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}