{"type": "func", "start": 8295292, "end": 8295428, "name": "EC_KEY_set_private_key", "pseudocode": "// \n// EC_KEY_set_private_key from 0x7e937c to 0x7e9404 (136 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6174c\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\nbool __fastcall EC_KEY_set_private_key(int a1, int a2)\n{\n  int *v2; // r12\n  int v3; // r12\n  int (*v4)(void); // r3\n  int (__fastcall *v7)(int, int); // r3\n  int v8; // r0\n\n  v2 = *(int **)(a1 + 12);\n  if ( !v2 )\n    return 0;\n  v3 = *v2;\n  if ( !v3 )\n    return 0;\n  v4 = *(int (**)(void))(v3 + 168);\n  if ( v4 )\n  {\n    if ( !v4() )\n      return 0;\n  }\n  v7 = *(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 24);\n  if ( v7 )\n  {\n    if ( !v7(a1, a2) )\n      return 0;\n  }\n  BN_clear_free(*(_BYTE **)(a1 + 20));\n  v8 = BN_dup(a2);\n  *(_DWORD *)(a1 + 20) = v8;\n  return v8 != 0;\n}", "assembly": "; \n; EC_KEY_set_private_key from 0x7e937c to 0x7e9404 (136 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6174c\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             R12, [R0,#0xC]                                         ; +0x0, 0x7e937c\nPUSH            {R3-R5,LR}                                             ; +0x4, 0x7e9380\nCMP             R12, #0                                                ; +0x8, 0x7e9384\nBEQ             loc_7E93FC                                             ; +0xc, 0x7e9388\nLDR             R12, [R12]                                             ; +0x10, 0x7e938c\nCMP             R12, #0                                                ; +0x14, 0x7e9390\nBEQ             loc_7E93FC                                             ; +0x18, 0x7e9394\nLDR             R3, [R12,#0xA8]                                        ; +0x1c, 0x7e9398\nMOV             R5, R1                                                 ; +0x20, 0x7e939c\nCMP             R3, #0                                                 ; +0x24, 0x7e93a0\nMOV             R4, R0                                                 ; +0x28, 0x7e93a4\nBEQ             loc_7E93B8                                             ; +0x2c, 0x7e93a8\nBLX             R3                                                     ; +0x30, 0x7e93ac\nCMP             R0, #0                                                 ; +0x34, 0x7e93b0\nBEQ             loc_7E93FC                                             ; +0x38, 0x7e93b4\nLDR             R3, [R4]                                               ; +0x3c, 0x7e93b8\nLDR             R3, [R3,#0x18]                                         ; +0x40, 0x7e93bc\nCMP             R3, #0                                                 ; +0x44, 0x7e93c0\nBEQ             loc_7E93DC                                             ; +0x48, 0x7e93c4\nMOV             R0, R4                                                 ; +0x4c, 0x7e93c8\nMOV             R1, R5                                                 ; +0x50, 0x7e93cc\nBLX             R3                                                     ; +0x54, 0x7e93d0\nCMP             R0, #0                                                 ; +0x58, 0x7e93d4\nBEQ             loc_7E93FC                                             ; +0x5c, 0x7e93d8\nLDR             R0, [R4,#0x14]                                         ; +0x60, 0x7e93dc\nBL              BN_clear_free                                          ; +0x64, 0x7e93e0\nMOV             R0, R5                                                 ; +0x68, 0x7e93e4\nBL              BN_dup                                                 ; +0x6c, 0x7e93e8\nSTR             R0, [R4,#0x14]                                         ; +0x70, 0x7e93ec\nMOVS            R0, R0                                                 ; +0x74, 0x7e93f0\nMOVNE           R0, #1                                                 ; +0x78, 0x7e93f4\nPOP             {R3-R5,PC}                                             ; +0x7c, 0x7e93f8\nMOV             R0, #0                                                 ; +0x80, 0x7e93fc\nPOP             {R3-R5,PC}                                             ; +0x84, 0x7e9400", "xrefs": ["<???> @ 0x6174c"], "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"}