// // sub_FED948 from 0xfed948 to 0xfedabc (372 bytes) // // 3 xrefs: // > sub_FEDB60 @ 0xfedbe0 // > ASN1_item_ex_new @ 0xfedfc8 // > ASN1_item_ex_new @ 0xfee2c4 // // 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:15:43 +0000 // bool __fastcall sub_FED948(__int64 *a1, __int64 a2, int a3) { __int64 v3; // x5 unsigned int (*v6)(void); // x5 _BOOL4 v7; // w1 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x2 unsigned int v12; // w0 __int64 v13; // x1 __int64 v14; // x0 __int64 v15; // x0 if ( a2 ) { v3 = *(_QWORD *)(a2 + 32); if ( v3 ) { v6 = *(unsigned int (**)(void))(v3 + 16); if ( v6 ) return v6(); } if ( *(_BYTE *)a2 != 5 ) { v9 = *(_QWORD *)(a2 + 8); switch ( (int)v9 ) { case -4: v14 = CRYPTO_malloc(16, "crypto/asn1/tasn_new.c", 288); if ( !v14 ) return 0; *(_QWORD *)(v14 + 8) = 0; *(_DWORD *)v14 = -1; v7 = 1; *a1 = v14; break; case 1: v7 = 1; *(_DWORD *)a1 = *(_QWORD *)(a2 + 40); return v7; case 5: v7 = 1; *a1 = 1; return v7; case 6: *a1 = OBJ_nid2obj(0); return 1; default: if ( !a3 ) goto LABEL_9; goto LABEL_21; } return v7; } LODWORD(v9) = -1; if ( a3 ) { LABEL_21: v11 = *a1; *(_QWORD *)v11 = 0; *(_QWORD *)(v11 + 8) = 0; *(_DWORD *)(v11 + 4) = v9; *(_QWORD *)(v11 + 16) = 128; v15 = *a1; if ( *(_BYTE *)a2 != 5 ) return v15 != 0; v13 = 192; v12 = v15 != 0; } else { LABEL_9: v10 = ASN1_STRING_type_new(v9); *a1 = v10; v11 = v10; v7 = v10 != 0; v12 = v7 && *(_BYTE *)a2 == 5; if ( !v7 || *(_BYTE *)a2 != 5 ) return v7; v13 = *(_QWORD *)(v11 + 16) | 0x40LL; } *(_QWORD *)(v11 + 16) = v13; return v12; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source