// // ASN1_item_free from 0x7c8e20 to 0x7c9134 (788 bytes) // // 123 xrefs: // > d2i_SSL_SESSION @ 0x7b91cc // > d2i_SSL_SESSION @ 0x7b94d0 // > d2i_SSL_SESSION @ 0x7b94f4 // > d2i_SSL_SESSION @ 0x7b9570 // > ASN1_TIME_free @ 0x7c1014 // > PKCS8_PRIV_KEY_INFO_free @ 0x7c3e30 // > sub_7C5148 @ 0x7c57b4 // > sub_7C5148 @ 0x7c5c0c // > ASN1_NULL_free @ 0x7ca1ec // > ASN1_TYPE_free @ 0x7ca22c // > ASN1_PRINTABLE_free @ 0x7ca26c // > DISPLAYTEXT_free @ 0x7ca2ac // > DIRECTORYSTRING_free @ 0x7ca2ec // > X509_ALGOR_free @ 0x7ca7e4 // > X9_62_PENTANOMIAL_free @ 0x7e5b7c // > X9_62_CHARACTERISTIC_TWO_free @ 0x7e5ba4 // > ECPARAMETERS_free @ 0x7e5bc4 // > ECPKPARAMETERS_free @ 0x7e5c04 // > EC_PRIVATEKEY_free @ 0x7e5c54 // > OCSP_SIGNATURE_free @ 0x81d67c // > OCSP_CERTID_free @ 0x81d6bc // > OCSP_ONEREQ_free @ 0x81d6fc // > OCSP_REQINFO_free @ 0x81d73c // > OCSP_REQUEST_free @ 0x81d77c // > OCSP_RESPBYTES_free @ 0x81d7bc // > OCSP_RESPONSE_free @ 0x81d7fc // > OCSP_RESPID_free @ 0x81d83c // > OCSP_REVOKEDINFO_free @ 0x81d87c // > OCSP_CERTSTATUS_free @ 0x81d8bc // > OCSP_SINGLERESP_free @ 0x81d8fc // > OCSP_RESPDATA_free @ 0x81d93c // > OCSP_BASICRESP_free @ 0x81d97c // > OCSP_CRLID_free @ 0x81d9bc // > OCSP_SERVICELOC_free @ 0x81d9fc // > PKCS12_free @ 0x823e1c // > PKCS12_MAC_DATA_free @ 0x823e5c // > PKCS12_BAGS_free @ 0x823e9c // > PKCS12_SAFEBAG_free @ 0x823edc // > PKCS7_free @ 0x826640 // > PKCS7_SIGNED_free @ 0x8266a4 // > PKCS7_SIGNER_INFO_free @ 0x8266e4 // > PKCS7_ISSUER_AND_SERIAL_free @ 0x826724 // > PKCS7_ENVELOPE_free @ 0x826764 // > PKCS7_RECIP_INFO_free @ 0x8267a4 // > PKCS7_ENC_CONTENT_free @ 0x8267e4 // > PKCS7_SIGN_ENVELOPE_free @ 0x826824 // > PKCS7_ENCRYPT_free @ 0x826864 // > PKCS7_DIGEST_free @ 0x8268a4 // > RSA_PSS_PARAMS_free @ 0x82d2fc // > RSA_OAEP_PARAMS_free @ 0x82d33c // > X509_ATTRIBUTE_free @ 0x848c30 // > X509_REVOKED_free @ 0x849390 // > X509_CRL_INFO_free @ 0x8493e4 // > X509_CRL_free @ 0x849424 // > X509_EXTENSION_free @ 0x84965c // > X509_NAME_ENTRY_free @ 0x8496a0 // > X509_NAME_free @ 0x849f18 // > X509_PUBKEY_free @ 0x84a630 // > X509_REQ_INFO_free @ 0x84acc0 // > X509_REQ_free @ 0x84ad00 // > X509_CINF_free @ 0x84ae24 // > X509_free @ 0x84ae64 // > X509_CERT_AUX_free @ 0x84b11c // > IPAddressFamily_free @ 0x84c834 // > IPAddressRange_free @ 0x84da40 // > IPAddressOrRange_free @ 0x84da80 // > IPAddressChoice_free @ 0x84de2c // > AUTHORITY_KEYID_free @ 0x8507f4 // > ASRange_free @ 0x85226c // > ASIdOrRange_free @ 0x8522ac // > ASIdentifierChoice_free @ 0x8526b0 // > ASIdentifiers_free @ 0x8526f0 // > sub_8539DC @ 0x853afc // > POLICYINFO_free @ 0x8549e8 // > CERTIFICATEPOLICIES_free @ 0x854a28 // > POLICYQUALINFO_free @ 0x854a98 // > USERNOTICE_free @ 0x854ad8 // > NOTICEREF_free @ 0x855704 // > DIST_POINT_free @ 0x85592c // > DIST_POINT_NAME_free @ 0x856038 // > CRL_DIST_POINTS_free @ 0x8566a8 // > ISSUING_DIST_POINT_free @ 0x8566e8 // > OTHERNAME_free @ 0x856cac // > EDIPARTYNAME_free @ 0x856cec // > GENERAL_NAME_free @ 0x856d0c // > GENERAL_NAMES_free @ 0x856d4c // > ACCESS_DESCRIPTION_free @ 0x8570c0 // > AUTHORITY_INFO_ACCESS_free @ 0x857348 // > GENERAL_SUBTREE_free @ 0x8580b0 // > NAME_CONSTRAINTS_free @ 0x8580d0 // > PROXY_POLICY_free @ 0x85922c // > PROXY_CERT_INFO_EXTENSION_free @ 0x85926c // > POLICY_CONSTRAINTS_free @ 0x8592dc // > PKEY_USAGE_PERIOD_free @ 0x859580 // > POLICY_MAPPING_free @ 0x859614 // > X509V3_EXT_print @ 0x859b08 // > SXNETID_free @ 0x85b82c // > SXNET_free @ 0x85b86c // > TLS_FEATURE_free @ 0x85bfd8 // > ASN1_TYPE_get_int_octetstring @ 0x866aec // > NETSCAPE_CERT_SEQUENCE_free @ 0x867570 // > PBEPARAM_free @ 0x8675b0 // > X509_SIG_free @ 0x869b04 // > NETSCAPE_SPKAC_free @ 0x869b7c // > NETSCAPE_SPKI_free @ 0x869bbc // > X509_VAL_free @ 0x869bfc // > CMS_add0_recipient_key @ 0x8731c8 // > CMS_add1_recipient_cert @ 0x8740bc // > cms_RecipientInfo_kari_init @ 0x874b9c // > CMS_ContentInfo_free @ 0x874f08 // > CMS_add0_CertificateChoices @ 0x875810 // > CMS_add0_RevocationInfoChoice @ 0x875a34 // > cms_set1_ias @ 0x875dcc // > cms_set1_ias @ 0x875e24 // > CMS_add0_recipient_password @ 0x87624c // > CMS_add1_signer @ 0x8781c0 // > CMS_add1_signer @ 0x87820c // > BASIC_CONSTRAINTS_free @ 0x8c4058 // > EXTENDED_KEY_USAGE_free @ 0x8c4634 // > PBE2PARAM_free @ 0x8c6fdc // > PBKDF2PARAM_free @ 0x8c701c // > SCRYPT_PARAMS_free @ 0x8c748c // > @ 0x5dd6c // // 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 // _DWORD *__fastcall ASN1_item_free(_DWORD *result, unsigned __int8 *a2) { int v2; // r3 int v4; // r2 int (__fastcall *v5)(int, _DWORD *, unsigned __int8 *); // r7 int v6; // r0 int (__fastcall *v7)(_DWORD *, unsigned __int8 *); // r3 int v8; // r5 bool v9; // cc int v10; // r5 int v11; // r8 int *v12; // r9 int field_ptr; // r0 int choice_selector; // r0 int *v15; // r4 int v16; // r0 int v17; // r5 int *v18; // r5 int v19; // r0 _DWORD v20[2]; // [sp+4h] [bp-8h] BYREF v2 = *a2; v20[0] = result; v4 = *((_DWORD *)a2 + 4); if ( v2 ) { if ( !result ) return result; if ( v4 ) goto LABEL_4; switch ( v2 ) { case 1: case 6: v5 = nullptr; LABEL_34: result = (_DWORD *)asn1_do_lock(v20, -1, a2); if ( !result ) { asn1_enc_free(v20, a2); v17 = *((_DWORD *)a2 + 3); v9 = v17 <= 0; v10 = *((_DWORD *)a2 + 2) + 20 * v17; if ( !v9 ) { LABEL_21: v11 = 0; do { v10 -= 20; ++v11; v12 = (int *)asn1_do_adb(v20, v10, 0); if ( v12 ) { field_ptr = asn1_get_field_ptr(v20, v12); asn1_template_free(field_ptr, v12); } } while ( v11 < *((_DWORD *)a2 + 3) ); if ( v5 ) LABEL_26: ((void (__fastcall *)(int, _DWORD *, unsigned __int8 *, _DWORD))v5)(3, v20, a2, 0); } result = (_DWORD *)CRYPTO_free(v20[0], "crypto/asn1/tasn_fre.c", 119); } break; case 2: LABEL_29: choice_selector = asn1_get_choice_selector(v20, a2); if ( choice_selector >= 0 && choice_selector < *((_DWORD *)a2 + 3) ) { v15 = (int *)(*((_DWORD *)a2 + 2) + 20 * choice_selector); v16 = asn1_get_field_ptr(v20, v15); asn1_template_free(v16, v15); } LABEL_11: result = (_DWORD *)CRYPTO_free(v20[0], "crypto/asn1/tasn_fre.c", 79); break; case 5: return asn1_primitive_free(v20, (int)a2, 0); default: return result; } } else { if ( v4 ) { LABEL_4: v5 = *(int (__fastcall **)(int, _DWORD *, unsigned __int8 *))(v4 + 16); if ( v5 ) { switch ( v2 ) { case 0: goto LABEL_14; case 1: case 6: result = (_DWORD *)asn1_do_lock(v20, -1, a2); if ( result ) return result; result = (_DWORD *)v5(2, v20, a2); if ( result == (int *)((char *)&dword_0 + 2) ) return result; asn1_enc_free(v20, a2); v8 = *((_DWORD *)a2 + 3); v9 = v8 <= 0; v10 = *((_DWORD *)a2 + 2) + 20 * v8; if ( !v9 ) goto LABEL_21; goto LABEL_26; case 2: result = (_DWORD *)((int (__fastcall *)(int, _DWORD *, unsigned __int8 *, _DWORD))v5)(2, v20, a2, 0); if ( result == (int *)((char *)&dword_0 + 2) ) return result; v6 = asn1_get_choice_selector(v20, a2); if ( v6 >= 0 && v6 < *((_DWORD *)a2 + 3) ) { v18 = (int *)(*((_DWORD *)a2 + 2) + 20 * v6); v19 = asn1_get_field_ptr(v20, v18); asn1_template_free(v19, v18); } ((void (__fastcall *)(int, _DWORD *, unsigned __int8 *, _DWORD))v5)(3, v20, a2, 0); goto LABEL_11; case 4: goto LABEL_16; case 5: return asn1_primitive_free(v20, (int)a2, 0); default: return result; } } switch ( v2 ) { case 0: goto LABEL_14; case 1: case 6: goto LABEL_34; case 2: goto LABEL_29; case 4: LABEL_16: v7 = *(int (__fastcall **)(_DWORD *, unsigned __int8 *))(v4 + 8); if ( v7 ) result = (_DWORD *)v7(v20, a2); break; case 5: return asn1_primitive_free(v20, (int)a2, 0); default: return result; } return result; } LABEL_14: if ( *((_DWORD *)a2 + 2) ) return (_DWORD *)asn1_template_free((int)v20, *((int **)a2 + 2)); else return asn1_primitive_free(v20, (int)a2, 0); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source