{"type": "func", "start": 10478568, "end": 10478668, "name": "EC_KEY_priv2oct", "pseudocode": "// \n// EC_KEY_priv2oct from 0x9fe3e8 to 0x9fe44c (100 bytes)\n// \n// 3 xrefs:\n// > EC_KEY_priv2buf @ 0x9fe648\n// > EC_KEY_priv2buf @ 0x9fe684\n// > <???> @ 0x7b2ac\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:36 +0000\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 0x9fe3e8 to 0x9fe44c (100 bytes)\n; \n; 3 xrefs:\n; > EC_KEY_priv2buf @ 0x9fe648\n; > EC_KEY_priv2buf @ 0x9fe684\n; > <???> @ 0x7b2ac\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:36 +0000\n; \nLDR             R3, [R0,#0xC]                                          ; +0x0, 0x9fe3e8\nCMP             R3, #0                                                 ; +0x4, 0x9fe3ec\nBEQ             loc_9FE410                                             ; +0x8, 0x9fe3f0\nLDR             R3, [R3]                                               ; +0xc, 0x9fe3f4\nCMP             R3, #0                                                 ; +0x10, 0x9fe3f8\nBEQ             loc_9FE410                                             ; +0x14, 0x9fe3fc\nLDR             R3, [R3,#0xA0]                                         ; +0x18, 0x9fe400\nCMP             R3, #0                                                 ; +0x1c, 0x9fe404\nBEQ             loc_9FE418                                             ; +0x20, 0x9fe408\nBX              R3                                                     ; +0x24, 0x9fe40c\nMOV             R0, #0                                                 ; +0x28, 0x9fe410\nBX              LR                                                     ; +0x2c, 0x9fe414\nPUSH            {LR}                                                   ; +0x30, 0x9fe418\nLDR             R3, =0x22B                                             ; +0x34, 0x9fe41c\nSUB             SP, SP, #0xC                                           ; +0x38, 0x9fe420\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x3c, 0x9fe424\nLDR             R3, =(aCryptoEcEcKeyC - 0x9FE440); \"crypto/ec/ec_key.c\" ; +0x40, 0x9fe428\nMOV             R0, #0x10                                              ; +0x44, 0x9fe42c\nMOV             R1, #0x100                                             ; +0x48, 0x9fe430\nMOV             R2, #0x42 ; 'B'                                        ; +0x4c, 0x9fe434\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x50, 0x9fe438\nBL              ERR_put_error                                          ; +0x54, 0x9fe43c\nMOV             R0, #0                                                 ; +0x58, 0x9fe440\nADD             SP, SP, #0xC                                           ; +0x5c, 0x9fe444\nPOP             {PC}                                                   ; +0x60, 0x9fe448", "xrefs": ["EC_KEY_priv2buf @ 0x9fe648", "EC_KEY_priv2buf @ 0x9fe684", "<???> @ 0x7b2ac"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}