{"type": "func", "start": 8296424, "end": 8296524, "name": "EC_KEY_priv2oct", "pseudocode": "// \n// EC_KEY_priv2oct from 0x7e97e8 to 0x7e984c (100 bytes)\n// \n// 3 xrefs:\n// > EC_KEY_priv2buf @ 0x7e9a48\n// > EC_KEY_priv2buf @ 0x7e9a84\n// > <???> @ 0x6182c\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_priv2oct(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 + 160);\n  if ( v3 )\n    return v3();\n  ERR_put_error(16, 256, 66, \"crypto/ec/ec_key.c\", 555);\n  return 0;\n}", "assembly": "; \n; EC_KEY_priv2oct from 0x7e97e8 to 0x7e984c (100 bytes)\n; \n; 3 xrefs:\n; > EC_KEY_priv2buf @ 0x7e9a48\n; > EC_KEY_priv2buf @ 0x7e9a84\n; > <???> @ 0x6182c\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, 0x7e97e8\nCMP             R3, #0                                                 ; +0x4, 0x7e97ec\nBEQ             loc_7E9810                                             ; +0x8, 0x7e97f0\nLDR             R3, [R3]                                               ; +0xc, 0x7e97f4\nCMP             R3, #0                                                 ; +0x10, 0x7e97f8\nBEQ             loc_7E9810                                             ; +0x14, 0x7e97fc\nLDR             R3, [R3,#0xA0]                                         ; +0x18, 0x7e9800\nCMP             R3, #0                                                 ; +0x1c, 0x7e9804\nBEQ             loc_7E9818                                             ; +0x20, 0x7e9808\nBX              R3                                                     ; +0x24, 0x7e980c\nMOV             R0, #0                                                 ; +0x28, 0x7e9810\nBX              LR                                                     ; +0x2c, 0x7e9814\nPUSH            {LR}                                                   ; +0x30, 0x7e9818\nLDR             R3, =0x22B                                             ; +0x34, 0x7e981c\nSUB             SP, SP, #0xC                                           ; +0x38, 0x7e9820\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x3c, 0x7e9824\nLDR             R3, =(aCryptoEcEcKeyC - 0x7E9840); \"crypto/ec/ec_key.c\" ; +0x40, 0x7e9828\nMOV             R0, #0x10                                              ; +0x44, 0x7e982c\nMOV             R1, #0x100                                             ; +0x48, 0x7e9830\nMOV             R2, #0x42 ; 'B'                                        ; +0x4c, 0x7e9834\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x50, 0x7e9838\nBL              ERR_put_error                                          ; +0x54, 0x7e983c\nMOV             R0, #0                                                 ; +0x58, 0x7e9840\nADD             SP, SP, #0xC                                           ; +0x5c, 0x7e9844\nPOP             {PC}                                                   ; +0x60, 0x7e9848", "xrefs": ["EC_KEY_priv2buf @ 0x7e9a48", "EC_KEY_priv2buf @ 0x7e9a84", "<???> @ 0x6182c"], "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"}