// // i2v_GENERAL_NAME from 0xa653fc to 0xa656a0 (676 bytes) // // 3 xrefs: // > i2v_GENERAL_NAMES @ 0xa6570c // > sub_A6BB68 @ 0xa6bbb0 // > @ 0x822dc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:08:36 +0000 // int __fastcall i2v_GENERAL_NAME(int a1, int *a2, int a3) { int v3; // r3 _DWORD *v5; // r3 unsigned __int8 *v6; // r7 unsigned __int8 *v7; // r4 unsigned __int8 *v8; // r7 int v9; // [sp+14h] [bp-110h] BYREF char v10[8]; // [sp+18h] [bp-10Ch] BYREF char v11[260]; // [sp+20h] [bp-104h] BYREF v3 = *a2; v9 = a3; switch ( v3 ) { case 0: X509V3_add_value("othername", "", &v9); return v9; case 1: X509V3_add_value_uchar("email", *(_DWORD *)(a2[1] + 8), &v9); return v9; case 2: X509V3_add_value_uchar("DNS", *(_DWORD *)(a2[1] + 8), &v9); return v9; case 3: X509V3_add_value("X400Name", "", &v9); return v9; case 4: X509_NAME_oneline((int *)a2[1], v11, 0x100u); X509V3_add_value("DirName", v11, &v9); return v9; case 5: X509V3_add_value("EdiPartyName", "", &v9); return v9; case 6: X509V3_add_value_uchar("URI", *(_DWORD *)(a2[1] + 8), &v9); return v9; case 7: v5 = (_DWORD *)a2[1]; v6 = (unsigned __int8 *)v5[2]; if ( *v5 == 4 ) { BIO_snprintf(v11, 0x100u, "%d.%d.%d.%d", *v6, v6[1], v6[2], v6[3]); LABEL_15: X509V3_add_value("IP Address", v11, &v9); return v9; } if ( *v5 == 16 ) { v11[0] = 0; BIO_snprintf(v10, 5u, "%X", v6[1] | (*v6 << 8)); strcat(v11, v10); v7 = v6 + 4; v8 = v6 + 18; do { v7 += 2; strcat(v11, ":"); BIO_snprintf(v10, 5u, "%X", *(v7 - 3) | (*(v7 - 4) << 8)); strcat(v11, v10); } while ( v7 != v8 ); goto LABEL_15; } X509V3_add_value("IP Address", "", &v9); return v9; case 8: i2t_ASN1_OBJECT((int)v11, 256, a2[1]); X509V3_add_value("Registered ID", v11, &v9); return v9; default: return v9; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source