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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x26c
test eax, eax
push ebx
push esi
push edi
je 0x4022da
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x402134
pop edi
pop esi
pop ebx
add esp, 0x26c
ret
push 0xf01ff
push str.Qvod_Terminal
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4021fb
mov ecx, 0x41
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dl, byte [esp + eax + 0x70]
lea ecx, [esp + eax + 0x70]
cmp dl, 0x5c
je 0x40218b
mov edx, eax
dec eax
test edx, edx
jle 0x40218b
mov byte [ecx], 0
mov dl, byte [ecx - 1]
dec ecx
cmp dl, 0x5c
jne 0x402178
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x174]
push str.QvodTerminal.exe
rep stosd dword es:[edi], eax
lea eax, [esp + 0x74]
lea ecx, [esp + 0x178]
push eax
push str._s_s
push ecx
call fcn.00403e14
add esp, 0x10
lea edx, [esp + 0x174]
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
jne 0x4021fb
pop edi
pop esi
pop ebx
add esp, 0x26c
ret
lea eax, [esp + 0x28]
mov dword [esp + 0x28], str.QVOD
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x40222a
pop edi
pop esi
pop ebx
add esp, 0x26c
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x402244
pop edi
pop esi
pop ebx
add esp, 0x26c
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
mov ebp, dword [esp + 0x24]
mov edi, eax
cmp dword [esp + 0x14], 2
jne 0x4022bc
mov eax, 0xcccccccd
mul dword [esp + 0x28]
shr edx, 3
cmp edx, 0x3e8
jae 0x402275
mov edx, 0x3e8
jmp 0x402282
cmp edx, 0x2710
jbe 0x402282
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4022bc
cmp dword [esp + 0x24], ebp
jbe 0x4022a9
call ebx
mov ebp, dword [esp + 0x24]
mov edi, eax
jmp 0x4022b5
call ebx
mov ecx, dword [esp + 0x28]
sub eax, edi
cmp eax, ecx
ja 0x4022bc
cmp dword [esp + 0x14], 2
je 0x40225a
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x14]
xor eax, eax
pop ebp
cmp ecx, 4
pop edi
pop esi
sete al
pop ebx
add esp, 0x26c
ret
mov edx, dword [esp + 0x280]
test edx, edx
je 0x402333
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
add esp, 0x26c
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x26c
ret