// // sub_1082650 from 0x1082650 to 0x108282c (476 bytes) // // 2 xrefs: // > X509_get1_email @ 0x108285c // > X509_REQ_get1_email @ 0x10828c0 // // 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:11 +0000 // int *__fastcall sub_1082650(unsigned int **a1, unsigned int *a2) { int *v4; // x23 int index_by_NID; // w19 __int64 entry; // x0 __int64 data; // x0 __int64 v8; // x20 __int64 v9; // x1 const char *v10; // x1 int v12; // w19 __int64 v13; // x0 __int64 v14; // x20 __int64 v15; // x1 const char *v16; // x1 v4 = nullptr; index_by_NID = -1; while ( 1 ) { index_by_NID = X509_NAME_get_index_by_NID(a1, 0x30u, index_by_NID); if ( index_by_NID < 0 ) break; entry = X509_NAME_get_entry((__int64 *)a1, index_by_NID); data = X509_NAME_ENTRY_get_data(entry); v8 = data; if ( *(_DWORD *)(data + 4) == 22 ) { v9 = *(_QWORD *)(data + 8); if ( v9 ) { if ( *(_DWORD *)data ) { if ( !v4 ) { v4 = (int *)OPENSSL_sk_new((__int64)sub_1080D98); if ( !v4 ) return nullptr; v9 = *(_QWORD *)(v8 + 8); } if ( (unsigned int)OPENSSL_sk_find((__int64)v4, v9) == -1 ) { v10 = CRYPTO_strdup(*(const char **)(v8 + 8), (__int64)"crypto/x509v3/v3_utl.c", 470); if ( !v10 || !(unsigned int)OPENSSL_sk_push(v4, (__int64)v10) ) goto LABEL_10; } } } } } v12 = 0; if ( (int)OPENSSL_sk_num(a2) > 0 ) { while ( 1 ) { v13 = OPENSSL_sk_value((__int64)a2, v12); if ( *(_DWORD *)v13 == 1 ) { v14 = *(_QWORD *)(v13 + 8); if ( *(_DWORD *)(v14 + 4) == 22 ) { v15 = *(_QWORD *)(v14 + 8); if ( v15 ) { if ( *(_DWORD *)v14 ) { if ( !v4 ) { v4 = (int *)OPENSSL_sk_new((__int64)sub_1080D98); if ( !v4 ) return nullptr; v15 = *(_QWORD *)(v14 + 8); } if ( (unsigned int)OPENSSL_sk_find((__int64)v4, v15) == -1 ) { v16 = CRYPTO_strdup(*(const char **)(v14 + 8), (__int64)"crypto/x509v3/v3_utl.c", 470); if ( !v16 || !(unsigned int)OPENSSL_sk_push(v4, (__int64)v16) ) break; } } } } } if ( ++v12 >= (int)OPENSSL_sk_num(a2) ) return v4; } LABEL_10: X509_email_free(v4); return nullptr; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source