{"type": "func", "start": 14336432, "end": 14336728, "name": "EVP_PKEY_copy_parameters", "pseudocode": "// \n// EVP_PKEY_copy_parameters from 0xdac1b0 to 0xdac2d8 (296 bytes)\n// \n// 13 xrefs:\n// > sub_BB78D0 @ 0xbb85d4\n// > sub_D43F10 @ 0xd43f70\n// > sub_D440A4 @ 0xd440f0\n// > SSL_use_PrivateKey @ 0xd448cc\n// > SSL_CTX_use_PrivateKey @ 0xd451bc\n// > tls_process_client_key_exchange @ 0xd52ed0\n// > tls_process_client_key_exchange @ 0xd530d0\n// > X509_get_pubkey_parameters @ 0xdebd08\n// > X509_get_pubkey_parameters @ 0xdebd20\n// > sub_E2A364 @ 0xe2a3a4\n// > sub_E2BF20 @ 0xe2bf5c\n// > sub_E349A4 @ 0xe349f0\n// > <???> @ 0x3d230\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_copy_parameters(_DWORD *a1, __int64 a2)\n{\n  __int64 v4; // x0\n  __int64 (__fastcall *v5)(_DWORD *, __int64); // x2\n  __int64 result; // x0\n\n  if ( !*a1 )\n  {\n    if ( !(unsigned int)EVP_PKEY_set_type((__int64)a1, *(_DWORD *)a2) )\n      return 0;\n    if ( !(unsigned int)EVP_PKEY_missing_parameters(a2) )\n      goto LABEL_4;\nLABEL_10:\n    ERR_put_error(6, 103, 103, (__int64)\"crypto/evp/p_lib.c\", 84);\n    return 0;\n  }\n  if ( *a1 != *(_DWORD *)a2 )\n  {\n    ERR_put_error(6, 103, 101, (__int64)\"crypto/evp/p_lib.c\", 79);\n    return 0;\n  }\n  if ( (unsigned int)EVP_PKEY_missing_parameters(a2) )\n    goto LABEL_10;\nLABEL_4:\n  if ( (unsigned int)EVP_PKEY_missing_parameters((__int64)a1) )\n  {\n    v4 = *(_QWORD *)(a2 + 16);\n    if ( v4 )\n    {\n      v5 = *(__int64 (__fastcall **)(_DWORD *, __int64))(v4 + 136);\n      if ( v5 )\n        return v5(a1, a2);\n    }\n    return 0;\n  }\n  result = EVP_PKEY_cmp_parameters((__int64)a1, (_DWORD *)a2);\n  if ( (_DWORD)result != 1 )\n  {\n    ERR_put_error(6, 103, 153, (__int64)\"crypto/evp/p_lib.c\", 91);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; EVP_PKEY_copy_parameters from 0xdac1b0 to 0xdac2d8 (296 bytes)\n; \n; 13 xrefs:\n; > sub_BB78D0 @ 0xbb85d4\n; > sub_D43F10 @ 0xd43f70\n; > sub_D440A4 @ 0xd440f0\n; > SSL_use_PrivateKey @ 0xd448cc\n; > SSL_CTX_use_PrivateKey @ 0xd451bc\n; > tls_process_client_key_exchange @ 0xd52ed0\n; > tls_process_client_key_exchange @ 0xd530d0\n; > X509_get_pubkey_parameters @ 0xdebd08\n; > X509_get_pubkey_parameters @ 0xdebd20\n; > sub_E2A364 @ 0xe2a3a4\n; > sub_E2BF20 @ 0xe2bf5c\n; > sub_E349A4 @ 0xe349f0\n; > <???> @ 0x3d230\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_30]!                                ; +0x0, 0xdac1b0\nMOV             X29, SP                                                ; +0x4, 0xdac1b4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xdac1b8\nMOV             X19, X1                                                ; +0xc, 0xdac1bc\nLDR             W1, [X0]                                               ; +0x10, 0xdac1c0\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0xdac1c4\nMOV             X20, X0                                                ; +0x18, 0xdac1c8\nCBZ             W1, loc_DAC284                                         ; +0x1c, 0xdac1cc\nLDR             W0, [X19]                                              ; +0x20, 0xdac1d0\nCMP             W1, W0                                                 ; +0x24, 0xdac1d4\nB.NE            loc_DAC224                                             ; +0x28, 0xdac1d8\nMOV             X0, X19                                                ; +0x2c, 0xdac1dc\nBL              EVP_PKEY_missing_parameters                            ; +0x30, 0xdac1e0\nCBNZ            W0, loc_DAC254                                         ; +0x34, 0xdac1e4\nMOV             X0, X20                                                ; +0x38, 0xdac1e8\nBL              EVP_PKEY_missing_parameters                            ; +0x3c, 0xdac1ec\nMOV             W21, W0                                                ; +0x40, 0xdac1f0\nCBZ             W0, loc_DAC2A0                                         ; +0x44, 0xdac1f4\nLDR             X0, [X19,#0x10]                                        ; +0x48, 0xdac1f8\nCBZ             X0, loc_DAC270                                         ; +0x4c, 0xdac1fc\nLDR             X2, [X0,#0x88]                                         ; +0x50, 0xdac200\nCBZ             X2, loc_DAC270                                         ; +0x54, 0xdac204\nMOV             X1, X19                                                ; +0x58, 0xdac208\nMOV             X0, X20                                                ; +0x5c, 0xdac20c\nBLR             X2                                                     ; +0x60, 0xdac210\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x64, 0xdac214\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x68, 0xdac218\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x6c, 0xdac21c\nRET                                                                    ; +0x70, 0xdac220\nADRP            X3, #aCryptoEvpPLibC@PAGE; \"crypto/evp/p_lib.c\"        ; +0x74, 0xdac224\nMOV             W0, #6                                                 ; +0x78, 0xdac228\nMOV             W1, #0x67 ; 'g'                                        ; +0x7c, 0xdac22c\nMOV             W2, #0x65 ; 'e'                                        ; +0x80, 0xdac230\nADD             X3, X3, #aCryptoEvpPLibC@PAGEOFF; \"crypto/evp/p_lib.c\" ; +0x84, 0xdac234\nMOV             W4, #0x4F ; 'O'                                        ; +0x88, 0xdac238\nBL              ERR_put_error                                          ; +0x8c, 0xdac23c\nMOV             W0, #0                                                 ; +0x90, 0xdac240\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x94, 0xdac244\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x98, 0xdac248\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x9c, 0xdac24c\nRET                                                                    ; +0xa0, 0xdac250\nMOV             W1, #0x67 ; 'g'                                        ; +0xa4, 0xdac254\nADRP            X3, #aCryptoEvpPLibC@PAGE; \"crypto/evp/p_lib.c\"        ; +0xa8, 0xdac258\nMOV             W0, #6                                                 ; +0xac, 0xdac25c\nMOV             W2, W1                                                 ; +0xb0, 0xdac260\nADD             X3, X3, #aCryptoEvpPLibC@PAGEOFF; \"crypto/evp/p_lib.c\" ; +0xb4, 0xdac264\nMOV             W4, #0x54 ; 'T'                                        ; +0xb8, 0xdac268\nBL              ERR_put_error                                          ; +0xbc, 0xdac26c\nMOV             W0, #0                                                 ; +0xc0, 0xdac270\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xc4, 0xdac274\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xc8, 0xdac278\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xcc, 0xdac27c\nRET                                                                    ; +0xd0, 0xdac280\nLDR             W1, [X19]                                              ; +0xd4, 0xdac284\nBL              EVP_PKEY_set_type                                      ; +0xd8, 0xdac288\nCBZ             W0, loc_DAC270                                         ; +0xdc, 0xdac28c\nMOV             X0, X19                                                ; +0xe0, 0xdac290\nBL              EVP_PKEY_missing_parameters                            ; +0xe4, 0xdac294\nCBZ             W0, loc_DAC1E8                                         ; +0xe8, 0xdac298\nB               loc_DAC254                                             ; +0xec, 0xdac29c\nMOV             X0, X20                                                ; +0xf0, 0xdac2a0\nMOV             X1, X19                                                ; +0xf4, 0xdac2a4\nBL              EVP_PKEY_cmp_parameters                                ; +0xf8, 0xdac2a8\nCMP             W0, #1                                                 ; +0xfc, 0xdac2ac\nB.EQ            loc_DAC244                                             ; +0x100, 0xdac2b0\nADRP            X3, #aCryptoEvpPLibC@PAGE; \"crypto/evp/p_lib.c\"        ; +0x104, 0xdac2b4\nMOV             W0, #6                                                 ; +0x108, 0xdac2b8\nMOV             W1, #0x67 ; 'g'                                        ; +0x10c, 0xdac2bc\nMOV             W2, #0x99                                              ; +0x110, 0xdac2c0\nADD             X3, X3, #aCryptoEvpPLibC@PAGEOFF; \"crypto/evp/p_lib.c\" ; +0x114, 0xdac2c4\nMOV             W4, #0x5B ; '['                                        ; +0x118, 0xdac2c8\nBL              ERR_put_error                                          ; +0x11c, 0xdac2cc\nMOV             W0, W21                                                ; +0x120, 0xdac2d0\nB               loc_DAC244                                             ; +0x124, 0xdac2d4", "xrefs": ["sub_BB78D0 @ 0xbb85d4", "sub_D43F10 @ 0xd43f70", "sub_D440A4 @ 0xd440f0", "SSL_use_PrivateKey @ 0xd448cc", "SSL_CTX_use_PrivateKey @ 0xd451bc", "tls_process_client_key_exchange @ 0xd52ed0", "tls_process_client_key_exchange @ 0xd530d0", "X509_get_pubkey_parameters @ 0xdebd08", "X509_get_pubkey_parameters @ 0xdebd20", "sub_E2A364 @ 0xe2a3a4", "sub_E2BF20 @ 0xe2bf5c", "sub_E349A4 @ 0xe349f0", "<???> @ 0x3d230"], "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"}