// // X509V3_EXT_i2d from 0x10794e0 to 0x1079654 (372 bytes) // // 7 xrefs: // > OCSP_crlID_new @ 0x1042564 // > OCSP_accept_responses_new @ 0x1042610 // > OCSP_archive_cutoff_new @ 0x1042674 // > OCSP_url_svcloc_new @ 0x10427a4 // > X509V3_add1_i2d @ 0x107c728 // > X509V3_add1_i2d @ 0x107c7d0 // > @ 0x9cf88 // // 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:05 +0000 // __int64 *__fastcall X509V3_EXT_i2d(__int64 a1, int a2, __int64 a3) { unsigned int v3; // w24 __int64 nid; // x0 __int64 v7; // x19 __int64 v8; // x2 unsigned int v9; // w21 unsigned int *v10; // x20 unsigned int *v11; // x2 __int64 *v12; // x19 void (__fastcall *v14)(__int64, unsigned int **); // x2 unsigned int *v15; // [xsp+50h] [xbp+50h] BYREF unsigned int *v16; // [xsp+58h] [xbp+58h] BYREF v3 = a1; nid = X509V3_EXT_get_nid(a1); v7 = nid; if ( !nid ) { ERR_put_error(34, 136, 129, (__int64)"crypto/x509v3/v3_conf.c", 182); return nullptr; } v8 = *(_QWORD *)(nid + 8); v15 = nullptr; if ( v8 ) { v9 = ASN1_item_i2d(a3, (__int64 *)&v15, v8); if ( (v9 & 0x80000000) != 0 ) { LABEL_10: v10 = nullptr; goto LABEL_11; } } else { v9 = (*(__int64 (__fastcall **)(__int64, _QWORD))(nid + 40))(a3, 0); v15 = (unsigned int *)CRYPTO_malloc((void *)(int)v9, (__int64)"crypto/x509v3/v3_conf.c", 149); v10 = v15; if ( !v15 ) goto LABEL_11; v14 = *(void (__fastcall **)(__int64, unsigned int **))(v7 + 40); v16 = v15; v14(a3, &v16); } v10 = (unsigned int *)ASN1_OCTET_STRING_new(); if ( !v10 ) goto LABEL_10; v11 = v15; v15 = nullptr; *((_QWORD *)v10 + 1) = v11; *v10 = v9; v12 = X509_EXTENSION_create_by_NID(nullptr, v3, a2, v10); if ( !v12 ) { LABEL_11: ERR_put_error(34, 135, 65, (__int64)"crypto/x509v3/v3_conf.c", 168); CRYPTO_free(v15, (__int64)"crypto/x509v3/v3_conf.c", 169); ASN1_OCTET_STRING_free((__int64)v10); return nullptr; } ASN1_OCTET_STRING_free((__int64)v10); return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source