{"type": "func", "start": 8413776, "end": 8413900, "name": "EVP_PKEY_encrypt_init", "pseudocode": "// \n// EVP_PKEY_encrypt_init from 0x806250 to 0x8062cc (124 bytes)\n// \n// 6 xrefs:\n// > sub_79FC70 @ 0x79fcec\n// > tls_construct_client_key_exchange @ 0x7a24cc\n// > PKCS7_dataInit @ 0x826eb0\n// > CMS_RecipientInfo_encrypt @ 0x873b90\n// > CMS_add1_recipient_cert @ 0x87414c\n// > <???> @ 0x5cf3c\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_encrypt_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 + 80) )\n  {\n    v3 = *(int (**)(void))(v2 + 76);\n    a1[4] = 256;\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, 139, 150, (int)\"crypto/evp/pmeth_fn.c\", 139);\n    return -2;\n  }\n  return result;\n}", "assembly": "; \n; EVP_PKEY_encrypt_init from 0x806250 to 0x8062cc (124 bytes)\n; \n; 6 xrefs:\n; > sub_79FC70 @ 0x79fcec\n; > tls_construct_client_key_exchange @ 0x7a24cc\n; > PKCS7_dataInit @ 0x826eb0\n; > CMS_RecipientInfo_encrypt @ 0x873b90\n; > CMS_add1_recipient_cert @ 0x87414c\n; > <???> @ 0x5cf3c\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, 0x806250\nSUBS            R4, R0, #0                                             ; +0x4, 0x806254\nSUB             SP, SP, #8                                             ; +0x8, 0x806258\nBEQ             loc_8062A8                                             ; +0xc, 0x80625c\nLDR             R3, [R4]                                               ; +0x10, 0x806260\nCMP             R3, #0                                                 ; +0x14, 0x806264\nBEQ             loc_8062A8                                             ; +0x18, 0x806268\nLDR             R2, [R3,#0x50]                                         ; +0x1c, 0x80626c\nCMP             R2, #0                                                 ; +0x20, 0x806270\nBEQ             loc_8062A8                                             ; +0x24, 0x806274\nLDR             R3, [R3,#0x4C]                                         ; +0x28, 0x806278\nMOV             R2, #0x100                                             ; +0x2c, 0x80627c\nCMP             R3, #0                                                 ; +0x30, 0x806280\nSTR             R2, [R4,#0x10]                                         ; +0x34, 0x806284\nMOVEQ           R0, #1                                                 ; +0x38, 0x806288\nBEQ             loc_8062A0                                             ; +0x3c, 0x80628c\nBLX             R3                                                     ; +0x40, 0x806290\nCMP             R0, #0                                                 ; +0x44, 0x806294\nMOVLE           R3, #0                                                 ; +0x48, 0x806298\nSTRLE           R3, [R4,#0x10]                                         ; +0x4c, 0x80629c\nADD             SP, SP, #8                                             ; +0x50, 0x8062a0\nPOP             {R4,PC}                                                ; +0x54, 0x8062a4\nLDR             R3, =(aCryptoEvpPmeth - 0x8062C4); \"crypto/evp/pmeth_fn.c\" ; +0x58, 0x8062a8\nMOV             R1, #0x8B                                              ; +0x5c, 0x8062ac\nMOV             R0, #6                                                 ; +0x60, 0x8062b0\nSTR             R1, [SP,#8+var_8]                                      ; +0x64, 0x8062b4\nMOV             R2, #0x96                                              ; +0x68, 0x8062b8\nADD             R3, PC, R3; \"crypto/evp/pmeth_fn.c\"                    ; +0x6c, 0x8062bc\nBL              ERR_put_error                                          ; +0x70, 0x8062c0\nMOV             R0, #0xFFFFFFFE                                        ; +0x74, 0x8062c4\nB               loc_8062A0                                             ; +0x78, 0x8062c8", "xrefs": ["sub_79FC70 @ 0x79fcec", "tls_construct_client_key_exchange @ 0x7a24cc", "PKCS7_dataInit @ 0x826eb0", "CMS_RecipientInfo_encrypt @ 0x873b90", "CMS_add1_recipient_cert @ 0x87414c", "<???> @ 0x5cf3c"], "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"}