IopInitializeSystemVariableService
VOID __stdcall IopInitializeSystemVariableService(_BYTE *a1, INT64 a2){
INT64 v2;
INT64 Length;
UINT64 Lengtha;
UINT64 *ResultLength;
UINT64 v6;
VOID *KeyHandle;
_UNICODE_STRING DestinationString;
_OBJECT_ATTRIBUTES ObjectAttributes;
char KeyValueInformation[4];
int v11;
int v12;
int v13;
*(&ObjectAttributes.Length + 1) = 0;
*(&ObjectAttributes.Attributes + 1) = 0;
LODWORD(v6) = 0;
DestinationString = 0i64;
TraceLoggingRegisterEx_EtwRegister_EtwSetInformation(&dword_140C044D0);
RtlInitUnicodeString(
&DestinationString,
L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\WindowsTrustedRT\\Parameters");
ObjectAttributes.RootDirectory = 0i64;
ObjectAttributes.ObjectName = &DestinationString;
ObjectAttributes.Length = 48;
ObjectAttributes.Attributes = 576;
*(_OWORD *)&ObjectAttributes.SecurityDescriptor = 0i64;
if( ZwOpenKey(&KeyHandle, 0x20019ui64, &ObjectAttributes, v2, Length, (INT64)ResultLength, v6, 0i64) >= 0 )
{
RtlInitUnicodeString(&DestinationString, L"Flags");
LODWORD(Lengtha) = 16;
if( ZwQueryValueKey(KeyHandle, &DestinationString, KeyValuePartialInformation, KeyValueInformation, Lengtha, &v6) >= 0
&& v11 == 4
&& v12 == 4 )
{
*(&stru_140C452E0 + 152) = v13;
}
}
if( KeyHandle )
ZwClose((_HANDLE)KeyHandle);
}Referenced by:
IoInitSystemPreDrivers