{"type": "func", "start": 14326908, "end": 14327076, "name": "EVP_CIPHER_CTX_ctrl", "pseudocode": "// \n// EVP_CIPHER_CTX_ctrl from 0xda9c7c to 0xda9d24 (168 bytes)\n// \n// 17 xrefs:\n// > tls1_enc @ 0xd34d10\n// > tls1_enc @ 0xd34f2c\n// > tls1_enc @ 0xd34f6c\n// > tls1_enc @ 0xd34f88\n// > tls1_change_cipher_state @ 0xd60db0\n// > tls1_change_cipher_state @ 0xd60dc8\n// > tls1_change_cipher_state @ 0xd60de0\n// > tls1_change_cipher_state @ 0xd61110\n// > tls1_change_cipher_state @ 0xd61128\n// > sub_DA2F94 @ 0xda3064\n// > sub_DA7C88 @ 0xda7d38\n// > sub_DA7DF4 @ 0xda7e20\n// > EVP_CipherInit_ex @ 0xda9f3c\n// > EVP_CIPHER_CTX_set_key_length @ 0xdaa218\n// > EVP_CIPHER_CTX_rand_key @ 0xdaa26c\n// > PKCS5_pbe2_set_iv @ 0xe72d98\n// > <???> @ 0x61a10\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\n__int64 __fastcall EVP_CIPHER_CTX_ctrl(__int64 a1)\n{\n  __int64 (*v1)(void); // x19\n  __int64 result; // x0\n\n  if ( *(_QWORD *)a1 )\n  {\n    v1 = *(__int64 (**)(void))(*(_QWORD *)a1 + 72LL);\n    if ( v1 )\n    {\n      result = v1();\n      if ( (_DWORD)result == -1 )\n      {\n        ERR_put_error(6, 124, 133, (__int64)\"crypto/evp/evp_enc.c\", 586);\n        return 0;\n      }\n    }\n    else\n    {\n      ERR_put_error(6, 124, 132, (__int64)\"crypto/evp/evp_enc.c\", 579);\n      return 0;\n    }\n  }\n  else\n  {\n    ERR_put_error(6, 124, 131, (__int64)\"crypto/evp/evp_enc.c\", 574);\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; EVP_CIPHER_CTX_ctrl from 0xda9c7c to 0xda9d24 (168 bytes)\n; \n; 17 xrefs:\n; > tls1_enc @ 0xd34d10\n; > tls1_enc @ 0xd34f2c\n; > tls1_enc @ 0xd34f6c\n; > tls1_enc @ 0xd34f88\n; > tls1_change_cipher_state @ 0xd60db0\n; > tls1_change_cipher_state @ 0xd60dc8\n; > tls1_change_cipher_state @ 0xd60de0\n; > tls1_change_cipher_state @ 0xd61110\n; > tls1_change_cipher_state @ 0xd61128\n; > sub_DA2F94 @ 0xda3064\n; > sub_DA7C88 @ 0xda7d38\n; > sub_DA7DF4 @ 0xda7e20\n; > EVP_CipherInit_ex @ 0xda9f3c\n; > EVP_CIPHER_CTX_set_key_length @ 0xdaa218\n; > EVP_CIPHER_CTX_rand_key @ 0xdaa26c\n; > PKCS5_pbe2_set_iv @ 0xe72d98\n; > <???> @ 0x61a10\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xda9c7c\nMOV             X29, SP                                                ; +0x4, 0xda9c80\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xda9c84\nLDR             X19, [X0]                                              ; +0xc, 0xda9c88\nCBZ             X19, loc_DA9D00                                        ; +0x10, 0xda9c8c\nLDR             X19, [X19,#0x48]                                       ; +0x14, 0xda9c90\nCBZ             X19, loc_DA9CDC                                        ; +0x18, 0xda9c94\nBLR             X19                                                    ; +0x1c, 0xda9c98\nCMN             W0, #1                                                 ; +0x20, 0xda9c9c\nB.EQ            loc_DA9CB0                                             ; +0x24, 0xda9ca0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x28, 0xda9ca4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x2c, 0xda9ca8\nRET                                                                    ; +0x30, 0xda9cac\nADRP            X3, #aCryptoEvpEvpEn@PAGE; \"crypto/evp/evp_enc.c\"      ; +0x34, 0xda9cb0\nMOV             W0, #6                                                 ; +0x38, 0xda9cb4\nMOV             W1, #0x7C ; '|'                                        ; +0x3c, 0xda9cb8\nMOV             W2, #0x85                                              ; +0x40, 0xda9cbc\nADD             X3, X3, #aCryptoEvpEvpEn@PAGEOFF; \"crypto/evp/evp_enc.c\" ; +0x44, 0xda9cc0\nMOV             W4, #0x24A                                             ; +0x48, 0xda9cc4\nBL              ERR_put_error                                          ; +0x4c, 0xda9cc8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x50, 0xda9ccc\nMOV             W0, #0                                                 ; +0x54, 0xda9cd0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x58, 0xda9cd4\nRET                                                                    ; +0x5c, 0xda9cd8\nADRP            X3, #aCryptoEvpEvpEn@PAGE; \"crypto/evp/evp_enc.c\"      ; +0x60, 0xda9cdc\nMOV             W0, #6                                                 ; +0x64, 0xda9ce0\nMOV             W1, #0x7C ; '|'                                        ; +0x68, 0xda9ce4\nMOV             W2, #0x84                                              ; +0x6c, 0xda9ce8\nADD             X3, X3, #aCryptoEvpEvpEn@PAGEOFF; \"crypto/evp/evp_enc.c\" ; +0x70, 0xda9cec\nMOV             W4, #0x243                                             ; +0x74, 0xda9cf0\nBL              ERR_put_error                                          ; +0x78, 0xda9cf4\nMOV             W0, W19                                                ; +0x7c, 0xda9cf8\nB               loc_DA9CA4                                             ; +0x80, 0xda9cfc\nADRP            X3, #aCryptoEvpEvpEn@PAGE; \"crypto/evp/evp_enc.c\"      ; +0x84, 0xda9d00\nMOV             W0, #6                                                 ; +0x88, 0xda9d04\nMOV             W1, #0x7C ; '|'                                        ; +0x8c, 0xda9d08\nMOV             W2, #0x83                                              ; +0x90, 0xda9d0c\nADD             X3, X3, #aCryptoEvpEvpEn@PAGEOFF; \"crypto/evp/evp_enc.c\" ; +0x94, 0xda9d10\nMOV             W4, #0x23E                                             ; +0x98, 0xda9d14\nBL              ERR_put_error                                          ; +0x9c, 0xda9d18\nMOV             W0, W19                                                ; +0xa0, 0xda9d1c\nB               loc_DA9CA4                                             ; +0xa4, 0xda9d20", "xrefs": ["tls1_enc @ 0xd34d10", "tls1_enc @ 0xd34f2c", "tls1_enc @ 0xd34f6c", "tls1_enc @ 0xd34f88", "tls1_change_cipher_state @ 0xd60db0", "tls1_change_cipher_state @ 0xd60dc8", "tls1_change_cipher_state @ 0xd60de0", "tls1_change_cipher_state @ 0xd61110", "tls1_change_cipher_state @ 0xd61128", "sub_DA2F94 @ 0xda3064", "sub_DA7C88 @ 0xda7d38", "sub_DA7DF4 @ 0xda7e20", "EVP_CipherInit_ex @ 0xda9f3c", "EVP_CIPHER_CTX_set_key_length @ 0xdaa218", "EVP_CIPHER_CTX_rand_key @ 0xdaa26c", "PKCS5_pbe2_set_iv @ 0xe72d98", "<???> @ 0x61a10"], "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"}