{"type": "func", "start": 14343240, "end": 14343372, "name": "EVP_PKEY_new_mac_key", "pseudocode": "// \n// EVP_PKEY_new_mac_key from 0xdadc48 to 0xdadccc (132 bytes)\n// \n// 3 xrefs:\n// > tls1_change_cipher_state @ 0xd60cf8\n// > sub_DB2974 @ 0xdb2a08\n// > <???> @ 0x68b08\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_new_mac_key(__int64 a1, __int64 a2, __int64 a3, unsigned int a4)\n{\n  __int64 *result; // x0\n  __int64 *v7; // x19\n  __int64 v8; // [xsp+38h] [xbp+38h] BYREF\n\n  v8 = 0;\n  result = (__int64 *)EVP_PKEY_CTX_new_id(a1, a2);\n  v7 = result;\n  if ( result )\n  {\n    if ( (int)EVP_PKEY_keygen_init(result) > 0 && (int)EVP_PKEY_CTX_ctrl(v7, 0xFFFFFFFFLL, 4, 6, a4, a3) > 0 )\n      EVP_PKEY_keygen(v7, &v8);\n    EVP_PKEY_CTX_free(v7);\n    return (__int64 *)v8;\n  }\n  return result;\n}", "assembly": "; \n; EVP_PKEY_new_mac_key from 0xdadc48 to 0xdadccc (132 bytes)\n; \n; 3 xrefs:\n; > tls1_change_cipher_state @ 0xd60cf8\n; > sub_DB2974 @ 0xdb2a08\n; > <???> @ 0x68b08\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_40]!                                ; +0x0, 0xdadc48\nMOV             X29, SP                                                ; +0x4, 0xdadc4c\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xdadc50\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0xdadc54\nMOV             X20, X2                                                ; +0x10, 0xdadc58\nMOV             W21, W3                                                ; +0x14, 0xdadc5c\nSTR             XZR, [X29,#0x40+var_8]                                 ; +0x18, 0xdadc60\nBL              EVP_PKEY_CTX_new_id                                    ; +0x1c, 0xdadc64\nMOV             X19, X0                                                ; +0x20, 0xdadc68\nCBZ             X0, loc_DADCC8                                         ; +0x24, 0xdadc6c\nBL              EVP_PKEY_keygen_init                                   ; +0x28, 0xdadc70\nCMP             W0, WZR                                                ; +0x2c, 0xdadc74\nB.LE            loc_DADCAC                                             ; +0x30, 0xdadc78\nMOV             X0, X19                                                ; +0x34, 0xdadc7c\nMOV             W1, #0xFFFFFFFF                                        ; +0x38, 0xdadc80\nMOV             W2, #4                                                 ; +0x3c, 0xdadc84\nMOV             W3, #6                                                 ; +0x40, 0xdadc88\nMOV             W4, W21                                                ; +0x44, 0xdadc8c\nMOV             X5, X20                                                ; +0x48, 0xdadc90\nBL              EVP_PKEY_CTX_ctrl                                      ; +0x4c, 0xdadc94\nCMP             W0, WZR                                                ; +0x50, 0xdadc98\nB.LE            loc_DADCAC                                             ; +0x54, 0xdadc9c\nMOV             X0, X19                                                ; +0x58, 0xdadca0\nADD             X1, X29, #0x40+var_8                                   ; +0x5c, 0xdadca4\nBL              EVP_PKEY_keygen                                        ; +0x60, 0xdadca8\nMOV             X0, X19                                                ; +0x64, 0xdadcac\nBL              EVP_PKEY_CTX_free                                      ; +0x68, 0xdadcb0\nLDR             X0, [X29,#0x40+var_8]                                  ; +0x6c, 0xdadcb4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x70, 0xdadcb8\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x74, 0xdadcbc\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x78, 0xdadcc0\nRET                                                                    ; +0x7c, 0xdadcc4\nB               loc_DADCB8                                             ; +0x80, 0xdadcc8", "xrefs": ["tls1_change_cipher_state @ 0xd60cf8", "sub_DB2974 @ 0xdb2a08", "<???> @ 0x68b08"], "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"}