{"type": "func", "start": 8418744, "end": 8418996, "name": "EVP_PKEY_CTX_ctrl_str", "pseudocode": "// \n// EVP_PKEY_CTX_ctrl_str from 0x8075b8 to 0x8076b4 (252 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x63c6c\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_CTX_ctrl_str(int a1, char *a2, int a3)\n{\n  int (__fastcall *v4)(int, char *, int); // r8\n\n  if ( !a1 || !*(_DWORD *)a1 || (v4 = *(int (__fastcall **)(int, char *, int))(*(_DWORD *)a1 + 104)) == nullptr )\n  {\n    ERR_put_error(6, 150, 147, (int)\"crypto/evp/pmeth_lib.c\", 327);\n    return -2;\n  }\n  if ( strcmp(a2, \"digest\") )\n    return v4(a1, a2, a3);\n  if ( a3 && EVP_get_digestbyname(a3) )\n    return EVP_PKEY_CTX_ctrl(a1, -1, 248);\n  ERR_put_error(6, 150, 152, (int)\"crypto/evp/pmeth_lib.c\", 333);\n  return 0;\n}", "assembly": "; \n; EVP_PKEY_CTX_ctrl_str from 0x8075b8 to 0x8076b4 (252 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x63c6c\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-R8,LR}                                             ; +0x0, 0x8075b8\nSUBS            R4, R0, #0                                             ; +0x4, 0x8075bc\nSUB             SP, SP, #8                                             ; +0x8, 0x8075c0\nBEQ             loc_80768C                                             ; +0xc, 0x8075c4\nLDR             R3, [R4]                                               ; +0x10, 0x8075c8\nCMP             R3, #0                                                 ; +0x14, 0x8075cc\nBEQ             loc_80768C                                             ; +0x18, 0x8075d0\nLDR             R8, [R3,#0x68]                                         ; +0x1c, 0x8075d4\nCMP             R8, #0                                                 ; +0x20, 0x8075d8\nBEQ             loc_80768C                                             ; +0x24, 0x8075dc\nMOV             R0, R1; char *                                         ; +0x28, 0x8075e0\nMOV             R7, R1                                                 ; +0x2c, 0x8075e4\nLDR             R1, =(aDigest_0 - 0x8075F8); \"digest\"                  ; +0x30, 0x8075e8\nMOV             R5, R2                                                 ; +0x34, 0x8075ec\nADD             R1, PC, R1; \"digest\"                                   ; +0x38, 0x8075f0\nBL              strcmp                                                 ; +0x3c, 0x8075f4\nSUBS            R6, R0, #0                                             ; +0x40, 0x8075f8\nBNE             loc_807670                                             ; +0x44, 0x8075fc\nCMP             R5, #0                                                 ; +0x48, 0x807600\nBEQ             loc_807644                                             ; +0x4c, 0x807604\nMOV             R0, R5                                                 ; +0x50, 0x807608\nBL              EVP_get_digestbyname                                   ; +0x54, 0x80760c\nCMP             R0, #0                                                 ; +0x58, 0x807610\nBEQ             loc_807644                                             ; +0x5c, 0x807614\nSTR             R6, [SP,#8+var_8]                                      ; +0x60, 0x807618\nSTR             R0, [SP,#8+var_4]                                      ; +0x64, 0x80761c\nMOV             R1, #0xFFFFFFFF                                        ; +0x68, 0x807620\nMOV             R0, R4                                                 ; +0x6c, 0x807624\nMOV             R2, #0xF8                                              ; +0x70, 0x807628\nMOV             R3, #1                                                 ; +0x74, 0x80762c\nBL              EVP_PKEY_CTX_ctrl                                      ; +0x78, 0x807630\nMOV             R6, R0                                                 ; +0x7c, 0x807634\nMOV             R0, R6                                                 ; +0x80, 0x807638\nADD             SP, SP, #8                                             ; +0x84, 0x80763c\nPOP             {R4-R8,PC}                                             ; +0x88, 0x807640\nLDR             R3, =0x14D                                             ; +0x8c, 0x807644\nSTR             R3, [SP,#8+var_8]                                      ; +0x90, 0x807648\nLDR             R3, =(aCryptoEvpPmeth_1 - 0x807664); \"crypto/evp/pmeth_lib.c\" ; +0x94, 0x80764c\nMOV             R0, #6                                                 ; +0x98, 0x807650\nMOV             R1, #0x96                                              ; +0x9c, 0x807654\nMOV             R2, #0x98                                              ; +0xa0, 0x807658\nADD             R3, PC, R3; \"crypto/evp/pmeth_lib.c\"                   ; +0xa4, 0x80765c\nBL              ERR_put_error                                          ; +0xa8, 0x807660\nMOV             R0, R6                                                 ; +0xac, 0x807664\nADD             SP, SP, #8                                             ; +0xb0, 0x807668\nPOP             {R4-R8,PC}                                             ; +0xb4, 0x80766c\nMOV             R0, R4                                                 ; +0xb8, 0x807670\nMOV             R1, R7                                                 ; +0xbc, 0x807674\nMOV             R2, R5                                                 ; +0xc0, 0x807678\nMOV             R3, R8                                                 ; +0xc4, 0x80767c\nADD             SP, SP, #8                                             ; +0xc8, 0x807680\nPOP             {R4-R8,LR}                                             ; +0xcc, 0x807684\nBX              R3                                                     ; +0xd0, 0x807688\nLDR             R3, =0x147                                             ; +0xd4, 0x80768c\nSTR             R3, [SP,#8+var_8]                                      ; +0xd8, 0x807690\nLDR             R3, =(aCryptoEvpPmeth_1 - 0x8076AC); \"crypto/evp/pmeth_lib.c\" ; +0xdc, 0x807694\nMOV             R0, #6                                                 ; +0xe0, 0x807698\nMOV             R1, #0x96                                              ; +0xe4, 0x80769c\nMOV             R2, #0x93                                              ; +0xe8, 0x8076a0\nADD             R3, PC, R3; \"crypto/evp/pmeth_lib.c\"                   ; +0xec, 0x8076a4\nBL              ERR_put_error                                          ; +0xf0, 0x8076a8\nMOV             R6, #0xFFFFFFFE                                        ; +0xf4, 0x8076ac\nB               loc_807638                                             ; +0xf8, 0x8076b0", "xrefs": ["<???> @ 0x63c6c"], "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"}