{"type": "func", "start": 14807188, "end": 14807316, "name": "CMS_RecipientInfo_kari_set0_pkey", "pseudocode": "// \n// CMS_RecipientInfo_kari_set0_pkey from 0xe1f094 to 0xe1f114 (128 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6be68\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 CMS_RecipientInfo_kari_set0_pkey(__int64 a1, __int64 a2)\n{\n  __int64 v2; // x19\n  __int64 *v3; // x0\n  __int64 v4; // x20\n\n  v2 = *(_QWORD *)(a1 + 8);\n  EVP_PKEY_CTX_free(*(_QWORD *)(v2 + 40));\n  *(_QWORD *)(v2 + 40) = 0;\n  if ( !a2 )\n    return 1;\n  v3 = (__int64 *)EVP_PKEY_CTX_new(a2, 0);\n  v4 = (__int64)v3;\n  if ( v3 && (unsigned int)EVP_PKEY_derive_init(v3) )\n  {\n    *(_QWORD *)(v2 + 40) = v4;\n    return 1;\n  }\n  else\n  {\n    EVP_PKEY_CTX_free(v4);\n    return 0;\n  }\n}", "assembly": "; \n; CMS_RecipientInfo_kari_set0_pkey from 0xe1f094 to 0xe1f114 (128 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6be68\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, 0xe1f094\nMOV             X29, SP                                                ; +0x4, 0xe1f098\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xe1f09c\nLDR             X19, [X0,#8]                                           ; +0xc, 0xe1f0a0\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x10, 0xe1f0a4\nLDR             X0, [X19,#0x28]                                        ; +0x14, 0xe1f0a8\nBL              EVP_PKEY_CTX_free                                      ; +0x18, 0xe1f0ac\nSTR             XZR, [X19,#0x28]                                       ; +0x1c, 0xe1f0b0\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x20, 0xe1f0b4\nCBZ             X1, loc_E1F104                                         ; +0x24, 0xe1f0b8\nMOV             X0, X1                                                 ; +0x28, 0xe1f0bc\nMOV             X1, #0                                                 ; +0x2c, 0xe1f0c0\nBL              EVP_PKEY_CTX_new                                       ; +0x30, 0xe1f0c4\nMOV             X20, X0                                                ; +0x34, 0xe1f0c8\nCBZ             X0, loc_E1F0D8                                         ; +0x38, 0xe1f0cc\nBL              EVP_PKEY_derive_init                                   ; +0x3c, 0xe1f0d0\nCBNZ            W0, loc_E1F0F0                                         ; +0x40, 0xe1f0d4\nMOV             X0, X20                                                ; +0x44, 0xe1f0d8\nBL              EVP_PKEY_CTX_free                                      ; +0x48, 0xe1f0dc\nMOV             W0, #0                                                 ; +0x4c, 0xe1f0e0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x50, 0xe1f0e4\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x54, 0xe1f0e8\nRET                                                                    ; +0x58, 0xe1f0ec\nSTR             X20, [X19,#0x28]                                       ; +0x5c, 0xe1f0f0\nMOV             W0, #1                                                 ; +0x60, 0xe1f0f4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x64, 0xe1f0f8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x68, 0xe1f0fc\nRET                                                                    ; +0x6c, 0xe1f100\nMOV             W0, #1                                                 ; +0x70, 0xe1f104\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x74, 0xe1f108\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x78, 0xe1f10c\nRET                                                                    ; +0x7c, 0xe1f110", "xrefs": ["<???> @ 0x6be68"], "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"}