// // X509V3_EXT_print from 0x107e508 to 0x107e7bc (692 bytes) // // 4 xrefs: // > sub_E2B824 @ 0xe2bc4c // > X509V3_extensions_print @ 0x107e8f4 // > X509V3_EXT_print_fp @ 0x107e9b8 // > @ 0xff7c0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:17:09 +0000 // __int64 __fastcall X509V3_EXT_print(__int64 a1, __int64 a2, int a3, unsigned int a4) { unsigned int *data; // x19 int v8; // w20 __int64 result; // x0 __int64 v10; // x19 __int64 v11; // x3 __int64 v12; // x22 char *v13; // x20 __int64 (__fastcall *v14)(__int64, __int64, __int64, _QWORD); // x21 unsigned int *v15; // x23 unsigned __int8 *v16; // x1 unsigned __int64 v17; // x23 unsigned __int8 *v18; // x1 char *v20; // [xsp+68h] [xbp+68h] BYREF data = (unsigned int *)X509_EXTENSION_get_data(a2); v20 = (char *)ASN1_STRING_get0_data((__int64)data); v8 = ASN1_STRING_length(data); result = X509V3_EXT_get(a2); v10 = result; if ( !result ) { v17 = *(_QWORD *)&a3 & 0xF0000LL; v18 = (unsigned __int8 *)v20; if ( v17 == 0x10000 ) { BIO_printf(a1, "%*s", a4, &byte_11B8890); } else { if ( v17 > 0x10000 ) { if ( v17 == 0x20000 ) return ASN1_parse_dump(a1, v20, v8, a4, 0xFFFFFFFF); goto LABEL_23; } if ( !v17 ) return result; } return 1; } v11 = *(_QWORD *)(result + 8); if ( v11 ) v12 = ASN1_item_d2i(nullptr, &v20, v8, v11); else v12 = (*(__int64 (__fastcall **)(_QWORD, char **, _QWORD))(result + 32))(0, &v20, v8); if ( !v12 ) { v17 = *(_QWORD *)&a3 & 0xF0000LL; v18 = (unsigned __int8 *)v20; if ( v17 == 0x10000 ) { BIO_printf(a1, "%*s", a4, &byte_11B8890); } else { if ( v17 > 0x10000 ) { if ( v17 == 0x20000 ) return ASN1_parse_dump(a1, v20, v8, a4, 0xFFFFFFFF); LABEL_23: if ( v17 == 196608 ) return BIO_dump_indent(a1, v18, v8, a4); return 1; } result = 0; if ( !v17 ) return result; } return 1; } v13 = *(char **)(v10 + 48); if ( v13 ) { v13 = (char *)((__int64 (__fastcall *)(__int64, __int64))v13)(v10, v12); if ( v13 ) { LODWORD(v14) = 1; v15 = nullptr; BIO_printf(a1, "%*s%s", a4, &byte_11B8890, v13); } else { LODWORD(v14) = 0; v15 = nullptr; } } else { v15 = *(unsigned int **)(v10 + 64); if ( v15 ) { v15 = (unsigned int *)((__int64 (__fastcall *)(__int64, __int64, _QWORD))v15)(v10, v12, *(_QWORD *)(v10 + 48)); if ( v15 ) { LODWORD(v14) = 1; X509V3_EXT_val_prn(a1, v15, a4, *(_DWORD *)(v10 + 4) & 4); } else { LODWORD(v14) = 0; v13 = nullptr; } } else { v14 = *(__int64 (__fastcall **)(__int64, __int64, __int64, _QWORD))(v10 + 80); if ( v14 ) { v13 = *(char **)(v10 + 64); LODWORD(v14) = v14(v10, v12, a1, a4) != 0; } else { v15 = nullptr; v13 = nullptr; } } } OPENSSL_sk_pop_free((int *)v15, (void (__fastcall *)(__int64))X509V3_conf_free); CRYPTO_free(v13, (__int64)"crypto/x509v3/v3_prn.c", 130); v16 = *(unsigned __int8 **)(v10 + 8); if ( v16 ) { ASN1_item_free(v12, v16); return (unsigned int)v14; } else { (*(void (__fastcall **)(__int64))(v10 + 24))(v12); return (unsigned int)v14; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source