// // o2i_SCT_signature from 0xd83080 to 0xd831c4 (324 bytes) // // 3 xrefs: // > o2i_SCT @ 0xd83318 // > SCT_new_from_base64 @ 0xe2461c // > @ 0x88170 // // 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 // __int64 __fastcall o2i_SCT_signature(__int64 a1, _BYTE **a2, unsigned __int64 a3) { _BYTE *v6; // x20 _BYTE *v7; // x24 unsigned __int64 v8; // x19 unsigned __int64 v9; // x20 __int64 result; // x0 if ( *(_DWORD *)a1 ) { ERR_put_error(50, 112, 103, "crypto/ct/ct_oct.c", 31); return 0xFFFFFFFFLL; } else if ( a3 <= 4 ) { ERR_put_error(50, 112, 107, "crypto/ct/ct_oct.c", 42); return 0xFFFFFFFFLL; } else { v6 = *a2; *(_BYTE *)(a1 + 64) = **a2; *(_BYTE *)(a1 + 65) = v6[1]; if ( (unsigned int)SCT_get_signature_nid() ) { v7 = v6 + 4; v8 = (unsigned __int8)v6[3] | ((unsigned __int8)v6[2] << 8); v9 = *a2 - (v6 + 4) + a3; if ( v8 > v9 ) { ERR_put_error(50, 112, 107, "crypto/ct/ct_oct.c", 58); return 0xFFFFFFFFLL; } else if ( (unsigned int)SCT_set1_signature(a1, v7, v8) == 1 ) { result = (unsigned int)(a3 - (v9 - v8)); *a2 = &v7[v8]; } else { return 0xFFFFFFFFLL; } } else { ERR_put_error(50, 112, 107, "crypto/ct/ct_oct.c", 51); return 0xFFFFFFFFLL; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source