{"type": "func", "start": 16956464, "end": 16956608, "name": "EVP_PKEY_paramgen_init", "pseudocode": "// \n// EVP_PKEY_paramgen_init from 0x102bc30 to 0x102bcc0 (144 bytes)\n// \n// 2 xrefs:\n// > tls_process_key_exchange @ 0xfc9944\n// > <???> @ 0x8f1a0\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:17 +0000\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 0x102bc30 to 0x102bcc0 (144 bytes)\n; \n; 2 xrefs:\n; > tls_process_key_exchange @ 0xfc9944\n; > <???> @ 0x8f1a0\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:17 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x102bc30\nMOV             X29, SP                                                ; +0x4, 0x102bc34\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0x102bc38\nMOV             X19, X0                                                ; +0xc, 0x102bc3c\nCBZ             X0, loc_102BC9C                                        ; +0x10, 0x102bc40\nLDR             X1, [X0]                                               ; +0x14, 0x102bc44\nCBZ             X1, loc_102BC9C                                        ; +0x18, 0x102bc48\nLDR             X2, [X1,#0x28]                                         ; +0x1c, 0x102bc4c\nCBZ             X2, loc_102BC9C                                        ; +0x20, 0x102bc50\nLDR             X1, [X1,#0x20]                                         ; +0x24, 0x102bc54\nMOV             W2, #2                                                 ; +0x28, 0x102bc58\nSTR             W2, [X0,#0x20]                                         ; +0x2c, 0x102bc5c\nCBZ             X1, loc_102BC7C                                        ; +0x30, 0x102bc60\nBLR             X1                                                     ; +0x34, 0x102bc64\nCMP             W0, WZR                                                ; +0x38, 0x102bc68\nB.LE            loc_102BC8C                                            ; +0x3c, 0x102bc6c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x40, 0x102bc70\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x44, 0x102bc74\nRET                                                                    ; +0x48, 0x102bc78\nMOV             W0, #1                                                 ; +0x4c, 0x102bc7c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x50, 0x102bc80\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x54, 0x102bc84\nRET                                                                    ; +0x58, 0x102bc88\nSTR             WZR, [X19,#0x20]                                       ; +0x5c, 0x102bc8c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x60, 0x102bc90\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x64, 0x102bc94\nRET                                                                    ; +0x68, 0x102bc98\nADRP            X3, #aCryptoEvpPmeth_0@PAGE; \"crypto/evp/pmeth_gn.c\"   ; +0x6c, 0x102bc9c\nMOV             W0, #6                                                 ; +0x70, 0x102bca0\nMOV             W1, #0x95                                              ; +0x74, 0x102bca4\nMOV             W2, #0x96                                              ; +0x78, 0x102bca8\nADD             X3, X3, #aCryptoEvpPmeth_0@PAGEOFF; \"crypto/evp/pmeth_gn.c\" ; +0x7c, 0x102bcac\nMOV             W4, #0x17                                              ; +0x80, 0x102bcb0\nBL              ERR_put_error                                          ; +0x84, 0x102bcb4\nMOV             W0, #0xFFFFFFFE                                        ; +0x88, 0x102bcb8\nB               loc_102BC70                                            ; +0x8c, 0x102bcbc", "xrefs": ["tls_process_key_exchange @ 0xfc9944", "<???> @ 0x8f1a0"], "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"}