{"type": "func", "start": 10596348, "end": 10596476, "name": "EVP_PKEY_decrypt_init", "pseudocode": "// \n// EVP_PKEY_decrypt_init from 0xa1affc to 0xa1b07c (128 bytes)\n// \n// 4 xrefs:\n// > tls_process_client_key_exchange @ 0x9bfc74\n// > sub_A3B4D4 @ 0xa3b4fc\n// > CMS_RecipientInfo_decrypt @ 0xa8817c\n// > <???> @ 0x770ac\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:07:52 +0000\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 0xa1affc to 0xa1b07c (128 bytes)\n; \n; 4 xrefs:\n; > tls_process_client_key_exchange @ 0x9bfc74\n; > sub_A3B4D4 @ 0xa3b4fc\n; > CMS_RecipientInfo_decrypt @ 0xa8817c\n; > <???> @ 0x770ac\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:07:52 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0xa1affc\nSUBS            R4, R0, #0                                             ; +0x4, 0xa1b000\nSUB             SP, SP, #8                                             ; +0x8, 0xa1b004\nBEQ             loc_A1B054                                             ; +0xc, 0xa1b008\nLDR             R3, [R4]                                               ; +0x10, 0xa1b00c\nCMP             R3, #0                                                 ; +0x14, 0xa1b010\nBEQ             loc_A1B054                                             ; +0x18, 0xa1b014\nLDR             R2, [R3,#0x58]                                         ; +0x1c, 0xa1b018\nCMP             R2, #0                                                 ; +0x20, 0xa1b01c\nBEQ             loc_A1B054                                             ; +0x24, 0xa1b020\nLDR             R3, [R3,#0x54]                                         ; +0x28, 0xa1b024\nMOV             R2, #0x200                                             ; +0x2c, 0xa1b028\nCMP             R3, #0                                                 ; +0x30, 0xa1b02c\nSTR             R2, [R4,#0x10]                                         ; +0x34, 0xa1b030\nMOVEQ           R0, #1                                                 ; +0x38, 0xa1b034\nBEQ             loc_A1B04C                                             ; +0x3c, 0xa1b038\nBLX             R3                                                     ; +0x40, 0xa1b03c\nCMP             R0, #0                                                 ; +0x44, 0xa1b040\nMOVLE           R3, #0                                                 ; +0x48, 0xa1b044\nSTRLE           R3, [R4,#0x10]                                         ; +0x4c, 0xa1b048\nADD             SP, SP, #8                                             ; +0x50, 0xa1b04c\nPOP             {R4,PC}                                                ; +0x54, 0xa1b050\nMOV             R3, #0xAD                                              ; +0x58, 0xa1b054\nSTR             R3, [SP,#8+var_8]                                      ; +0x5c, 0xa1b058\nLDR             R3, =(aCryptoEvpPmeth - 0xA1B074); \"crypto/evp/pmeth_fn.c\" ; +0x60, 0xa1b05c\nMOV             R0, #6                                                 ; +0x64, 0xa1b060\nMOV             R1, #0x8A                                              ; +0x68, 0xa1b064\nMOV             R2, #0x96                                              ; +0x6c, 0xa1b068\nADD             R3, PC, R3; \"crypto/evp/pmeth_fn.c\"                    ; +0x70, 0xa1b06c\nBL              ERR_put_error                                          ; +0x74, 0xa1b070\nMOV             R0, #0xFFFFFFFE                                        ; +0x78, 0xa1b074\nB               loc_A1B04C                                             ; +0x7c, 0xa1b078", "xrefs": ["tls_process_client_key_exchange @ 0x9bfc74", "sub_A3B4D4 @ 0xa3b4fc", "CMS_RecipientInfo_decrypt @ 0xa8817c", "<???> @ 0x770ac"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}