{"type": "func", "start": 16959400, "end": 16959652, "name": "EVP_PKEY_CTX_ctrl_str", "pseudocode": "// \n// EVP_PKEY_CTX_ctrl_str from 0x102c7a8 to 0x102c8a4 (252 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xd3900\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:17 +0000\n// \n\n__int64 __fastcall EVP_PKEY_CTX_ctrl_str(__int64 *a1, char *a2, __int64 a3)\n{\n  unsigned int (__fastcall *v5)(__int64 *, char *, __int64); // x22\n  unsigned int v6; // w20\n\n  if ( !a1 || !*a1 || (v5 = *(unsigned int (__fastcall **)(__int64 *, char *, __int64))(*a1 + 200)) == nullptr )\n  {\n    v6 = -2;\n    ERR_put_error(6, 150, 147, (__int64)\"crypto/evp/pmeth_lib.c\", 327);\n    return v6;\n  }\n  v6 = strcmp(a2, \"digest\");\n  if ( !v6 )\n  {\n    if ( a3 && EVP_get_digestbyname(a3) )\n      return EVP_PKEY_CTX_ctrl(a1, -1, 248);\n    ERR_put_error(6, 150, 152, (__int64)\"crypto/evp/pmeth_lib.c\", 333);\n    return v6;\n  }\n  return v5(a1, a2, a3);\n}", "assembly": "; \n; EVP_PKEY_CTX_ctrl_str from 0x102c7a8 to 0x102c8a4 (252 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xd3900\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:17 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x102c7a8\nMOV             X29, SP                                                ; +0x4, 0x102c7ac\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x102c7b0\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0x102c7b4\nMOV             X19, X0                                                ; +0x10, 0x102c7b8\nMOV             X21, X1                                                ; +0x14, 0x102c7bc\nCBZ             X0, loc_102C880                                        ; +0x18, 0x102c7c0\nLDR             X3, [X0]                                               ; +0x1c, 0x102c7c4\nCBZ             X3, loc_102C880                                        ; +0x20, 0x102c7c8\nLDR             X22, [X3,#0xC8]                                        ; +0x24, 0x102c7cc\nCBZ             X22, loc_102C880                                       ; +0x28, 0x102c7d0\nMOV             X0, X1; char *                                         ; +0x2c, 0x102c7d4\nADRL            X1, (aIllegalSuiteBD+0x10); \"digest\"                   ; +0x30, 0x102c7d8\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x38, 0x102c7e0\nBL              .strcmp                                                ; +0x3c, 0x102c7e4\nMOV             W20, W0                                                ; +0x40, 0x102c7e8\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x44, 0x102c7ec\nCBNZ            W0, loc_102C85C                                        ; +0x48, 0x102c7f0\nCBZ             X2, loc_102C82C                                        ; +0x4c, 0x102c7f4\nMOV             X0, X2                                                 ; +0x50, 0x102c7f8\nBL              EVP_get_digestbyname                                   ; +0x54, 0x102c7fc\nMOV             X5, X0                                                 ; +0x58, 0x102c800\nCBZ             X0, loc_102C82C                                        ; +0x5c, 0x102c804\nMOV             X0, X19                                                ; +0x60, 0x102c808\nMOV             W4, W20                                                ; +0x64, 0x102c80c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x68, 0x102c810\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x6c, 0x102c814\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x70, 0x102c818\nMOV             W1, #0xFFFFFFFF                                        ; +0x74, 0x102c81c\nMOV             W2, #0xF8                                              ; +0x78, 0x102c820\nMOV             W3, #1                                                 ; +0x7c, 0x102c824\nB               EVP_PKEY_CTX_ctrl                                      ; +0x80, 0x102c828\nADRP            X3, #aCryptoEvpPmeth_1@PAGE; \"crypto/evp/pmeth_lib.c\"  ; +0x84, 0x102c82c\nMOV             W0, #6                                                 ; +0x88, 0x102c830\nMOV             W1, #0x96                                              ; +0x8c, 0x102c834\nMOV             W2, #0x98                                              ; +0x90, 0x102c838\nADD             X3, X3, #aCryptoEvpPmeth_1@PAGEOFF; \"crypto/evp/pmeth_lib.c\" ; +0x94, 0x102c83c\nMOV             W4, #0x14D                                             ; +0x98, 0x102c840\nBL              ERR_put_error                                          ; +0x9c, 0x102c844\nMOV             W0, W20                                                ; +0xa0, 0x102c848\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xa4, 0x102c84c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xa8, 0x102c850\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xac, 0x102c854\nRET                                                                    ; +0xb0, 0x102c858\nMOV             X1, X21                                                ; +0xb4, 0x102c85c\nMOV             X0, X19                                                ; +0xb8, 0x102c860\nBLR             X22                                                    ; +0xbc, 0x102c864\nMOV             W20, W0                                                ; +0xc0, 0x102c868\nMOV             W0, W20                                                ; +0xc4, 0x102c86c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xc8, 0x102c870\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xcc, 0x102c874\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xd0, 0x102c878\nRET                                                                    ; +0xd4, 0x102c87c\nADRP            X3, #aCryptoEvpPmeth_1@PAGE; \"crypto/evp/pmeth_lib.c\"  ; +0xd8, 0x102c880\nMOV             W0, #6                                                 ; +0xdc, 0x102c884\nMOV             W1, #0x96                                              ; +0xe0, 0x102c888\nMOV             W2, #0x93                                              ; +0xe4, 0x102c88c\nADD             X3, X3, #aCryptoEvpPmeth_1@PAGEOFF; \"crypto/evp/pmeth_lib.c\" ; +0xe8, 0x102c890\nMOV             W4, #0x147                                             ; +0xec, 0x102c894\nMOV             W20, #0xFFFFFFFE                                       ; +0xf0, 0x102c898\nBL              ERR_put_error                                          ; +0xf4, 0x102c89c\nB               loc_102C848                                            ; +0xf8, 0x102c8a0", "xrefs": ["<???> @ 0xd3900"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}