Function at 0x401cc0
Capabilities:
Check for time delay via gettickcount
Create service
Modify service
Persist via windows service
Query service status
Start service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408c0b
push eax
mov dword fs:[0], esp
sub esp, 0x538
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x401f3d
push 0xf01ff
push str.Qvod_Terminal
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401db8
mov ecx, 0x41
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dl, byte [esp + eax + 0x2c]
lea ecx, [esp + eax + 0x2c]
cmp dl, 0x5c
je 0x401d4e
mov edx, eax
dec eax
test edx, edx
jle 0x401d4e
mov byte [ecx], 0
mov dl, byte [ecx - 1]
dec ecx
cmp dl, 0x5c
jne 0x401d3b
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x234]
push str.QvodTerminal.exe
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x238]
push eax
push str._s_s
push ecx
call fcn.004032ab
add esp, 0x10
lea edx, [esp + 0x234]
push 0
push 0
push 0
push 0
push 0
push edx
push 1
push 2
push 0x110
push 0xf01ff
push str.Qvod_Terminal
push str.Qvod_Terminal
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x401f3d
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.QVOD
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
lea ecx, [esp + 0x338]
call fcn.00402ed0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x130]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x134]
mov dword [esp + 0x550], 0
push ecx
push str.background
push str.Option
lea ecx, [esp + 0x348]
call fcn.00402f50
test eax, eax
je 0x401e3a
cmp byte [esp + 0x130], 0x4e
je 0x401e3a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
jmp 0x401e4c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 3
push 0x110
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x401f26
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401f26
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
mov ebp, dword [esp + 0x28]
mov edi, eax
cmp dword [esp + 0x18], 2
jne 0x401ef7
mov eax, 0xcccccccd
mul dword [esp + 0x2c]
shr edx, 3
cmp edx, 0x3e8
jae 0x401eb0
mov edx, 0x3e8
jmp 0x401ebd
cmp edx, 0x2710
jbe 0x401ebd
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401ef7
cmp dword [esp + 0x28], ebp
jbe 0x401ee4
call ebx
mov ebp, dword [esp + 0x28]
mov edi, eax
jmp 0x401ef0
call ebx
mov ecx, dword [esp + 0x2c]
sub eax, edi
cmp eax, ecx
ja 0x401ef7
cmp dword [esp + 0x18], 2
je 0x401e95
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x18]
pop ebp
cmp eax, 4
jne 0x401f26
lea ecx, [esp + 0x338]
mov dword [esp + 0x54c], 0xffffffff
call fcn.00402f40
mov eax, 1
jmp 0x401f3f
lea ecx, [esp + 0x338]
mov dword [esp + 0x54c], 0xffffffff
call fcn.00402f40
xor eax, eax
mov ecx, dword [esp + 0x544]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x544
ret