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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x80
push 3
push 0
lea ebx, [esi + 4]
push 0
push bind
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4756b0
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x3c
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
jne 0x4756dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x3c
ret
push 0
push 0
push 0
push 0
push str.Parallel_Arbitrator
push ebx
push 1
push 2
lea edi, [esi + 0x108]
push 1
push 0xf01ff
push edi
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x4757bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x475727
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x3c
ret
push 0xf01ff
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x47574c
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4757a0
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x34], 4
je 0x475872
push edi
push 0
push 0
push 0
push 0
push str.Parallel_Arbitrator
push ebx
push 1
push 1
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
mov eax, 0xfffffff7
pop ebx
add esp, 0x3c
ret
push edi
push 0
push 0
push 0
push 0
push str.Parallel_Arbitrator
push ebx
push 1
push 2
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
call edi
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4757eb
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], edx
cmp eax, 2
jne 0x475872
mov eax, 0xcccccccd
mul dword [esp + 0x2c]
shr edx, 3
cmp edx, 0x3e8
jae 0x475821
mov edx, 0x3e8
jmp 0x47582e
cmp edx, 0x2710
jbe 0x47582e
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 0x475872
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jbe 0x47585f
call ebx
mov edx, dword [esp + 0x28]
mov edi, eax
mov dword [esp + 0x10], edx
jmp 0x47586b
call ebx
mov ecx, dword [esp + 0x2c]
sub eax, edi
cmp eax, ecx
ja 0x475872
cmp dword [esp + 0x18], 2
je 0x475806
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret