{"type": "func", "start": 16836200, "end": 16836336, "name": "EC_KEY_set_private_key", "pseudocode": "// \n// EC_KEY_set_private_key from 0x100e668 to 0x100e6f0 (136 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xe9a88\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:01 +0000\n// \n\nbool __fastcall EC_KEY_set_private_key(__int64 a1, __int64 a2)\n{\n  __int64 *v2; // x4\n  __int64 v3; // x4\n  unsigned int (*v4)(void); // x2\n  unsigned int (__fastcall *v7)(__int64, __int64); // x2\n  unsigned __int64 *v8; // x0\n\n  v2 = *(__int64 **)(a1 + 24);\n  if ( !v2 )\n    return 0;\n  v3 = *v2;\n  if ( !v3 )\n    return 0;\n  v4 = *(unsigned int (**)(void))(v3 + 328);\n  if ( v4 )\n  {\n    if ( !v4() )\n      return 0;\n  }\n  v7 = *(unsigned int (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 48LL);\n  if ( v7 )\n  {\n    if ( !v7(a1, a2) )\n      return 0;\n  }\n  BN_clear_free(*(_BYTE **)(a1 + 40));\n  v8 = BN_dup(a2);\n  *(_QWORD *)(a1 + 40) = v8;\n  return v8 != nullptr;\n}", "assembly": "; \n; EC_KEY_set_private_key from 0x100e668 to 0x100e6f0 (136 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xe9a88\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:01 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x100e668\nMOV             X29, SP                                                ; +0x4, 0x100e66c\nLDR             X4, [X0,#0x18]                                         ; +0x8, 0x100e670\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x100e674\nCBZ             X4, loc_100E6E0                                        ; +0x10, 0x100e678\nLDR             X4, [X4]                                               ; +0x14, 0x100e67c\nCBZ             X4, loc_100E6E0                                        ; +0x18, 0x100e680\nLDR             X2, [X4,#0x148]                                        ; +0x1c, 0x100e684\nMOV             X20, X1                                                ; +0x20, 0x100e688\nMOV             X19, X0                                                ; +0x24, 0x100e68c\nCBZ             X2, loc_100E69C                                        ; +0x28, 0x100e690\nBLR             X2                                                     ; +0x2c, 0x100e694\nCBZ             W0, loc_100E6E0                                        ; +0x30, 0x100e698\nLDR             X0, [X19]                                              ; +0x34, 0x100e69c\nLDR             X2, [X0,#0x30]                                         ; +0x38, 0x100e6a0\nCBZ             X2, loc_100E6B8                                        ; +0x3c, 0x100e6a4\nMOV             X0, X19                                                ; +0x40, 0x100e6a8\nMOV             X1, X20                                                ; +0x44, 0x100e6ac\nBLR             X2                                                     ; +0x48, 0x100e6b0\nCBZ             W0, loc_100E6E0                                        ; +0x4c, 0x100e6b4\nLDR             X0, [X19,#0x28]                                        ; +0x50, 0x100e6b8\nBL              BN_clear_free                                          ; +0x54, 0x100e6bc\nMOV             X0, X20                                                ; +0x58, 0x100e6c0\nBL              BN_dup                                                 ; +0x5c, 0x100e6c4\nSTR             X0, [X19,#0x28]                                        ; +0x60, 0x100e6c8\nCMP             X0, XZR                                                ; +0x64, 0x100e6cc\nCSET            W0, NE                                                 ; +0x68, 0x100e6d0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x6c, 0x100e6d4\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x70, 0x100e6d8\nRET                                                                    ; +0x74, 0x100e6dc\nMOV             W0, #0                                                 ; +0x78, 0x100e6e0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x7c, 0x100e6e4\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x80, 0x100e6e8\nRET                                                                    ; +0x84, 0x100e6ec", "xrefs": ["<???> @ 0xe9a88"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}