{"type": "func", "start": 14341012, "end": 14341156, "name": "EVP_PKEY_decrypt_init", "pseudocode": "// \n// EVP_PKEY_decrypt_init from 0xdad394 to 0xdad424 (144 bytes)\n// \n// 4 xrefs:\n// > tls_process_client_key_exchange @ 0xd52924\n// > sub_DCC148 @ 0xdcc180\n// > CMS_RecipientInfo_decrypt @ 0xe1df98\n// > <???> @ 0xbee18\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_decrypt_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 + 168) )\n  {\n    v3 = *(__int64 (**)(void))(v2 + 160);\n    *((_DWORD *)a1 + 8) = 512;\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, 138, 150, (__int64)\"crypto/evp/pmeth_fn.c\", 173);\n    return 4294967294LL;\n  }\n  return result;\n}", "assembly": "; \n; EVP_PKEY_decrypt_init from 0xdad394 to 0xdad424 (144 bytes)\n; \n; 4 xrefs:\n; > tls_process_client_key_exchange @ 0xd52924\n; > sub_DCC148 @ 0xdcc180\n; > CMS_RecipientInfo_decrypt @ 0xe1df98\n; > <???> @ 0xbee18\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, 0xdad394\nMOV             X29, SP                                                ; +0x4, 0xdad398\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xdad39c\nMOV             X19, X0                                                ; +0xc, 0xdad3a0\nCBZ             X0, loc_DAD400                                         ; +0x10, 0xdad3a4\nLDR             X1, [X0]                                               ; +0x14, 0xdad3a8\nCBZ             X1, loc_DAD400                                         ; +0x18, 0xdad3ac\nLDR             X2, [X1,#0xA8]                                         ; +0x1c, 0xdad3b0\nCBZ             X2, loc_DAD400                                         ; +0x20, 0xdad3b4\nLDR             X1, [X1,#0xA0]                                         ; +0x24, 0xdad3b8\nMOV             W2, #0x200                                             ; +0x28, 0xdad3bc\nSTR             W2, [X0,#0x20]                                         ; +0x2c, 0xdad3c0\nCBZ             X1, loc_DAD3E0                                         ; +0x30, 0xdad3c4\nBLR             X1                                                     ; +0x34, 0xdad3c8\nCMP             W0, WZR                                                ; +0x38, 0xdad3cc\nB.LE            loc_DAD3F0                                             ; +0x3c, 0xdad3d0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x40, 0xdad3d4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x44, 0xdad3d8\nRET                                                                    ; +0x48, 0xdad3dc\nMOV             W0, #1                                                 ; +0x4c, 0xdad3e0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x50, 0xdad3e4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x54, 0xdad3e8\nRET                                                                    ; +0x58, 0xdad3ec\nSTR             WZR, [X19,#0x20]                                       ; +0x5c, 0xdad3f0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x60, 0xdad3f4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x64, 0xdad3f8\nRET                                                                    ; +0x68, 0xdad3fc\nADRP            X3, #aCryptoEvpPmeth@PAGE; \"crypto/evp/pmeth_fn.c\"     ; +0x6c, 0xdad400\nMOV             W0, #6                                                 ; +0x70, 0xdad404\nMOV             W1, #0x8A                                              ; +0x74, 0xdad408\nMOV             W2, #0x96                                              ; +0x78, 0xdad40c\nADD             X3, X3, #aCryptoEvpPmeth@PAGEOFF; \"crypto/evp/pmeth_fn.c\" ; +0x7c, 0xdad410\nMOV             W4, #0xAD                                              ; +0x80, 0xdad414\nBL              ERR_put_error                                          ; +0x84, 0xdad418\nMOV             W0, #0xFFFFFFFE                                        ; +0x88, 0xdad41c\nB               loc_DAD3D4                                             ; +0x8c, 0xdad420", "xrefs": ["tls_process_client_key_exchange @ 0xd52924", "sub_DCC148 @ 0xdcc180", "CMS_RecipientInfo_decrypt @ 0xe1df98", "<???> @ 0xbee18"], "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"}