{"type": "func", "start": 8419084, "end": 8419188, "name": "EVP_PKEY_CTX_hex2ctrl", "pseudocode": "// \n// EVP_PKEY_CTX_hex2ctrl from 0x80770c to 0x807774 (104 bytes)\n// \n// 7 xrefs:\n// > sub_8089F8 @ 0x808a50\n// > sub_80B800 @ 0x80b8d0\n// > sub_80B800 @ 0x80b914\n// > sub_80BE54 @ 0x80bef8\n// > sub_80BE54 @ 0x80bf38\n// > sub_87296C @ 0x8729e4\n// > <???> @ 0x63c8c\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_hex2ctrl(int a1, int a2, int a3)\n{\n  int v5; // r5\n  int v7; // r4\n  int v8; // [sp+4h] [bp-4h] BYREF\n\n  v5 = OPENSSL_hexstr2buf(a3, &v8);\n  if ( !v5 )\n    return 0;\n  v7 = (*(int (__fastcall **)(int, int, int, int))(*(_DWORD *)a1 + 100))(a1, a2, v8, v5);\n  CRYPTO_free(v5, \"crypto/evp/pmeth_lib.c\", 364);\n  return v7;\n}", "assembly": "; \n; EVP_PKEY_CTX_hex2ctrl from 0x80770c to 0x807774 (104 bytes)\n; \n; 7 xrefs:\n; > sub_8089F8 @ 0x808a50\n; > sub_80B800 @ 0x80b8d0\n; > sub_80B800 @ 0x80b914\n; > sub_80BE54 @ 0x80bef8\n; > sub_80BE54 @ 0x80bf38\n; > sub_87296C @ 0x8729e4\n; > <???> @ 0x63c8c\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-R6,LR}                                             ; +0x0, 0x80770c\nSUB             SP, SP, #8                                             ; +0x4, 0x807710\nMOV             R4, R0                                                 ; +0x8, 0x807714\nMOV             R6, R1                                                 ; +0xc, 0x807718\nMOV             R0, R2                                                 ; +0x10, 0x80771c\nADD             R1, SP, #8+var_4                                       ; +0x14, 0x807720\nBL              OPENSSL_hexstr2buf                                     ; +0x18, 0x807724\nSUBS            R5, R0, #0                                             ; +0x1c, 0x807728\nMOVEQ           R0, R5                                                 ; +0x20, 0x80772c\nBEQ             loc_80776C                                             ; +0x24, 0x807730\nLDR             R3, [R4]                                               ; +0x28, 0x807734\nMOV             R1, R6                                                 ; +0x2c, 0x807738\nLDR             R12, [R3,#0x64]                                        ; +0x30, 0x80773c\nMOV             R0, R4                                                 ; +0x34, 0x807740\nLDR             R2, [SP,#8+var_4]                                      ; +0x38, 0x807744\nMOV             R3, R5                                                 ; +0x3c, 0x807748\nBLX             R12                                                    ; +0x40, 0x80774c\nLDR             R1, =(aCryptoEvpPmeth_1 - 0x807760); \"crypto/evp/pmeth_lib.c\" ; +0x44, 0x807750\nMOV             R2, #0x16C                                             ; +0x48, 0x807754\nADD             R1, PC, R1; \"crypto/evp/pmeth_lib.c\"                   ; +0x4c, 0x807758\nMOV             R4, R0                                                 ; +0x50, 0x80775c\nMOV             R0, R5                                                 ; +0x54, 0x807760\nBL              CRYPTO_free                                            ; +0x58, 0x807764\nMOV             R0, R4                                                 ; +0x5c, 0x807768\nADD             SP, SP, #8                                             ; +0x60, 0x80776c\nPOP             {R4-R6,PC}                                             ; +0x64, 0x807770", "xrefs": ["sub_8089F8 @ 0x808a50", "sub_80B800 @ 0x80b8d0", "sub_80B800 @ 0x80b914", "sub_80BE54 @ 0x80bef8", "sub_80BE54 @ 0x80bf38", "sub_87296C @ 0x8729e4", "<???> @ 0x63c8c"], "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"}