{"type": "func", "start": 8414204, "end": 8414332, "name": "EVP_PKEY_decrypt_init", "pseudocode": "// \n// EVP_PKEY_decrypt_init from 0x8063fc to 0x80647c (128 bytes)\n// \n// 4 xrefs:\n// > tls_process_client_key_exchange @ 0x7ab070\n// > sub_8268D4 @ 0x8268fc\n// > CMS_RecipientInfo_decrypt @ 0x87357c\n// > <???> @ 0x5d62c\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\nint __fastcall EVP_PKEY_decrypt_init(int *a1)\n{\n  int v2; // r3\n  int (*v3)(void); // r3\n  int result; // r0\n\n  if ( a1 && (v2 = *a1) != 0 && *(_DWORD *)(v2 + 88) )\n  {\n    v3 = *(int (**)(void))(v2 + 84);\n    a1[4] = 512;\n    if ( v3 )\n    {\n      result = v3();\n      if ( result <= 0 )\n        a1[4] = 0;\n    }\n    else\n    {\n      return 1;\n    }\n  }\n  else\n  {\n    ERR_put_error(6, 138, 150, (int)\"crypto/evp/pmeth_fn.c\", 173);\n    return -2;\n  }\n  return result;\n}", "assembly": "; \n; EVP_PKEY_decrypt_init from 0x8063fc to 0x80647c (128 bytes)\n; \n; 4 xrefs:\n; > tls_process_client_key_exchange @ 0x7ab070\n; > sub_8268D4 @ 0x8268fc\n; > CMS_RecipientInfo_decrypt @ 0x87357c\n; > <???> @ 0x5d62c\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\nPUSH            {R4,LR}                                                ; +0x0, 0x8063fc\nSUBS            R4, R0, #0                                             ; +0x4, 0x806400\nSUB             SP, SP, #8                                             ; +0x8, 0x806404\nBEQ             loc_806454                                             ; +0xc, 0x806408\nLDR             R3, [R4]                                               ; +0x10, 0x80640c\nCMP             R3, #0                                                 ; +0x14, 0x806410\nBEQ             loc_806454                                             ; +0x18, 0x806414\nLDR             R2, [R3,#0x58]                                         ; +0x1c, 0x806418\nCMP             R2, #0                                                 ; +0x20, 0x80641c\nBEQ             loc_806454                                             ; +0x24, 0x806420\nLDR             R3, [R3,#0x54]                                         ; +0x28, 0x806424\nMOV             R2, #0x200                                             ; +0x2c, 0x806428\nCMP             R3, #0                                                 ; +0x30, 0x80642c\nSTR             R2, [R4,#0x10]                                         ; +0x34, 0x806430\nMOVEQ           R0, #1                                                 ; +0x38, 0x806434\nBEQ             loc_80644C                                             ; +0x3c, 0x806438\nBLX             R3                                                     ; +0x40, 0x80643c\nCMP             R0, #0                                                 ; +0x44, 0x806440\nMOVLE           R3, #0                                                 ; +0x48, 0x806444\nSTRLE           R3, [R4,#0x10]                                         ; +0x4c, 0x806448\nADD             SP, SP, #8                                             ; +0x50, 0x80644c\nPOP             {R4,PC}                                                ; +0x54, 0x806450\nMOV             R3, #0xAD                                              ; +0x58, 0x806454\nSTR             R3, [SP,#8+var_8]                                      ; +0x5c, 0x806458\nLDR             R3, =(aCryptoEvpPmeth - 0x806474); \"crypto/evp/pmeth_fn.c\" ; +0x60, 0x80645c\nMOV             R0, #6                                                 ; +0x64, 0x806460\nMOV             R1, #0x8A                                              ; +0x68, 0x806464\nMOV             R2, #0x96                                              ; +0x6c, 0x806468\nADD             R3, PC, R3; \"crypto/evp/pmeth_fn.c\"                    ; +0x70, 0x80646c\nBL              ERR_put_error                                          ; +0x74, 0x806470\nMOV             R0, #0xFFFFFFFE                                        ; +0x78, 0x806474\nB               loc_80644C                                             ; +0x7c, 0x806478", "xrefs": ["tls_process_client_key_exchange @ 0x7ab070", "sub_8268D4 @ 0x8268fc", "CMS_RecipientInfo_decrypt @ 0x87357c", "<???> @ 0x5d62c"], "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"}