// // EC_KEY_print from 0x7e55b0 to 0x7e5800 (592 bytes) // // 2 xrefs: // > EC_KEY_print_fp @ 0x7ef288 // > @ 0x6122c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall EC_KEY_print(int a1, int a2, int a3) { int v6; // r0 int v7; // r6 int v8; // r9 int conv_form; // r0 int v10; // r5 const char *v11; // r4 int v12; // r5 int v14; // r0 int v15; // [sp+8h] [bp-Ch] BYREF int v16; // [sp+Ch] [bp-8h] BYREF v6 = EC_KEY_get0_private_key(a2); v15 = 0; v16 = 0; if ( a2 ) { v7 = v6; v8 = EC_KEY_get0_group(a2); if ( v8 ) { if ( EC_KEY_get0_public_key(a2) ) { conv_form = EC_KEY_get_conv_form(a2); v10 = EC_KEY_key2buf(a2, conv_form, &v16, 0); if ( !v10 ) goto LABEL_10; if ( !v7 ) { LABEL_6: v11 = "Public-Key"; goto LABEL_7; } } else { v10 = 0; if ( !v7 ) goto LABEL_6; } if ( !EC_KEY_get0_private_key(a2) ) { v7 = 0; goto LABEL_14; } v7 = EC_KEY_priv2buf(a2, &v15); if ( v7 ) { LABEL_14: v11 = "Private-Key"; LABEL_7: if ( BIO_indent(a1, a3, 128) ) { v14 = EC_GROUP_order_bits(v8); if ( BIO_printf(a1, "%s: (%d bit)\n", v11, v14) > 0 && (!v7 || BIO_printf(a1, "%*spriv:\n", a3, &byte_9B1912) > 0 && ASN1_buf_print(a1, v15, v7, a3 + 4)) && (!v10 || BIO_printf(a1, "%*spub:\n", a3, &byte_9B1912) > 0 && ASN1_buf_print(a1, v16, v10, a3 + 4)) && ECPKParameters_print(a1, v8, a3) ) { v12 = 1; goto LABEL_9; } } LABEL_8: ERR_put_error(16, 221, 16, "crypto/ec/ec_ameth.c", 392); v12 = 0; LABEL_9: CRYPTO_clear_free(v15, v7, "crypto/ec/ec_ameth.c", 393); CRYPTO_free(v16, "crypto/ec/ec_ameth.c", 394); return v12; } LABEL_10: v7 = 0; goto LABEL_8; } } ERR_put_error(16, 221, 67, "crypto/ec/ec_ameth.c", 344); return 0; }