Function at 0x401870
Capabilities:
Get common file path
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4165c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
mov eax, dword [0x41c6a8]
push ebp
push esi
push edi
mov dword [esp + 0xc], eax
push 0x100
push 0x41dab0
mov dword [esp + 0x294], 0
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x100
push 0x41d9b0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x41dab0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x184]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x294]
and ecx, 3
cmp eax, 2
rep movsb byte es:[edi], byte [esi]
je 0x401902
cmp eax, 3
jne 0x401aa7
mov edi, str.rggadog.vxd
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x84]
push ecx
push str.135
call fcn.004020f0
add esp, 8
test eax, eax
jne 0x401949
mov ebp, 0xbbb
mov edi, str.rggadog.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x84]
push ecx
push str.134
call fcn.004020f0
add esp, 8
test eax, eax
jne 0x401990
mov ebp, 0xbbb
lea edx, [esp + 0x18]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4019b5
mov ebp, 0xbbc
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.RunServices
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4019e5
mov ebp, 0xbbc
push 0x41dab0
lea ecx, [esp + 0x10]
call fcn.004101ec
lea eax, [esp + 0xc]
push str._rggadog.exe
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004102b7
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x290], 1
call fcn.0041019c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], 0
call fcn.00410145
push 1
lea ecx, [esp + 0x10]
call fcn.0041032b
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
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]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x20]
mov byte [esp + ecx + 0x21], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
push str.GADogStart
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401a98
mov ebp, 0xbbc
push 0x42
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x294]
cmp dword [esp + 0x298], 1
jne 0x401bf6
cmp eax, 1
je 0x401ac3
cmp eax, 3
jne 0x401bf6
call fcn.00404240
or ecx, 0xffffffff
lea edi, [esp + 0x184]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x41dab0
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, str.32drivers
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x41dab0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x84]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.rcugawdm.sys
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x84]
push ecx
push str.132
call fcn.004020f0
add esp, 8
test eax, eax
jne 0x401b61
mov ebp, 0xbbb
or ecx, 0xffffffff
mov edi, 0x41d9b0
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x41dab0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.inf
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x41dab0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x84]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.rcugawdm.inf
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x84]
push ecx
push str.131
call fcn.004020f0
add esp, 8
test eax, eax
jne 0x401bf6
mov ebp, 0xbbb
lea ecx, [esp + 0xc]
mov dword [esp + 0x28c], 0xffffffff
call fcn.00410145
mov ecx, dword [esp + 0x284]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x284
ret