{"type": "func", "start": 10600888, "end": 10601140, "name": "EVP_PKEY_CTX_ctrl_str", "pseudocode": "// \n// EVP_PKEY_CTX_ctrl_str from 0xa1c1b8 to 0xa1c2b4 (252 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7d6ec\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:53 +0000\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 0xa1c1b8 to 0xa1c2b4 (252 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7d6ec\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:53 +0000\n; \nPUSH            {R4-R8,LR}                                             ; +0x0, 0xa1c1b8\nSUBS            R4, R0, #0                                             ; +0x4, 0xa1c1bc\nSUB             SP, SP, #8                                             ; +0x8, 0xa1c1c0\nBEQ             loc_A1C28C                                             ; +0xc, 0xa1c1c4\nLDR             R3, [R4]                                               ; +0x10, 0xa1c1c8\nCMP             R3, #0                                                 ; +0x14, 0xa1c1cc\nBEQ             loc_A1C28C                                             ; +0x18, 0xa1c1d0\nLDR             R8, [R3,#0x68]                                         ; +0x1c, 0xa1c1d4\nCMP             R8, #0                                                 ; +0x20, 0xa1c1d8\nBEQ             loc_A1C28C                                             ; +0x24, 0xa1c1dc\nMOV             R0, R1; char *                                         ; +0x28, 0xa1c1e0\nMOV             R7, R1                                                 ; +0x2c, 0xa1c1e4\nLDR             R1, =(aDigest_0 - 0xA1C1F8); \"digest\"                  ; +0x30, 0xa1c1e8\nMOV             R5, R2                                                 ; +0x34, 0xa1c1ec\nADD             R1, PC, R1; \"digest\"                                   ; +0x38, 0xa1c1f0\nBL              strcmp                                                 ; +0x3c, 0xa1c1f4\nSUBS            R6, R0, #0                                             ; +0x40, 0xa1c1f8\nBNE             loc_A1C270                                             ; +0x44, 0xa1c1fc\nCMP             R5, #0                                                 ; +0x48, 0xa1c200\nBEQ             loc_A1C244                                             ; +0x4c, 0xa1c204\nMOV             R0, R5                                                 ; +0x50, 0xa1c208\nBL              EVP_get_digestbyname                                   ; +0x54, 0xa1c20c\nCMP             R0, #0                                                 ; +0x58, 0xa1c210\nBEQ             loc_A1C244                                             ; +0x5c, 0xa1c214\nSTR             R6, [SP,#8+var_8]                                      ; +0x60, 0xa1c218\nSTR             R0, [SP,#8+var_4]                                      ; +0x64, 0xa1c21c\nMOV             R1, #0xFFFFFFFF                                        ; +0x68, 0xa1c220\nMOV             R0, R4                                                 ; +0x6c, 0xa1c224\nMOV             R2, #0xF8                                              ; +0x70, 0xa1c228\nMOV             R3, #1                                                 ; +0x74, 0xa1c22c\nBL              EVP_PKEY_CTX_ctrl                                      ; +0x78, 0xa1c230\nMOV             R6, R0                                                 ; +0x7c, 0xa1c234\nMOV             R0, R6                                                 ; +0x80, 0xa1c238\nADD             SP, SP, #8                                             ; +0x84, 0xa1c23c\nPOP             {R4-R8,PC}                                             ; +0x88, 0xa1c240\nLDR             R3, =0x14D                                             ; +0x8c, 0xa1c244\nSTR             R3, [SP,#8+var_8]                                      ; +0x90, 0xa1c248\nLDR             R3, =(aCryptoEvpPmeth_1 - 0xA1C264); \"crypto/evp/pmeth_lib.c\" ; +0x94, 0xa1c24c\nMOV             R0, #6                                                 ; +0x98, 0xa1c250\nMOV             R1, #0x96                                              ; +0x9c, 0xa1c254\nMOV             R2, #0x98                                              ; +0xa0, 0xa1c258\nADD             R3, PC, R3; \"crypto/evp/pmeth_lib.c\"                   ; +0xa4, 0xa1c25c\nBL              ERR_put_error                                          ; +0xa8, 0xa1c260\nMOV             R0, R6                                                 ; +0xac, 0xa1c264\nADD             SP, SP, #8                                             ; +0xb0, 0xa1c268\nPOP             {R4-R8,PC}                                             ; +0xb4, 0xa1c26c\nMOV             R0, R4                                                 ; +0xb8, 0xa1c270\nMOV             R1, R7                                                 ; +0xbc, 0xa1c274\nMOV             R2, R5                                                 ; +0xc0, 0xa1c278\nMOV             R3, R8                                                 ; +0xc4, 0xa1c27c\nADD             SP, SP, #8                                             ; +0xc8, 0xa1c280\nPOP             {R4-R8,LR}                                             ; +0xcc, 0xa1c284\nBX              R3                                                     ; +0xd0, 0xa1c288\nLDR             R3, =0x147                                             ; +0xd4, 0xa1c28c\nSTR             R3, [SP,#8+var_8]                                      ; +0xd8, 0xa1c290\nLDR             R3, =(aCryptoEvpPmeth_1 - 0xA1C2AC); \"crypto/evp/pmeth_lib.c\" ; +0xdc, 0xa1c294\nMOV             R0, #6                                                 ; +0xe0, 0xa1c298\nMOV             R1, #0x96                                              ; +0xe4, 0xa1c29c\nMOV             R2, #0x93                                              ; +0xe8, 0xa1c2a0\nADD             R3, PC, R3; \"crypto/evp/pmeth_lib.c\"                   ; +0xec, 0xa1c2a4\nBL              ERR_put_error                                          ; +0xf0, 0xa1c2a8\nMOV             R6, #0xFFFFFFFE                                        ; +0xf4, 0xa1c2ac\nB               loc_A1C238                                             ; +0xf8, 0xa1c2b0", "xrefs": ["<???> @ 0x7d6ec"], "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"}