{"type": "func", "start": 16959744, "end": 16959896, "name": "EVP_PKEY_CTX_hex2ctrl", "pseudocode": "// \n// EVP_PKEY_CTX_hex2ctrl from 0x102c900 to 0x102c998 (152 bytes)\n// \n// 7 xrefs:\n// > sub_102DC30 @ 0x102dc90\n// > sub_1030A28 @ 0x1030aec\n// > sub_1030A28 @ 0x1030b3c\n// > sub_103103C @ 0x10310dc\n// > sub_103103C @ 0x1031124\n// > sub_109B694 @ 0x109b708\n// > <???> @ 0x5d898\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_hex2ctrl(__int64 a1, unsigned int a2, __int64 a3)\n{\n  __int64 result; // x0\n  __int64 v6; // x20\n  unsigned int v7; // w19\n  __int64 v8; // [xsp+38h] [xbp+38h] BYREF\n\n  result = OPENSSL_hexstr2buf(a3, &v8);\n  v6 = result;\n  if ( result )\n  {\n    v7 = -1;\n    if ( v8 <= 0x7FFFFFFF )\n      v7 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 192LL))(a1, a2);\n    CRYPTO_free(v6, \"crypto/evp/pmeth_lib.c\", 364);\n    return v7;\n  }\n  return result;\n}", "assembly": "; \n; EVP_PKEY_CTX_hex2ctrl from 0x102c900 to 0x102c998 (152 bytes)\n; \n; 7 xrefs:\n; > sub_102DC30 @ 0x102dc90\n; > sub_1030A28 @ 0x1030aec\n; > sub_1030A28 @ 0x1030b3c\n; > sub_103103C @ 0x10310dc\n; > sub_103103C @ 0x1031124\n; > sub_109B694 @ 0x109b708\n; > <???> @ 0x5d898\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, 0x102c900\nMOV             X29, SP                                                ; +0x4, 0x102c904\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0x102c908\nMOV             X21, X0                                                ; +0xc, 0x102c90c\nMOV             W22, W1                                                ; +0x10, 0x102c910\nMOV             X0, X2                                                 ; +0x14, 0x102c914\nADD             X1, X29, #0x40+var_8                                   ; +0x18, 0x102c918\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x1c, 0x102c91c\nBL              OPENSSL_hexstr2buf                                     ; +0x20, 0x102c920\nMOV             X20, X0                                                ; +0x24, 0x102c924\nCBZ             X0, loc_102C988                                        ; +0x28, 0x102c928\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x2c, 0x102c92c\nMOV             X3, #0x7FFFFFFF                                        ; +0x30, 0x102c930\nMOV             W19, #0xFFFFFFFF                                       ; +0x34, 0x102c934\nCMP             X2, X3                                                 ; +0x38, 0x102c938\nB.LE            loc_102C968                                            ; +0x3c, 0x102c93c\nADRP            X1, #aCryptoEvpPmeth_1@PAGE; \"crypto/evp/pmeth_lib.c\"  ; +0x40, 0x102c940\nMOV             X0, X20                                                ; +0x44, 0x102c944\nADD             X1, X1, #aCryptoEvpPmeth_1@PAGEOFF; \"crypto/evp/pmeth_lib.c\" ; +0x48, 0x102c948\nMOV             W2, #0x16C                                             ; +0x4c, 0x102c94c\nBL              CRYPTO_free                                            ; +0x50, 0x102c950\nMOV             W0, W19                                                ; +0x54, 0x102c954\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x58, 0x102c958\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x5c, 0x102c95c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x60, 0x102c960\nRET                                                                    ; +0x64, 0x102c964\nLDR             X4, [X21]                                              ; +0x68, 0x102c968\nMOV             X0, X21                                                ; +0x6c, 0x102c96c\nMOV             W1, W22                                                ; +0x70, 0x102c970\nMOV             X3, X20                                                ; +0x74, 0x102c974\nLDR             X4, [X4,#0xC0]                                         ; +0x78, 0x102c978\nBLR             X4                                                     ; +0x7c, 0x102c97c\nMOV             W19, W0                                                ; +0x80, 0x102c980\nB               loc_102C940                                            ; +0x84, 0x102c984\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x88, 0x102c988\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x8c, 0x102c98c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x90, 0x102c990\nRET                                                                    ; +0x94, 0x102c994", "xrefs": ["sub_102DC30 @ 0x102dc90", "sub_1030A28 @ 0x1030aec", "sub_1030A28 @ 0x1030b3c", "sub_103103C @ 0x10310dc", "sub_103103C @ 0x1031124", "sub_109B694 @ 0x109b708", "<???> @ 0x5d898"], "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"}