{"type": "func", "start": 10478840, "end": 10478940, "name": "EC_KEY_oct2priv", "pseudocode": "// \n// EC_KEY_oct2priv from 0x9fe4f8 to 0x9fe55c (100 bytes)\n// \n// 2 xrefs:\n// > d2i_ECPrivateKey @ 0x9fc0e0\n// > <???> @ 0x7af9c\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_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 0x9fe4f8 to 0x9fe55c (100 bytes)\n; \n; 2 xrefs:\n; > d2i_ECPrivateKey @ 0x9fc0e0\n; > <???> @ 0x7af9c\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, 0x9fe4f8\nCMP             R3, #0                                                 ; +0x4, 0x9fe4fc\nBEQ             loc_9FE520                                             ; +0x8, 0x9fe500\nLDR             R3, [R3]                                               ; +0xc, 0x9fe504\nCMP             R3, #0                                                 ; +0x10, 0x9fe508\nBEQ             loc_9FE520                                             ; +0x14, 0x9fe50c\nLDR             R3, [R3,#0xA4]                                         ; +0x18, 0x9fe510\nCMP             R3, #0                                                 ; +0x1c, 0x9fe514\nBEQ             loc_9FE528                                             ; +0x20, 0x9fe518\nBX              R3                                                     ; +0x24, 0x9fe51c\nMOV             R0, #0                                                 ; +0x28, 0x9fe520\nBX              LR                                                     ; +0x2c, 0x9fe524\nPUSH            {LR}                                                   ; +0x30, 0x9fe528\nLDR             R3, =0x24E                                             ; +0x34, 0x9fe52c\nSUB             SP, SP, #0xC                                           ; +0x38, 0x9fe530\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x3c, 0x9fe534\nLDR             R3, =(aCryptoEcEcKeyC - 0x9FE550); \"crypto/ec/ec_key.c\" ; +0x40, 0x9fe538\nMOV             R0, #0x10                                              ; +0x44, 0x9fe53c\nMOV             R1, #0xFF                                              ; +0x48, 0x9fe540\nMOV             R2, #0x42 ; 'B'                                        ; +0x4c, 0x9fe544\nADD             R3, PC, R3; \"crypto/ec/ec_key.c\"                       ; +0x50, 0x9fe548\nBL              ERR_put_error                                          ; +0x54, 0x9fe54c\nMOV             R0, #0                                                 ; +0x58, 0x9fe550\nADD             SP, SP, #0xC                                           ; +0x5c, 0x9fe554\nPOP             {PC}                                                   ; +0x60, 0x9fe558", "xrefs": ["d2i_ECPrivateKey @ 0x9fc0e0", "<???> @ 0x7af9c"], "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"}