{"type": "func", "start": 14342352, "end": 14342496, "name": "EVP_PKEY_paramgen_init", "pseudocode": "// \n// EVP_PKEY_paramgen_init from 0xdad8d0 to 0xdad960 (144 bytes)\n// \n// 2 xrefs:\n// > tls_process_key_exchange @ 0xd4b5f0\n// > <???> @ 0x69bd0\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\n__int64 __fastcall EVP_PKEY_paramgen_init(__int64 *a1)\n{\n  __int64 v2; // x1\n  __int64 (*v3)(void); // x1\n  __int64 result; // x0\n\n  if ( a1 && (v2 = *a1) != 0 && *(_QWORD *)(v2 + 40) )\n  {\n    v3 = *(__int64 (**)(void))(v2 + 32);\n    *((_DWORD *)a1 + 8) = 2;\n    if ( v3 )\n    {\n      result = v3();\n      if ( (int)result <= 0 )\n        *((_DWORD *)a1 + 8) = 0;\n    }\n    else\n    {\n      return 1;\n    }\n  }\n  else\n  {\n    ERR_put_error(6, 149, 150, (__int64)\"crypto/evp/pmeth_gn.c\", 23);\n    return 4294967294LL;\n  }\n  return result;\n}", "assembly": "; \n; EVP_PKEY_paramgen_init from 0xdad8d0 to 0xdad960 (144 bytes)\n; \n; 2 xrefs:\n; > tls_process_key_exchange @ 0xd4b5f0\n; > <???> @ 0x69bd0\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xdad8d0\nMOV             X29, SP                                                ; +0x4, 0xdad8d4\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xdad8d8\nMOV             X19, X0                                                ; +0xc, 0xdad8dc\nCBZ             X0, loc_DAD93C                                         ; +0x10, 0xdad8e0\nLDR             X1, [X0]                                               ; +0x14, 0xdad8e4\nCBZ             X1, loc_DAD93C                                         ; +0x18, 0xdad8e8\nLDR             X2, [X1,#0x28]                                         ; +0x1c, 0xdad8ec\nCBZ             X2, loc_DAD93C                                         ; +0x20, 0xdad8f0\nLDR             X1, [X1,#0x20]                                         ; +0x24, 0xdad8f4\nMOV             W2, #2                                                 ; +0x28, 0xdad8f8\nSTR             W2, [X0,#0x20]                                         ; +0x2c, 0xdad8fc\nCBZ             X1, loc_DAD91C                                         ; +0x30, 0xdad900\nBLR             X1                                                     ; +0x34, 0xdad904\nCMP             W0, WZR                                                ; +0x38, 0xdad908\nB.LE            loc_DAD92C                                             ; +0x3c, 0xdad90c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x40, 0xdad910\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x44, 0xdad914\nRET                                                                    ; +0x48, 0xdad918\nMOV             W0, #1                                                 ; +0x4c, 0xdad91c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x50, 0xdad920\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x54, 0xdad924\nRET                                                                    ; +0x58, 0xdad928\nSTR             WZR, [X19,#0x20]                                       ; +0x5c, 0xdad92c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x60, 0xdad930\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x64, 0xdad934\nRET                                                                    ; +0x68, 0xdad938\nADRP            X3, #aCryptoEvpPmeth_0@PAGE; \"crypto/evp/pmeth_gn.c\"   ; +0x6c, 0xdad93c\nMOV             W0, #6                                                 ; +0x70, 0xdad940\nMOV             W1, #0x95                                              ; +0x74, 0xdad944\nMOV             W2, #0x96                                              ; +0x78, 0xdad948\nADD             X3, X3, #aCryptoEvpPmeth_0@PAGEOFF; \"crypto/evp/pmeth_gn.c\" ; +0x7c, 0xdad94c\nMOV             W4, #0x17                                              ; +0x80, 0xdad950\nBL              ERR_put_error                                          ; +0x84, 0xdad954\nMOV             W0, #0xFFFFFFFE                                        ; +0x88, 0xdad958\nB               loc_DAD910                                             ; +0x8c, 0xdad95c", "xrefs": ["tls_process_key_exchange @ 0xd4b5f0", "<???> @ 0x69bd0"], "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"}