{"type": "func", "start": 8296168, "end": 8296248, "name": "EC_KEY_key2buf", "pseudocode": "// \n// EC_KEY_key2buf from 0x7e96e8 to 0x7e9738 (80 bytes)\n// \n// 6 xrefs:\n// > sub_7E3D80 @ 0x7e3ddc\n// > sub_7E51A0 @ 0x7e51fc\n// > sub_7E5364 @ 0x7e53c4\n// > EC_KEY_print @ 0x7e561c\n// > i2d_ECPrivateKey @ 0x7e77e8\n// > <???> @ 0x610ec\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_key2buf(int result, int a2, int a3, int a4)\n{\n  int v4; // lr\n\n  if ( result )\n  {\n    v4 = *(_DWORD *)(result + 16);\n    if ( v4 )\n    {\n      result = *(_DWORD *)(result + 12);\n      if ( result )\n        return EC_POINT_point2buf(result, v4, a2, a3, a4);\n    }\n    else\n    {\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; EC_KEY_key2buf from 0x7e96e8 to 0x7e9738 (80 bytes)\n; \n; 6 xrefs:\n; > sub_7E3D80 @ 0x7e3ddc\n; > sub_7E51A0 @ 0x7e51fc\n; > sub_7E5364 @ 0x7e53c4\n; > EC_KEY_print @ 0x7e561c\n; > i2d_ECPrivateKey @ 0x7e77e8\n; > <???> @ 0x610ec\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\nCMP             R0, #0                                                 ; +0x0, 0x7e96e8\nBXEQ            LR                                                     ; +0x4, 0x7e96ec\nPUSH            {LR}                                                   ; +0x8, 0x7e96f0\nLDR             LR, [R0,#0x10]                                         ; +0xc, 0x7e96f4\nSUB             SP, SP, #0xC                                           ; +0x10, 0x7e96f8\nCMP             LR, #0                                                 ; +0x14, 0x7e96fc\nBEQ             loc_7E9730                                             ; +0x18, 0x7e9700\nLDR             R0, [R0,#0xC]                                          ; +0x1c, 0x7e9704\nCMP             R0, #0                                                 ; +0x20, 0x7e9708\nBEQ             loc_7E9728                                             ; +0x24, 0x7e970c\nMOV             R12, R3                                                ; +0x28, 0x7e9710\nSTR             R12, [SP,#0x10+var_10]                                 ; +0x2c, 0x7e9714\nMOV             R3, R2                                                 ; +0x30, 0x7e9718\nMOV             R2, R1                                                 ; +0x34, 0x7e971c\nMOV             R1, LR                                                 ; +0x38, 0x7e9720\nBL              EC_POINT_point2buf                                     ; +0x3c, 0x7e9724\nADD             SP, SP, #0xC                                           ; +0x40, 0x7e9728\nPOP             {PC}                                                   ; +0x44, 0x7e972c\nMOV             R0, LR                                                 ; +0x48, 0x7e9730\nB               loc_7E9728                                             ; +0x4c, 0x7e9734", "xrefs": ["sub_7E3D80 @ 0x7e3ddc", "sub_7E51A0 @ 0x7e51fc", "sub_7E5364 @ 0x7e53c4", "EC_KEY_print @ 0x7e561c", "i2d_ECPrivateKey @ 0x7e77e8", "<???> @ 0x610ec"], "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"}