Function at 0x402350
Capabilities:
Delete file
Delete registry value
Get common file path
Persist via run registry key
Set file attributes

Disassembly:
sub esp, 0x42c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 4]
push ebx
push ebp
push esi
push edi
mov edi, 0x41c3dc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.rggadog.VXD]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
test eax, eax
jne 0x4023e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4023e6
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x14]
push 0x80
push ecx
call ebp
lea edx, [esp + 0x14]
push edx
call esi
jmp 0x4023ec
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x338]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x440]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp eax, 1
jne 0x40252c
call fcn.00404240
lea ecx, [esp + 0x234]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x234]
lea eax, [esp + 0x130]
push edx
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x130]
push str.inf_rcugawdm.inf
push ecx
call ebx
lea edx, [esp + 0x130]
push edx
call esi
test eax, eax
jne 0x402486
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x402486
lea eax, [esp + 0x130]
push 0x80
push eax
call ebp
lea ecx, [esp + 0x130]
push ecx
call esi
lea edx, [esp + 0x234]
lea eax, [esp + 0x130]
push edx
push eax
call edi
lea ecx, [esp + 0x130]
push str.inf_rcugawdm.pnf
push ecx
call ebx
lea edx, [esp + 0x130]
push edx
call esi
test eax, eax
jne 0x4024d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4024d9
lea eax, [esp + 0x130]
push 0x80
push eax
call ebp
lea ecx, [esp + 0x130]
push ecx
call esi
lea edx, [esp + 0x234]
lea eax, [esp + 0x130]
push edx
push eax
call edi
lea ecx, [esp + 0x130]
push str._system32driversRCUGAWDM.SYS
push ecx
call ebx
lea edx, [esp + 0x130]
push edx
call esi
test eax, eax
jne 0x40252c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40252c
lea eax, [esp + 0x130]
push 0x80
push eax
call ebp
lea ecx, [esp + 0x130]
push ecx
call esi
lea edx, [esp + 0x338]
lea eax, [esp + 0x2c]
push edx
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x2c]
push ecx
call ebp
mov cl, byte [esp + eax + 0x2b]
mov bl, 0x5c
cmp cl, bl
je 0x40255b
mov byte [esp + eax + 0x2c], bl
mov byte [esp + eax + 0x2d], 0
mov edx, dword [str.rggadog.VXD]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x2c]
push ecx
call esi
test eax, eax
jne 0x40259a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40259a
lea edx, [esp + 0x2c]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x2c]
push eax
call esi
lea ecx, [esp + 0x338]
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
lea eax, [esp + 0x2c]
push eax
call ebp
cmp byte [esp + eax + 0x2b], bl
je 0x4025bf
mov byte [esp + eax + 0x2c], bl
mov byte [esp + eax + 0x2d], 0
mov ecx, dword [str.rggadog.exe]
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x2c]
push eax
call esi
test eax, eax
jne 0x4025fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4025fe
lea ecx, [esp + 0x2c]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x2c]
push edx
call esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
jne 0x402641
mov ecx, dword [str.GADOGStart]
mov edx, dword [esp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x42c
ret