// // ASN1_STRING_set from 0x7c2a98 to 0x7c2b6c (212 bytes) // // 33 xrefs: // > ASN1_TIME_to_generalizedtime @ 0x7c115c // > ASN1_TIME_to_generalizedtime @ 0x7c11d0 // > ASN1_UTCTIME_set_string @ 0x7c16a0 // > ASN1_STRING_copy @ 0x7c2b9c // > sub_7C46C4 @ 0x7c4ee4 // > OCSP_crlID_new @ 0x81e5e4 // > OCSP_url_svcloc_new @ 0x81e800 // > X509_ATTRIBUTE_set1_data @ 0x83e0ec // > X509_NAME_ENTRY_set_data @ 0x847a8c // > X509_alias_set1 @ 0x84b174 // > X509_keyid_set1 @ 0x84b23c // > a2i_GENERAL_NAME @ 0x850df0 // > sub_854B10 @ 0x854d64 // > sub_854B10 @ 0x854ea0 // > sub_854B10 @ 0x854fc4 // > ASN1_BIT_STRING_set @ 0x85faf4 // > ASN1_GENERALIZEDTIME_set_string @ 0x860f3c // > c2i_ASN1_INTEGER @ 0x86193c // > c2i_ASN1_INTEGER @ 0x861b20 // > ASN1_INTEGER_set_int64 @ 0x862148 // > ASN1_INTEGER_set_uint64 @ 0x8624e4 // > BN_to_ASN1_INTEGER @ 0x862604 // > ASN1_ENUMERATED_set_int64 @ 0x862aa0 // > BN_to_ASN1_ENUMERATED @ 0x862c70 // > ASN1_mbstring_ncopy @ 0x8633cc // > ASN1_OCTET_STRING_set @ 0x863a0c // > sub_864F7C @ 0x865410 // > sub_864F7C @ 0x86572c // > PKCS7_add1_attrib_digest @ 0x8bc01c // > s2i_ASN1_IA5STRING @ 0x8c4700 // > PKCS5_pbe2_set_scrypt @ 0x8c75e0 // > cms_DigestedData_do_final @ 0x8cf400 // > @ 0x5e47c // // 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 // const char *__fastcall ASN1_STRING_set(signed int *a1, const char *a2, int a3) { signed int v3; // r5 void *v6; // r7 const char *result; // r0 int v8; // r0 v3 = a3; if ( a3 < 0 ) { result = a2; if ( !a2 ) return result; v3 = strlen(a2); } v6 = (void *)a1[2]; if ( v3 >= *a1 || !v6 ) { v8 = CRYPTO_realloc(a1[2], v3 + 1, "crypto/asn1/asn1_lib.c", 277); a1[2] = v8; if ( !v8 ) { ERR_put_error(13, 186, 65, "crypto/asn1/asn1_lib.c", 279); a1[2] = (signed int)v6; return nullptr; } v6 = (void *)v8; } *a1 = v3; if ( !a2 ) return (_BYTE *)(&dword_0 + 1); memcpy(v6, a2, v3); result = (_BYTE *)(&dword_0 + 1); *(_BYTE *)(a1[2] + v3) = 0; return result; }