Function at 0x401f60
Capabilities:
Create process on windows
Create process suspended
Enumerate services
Get common file path

Disassembly:
sub esp, 0x168
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x75]
mov byte [esp + 0x74], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebp, ebp
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x14], ebp
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x17c]
cmp eax, ebp
mov dword [esp + 0x20], ebp
je 0x402036
cmp dword [esp + 0x180], ebp
je 0x402036
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
je 0x402036
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push ebp
push ebp
push 3
push 0x30
push edi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00404a6a
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x40202f
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
push esi
push 3
push 0x30
push edi
call ebx
test eax, eax
jne 0x402043
push esi
call fcn.00404a01
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x168
ret
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x402076
mov ebx, esi
mov ecx, dword [esp + 0x180]
mov eax, dword [ebx]
push ecx
push eax
call fcn.00404893
add esp, 8
test eax, eax
je 0x402070
mov eax, dword [esp + 0x10]
inc ebp
add ebx, 0x24
cmp ebp, eax
jb 0x40204d
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push esi
call fcn.00404a01
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebp, dword [esp + 0x10]
jb 0x40209c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x168
ret
lea edx, [esp + 0x74]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x40e060
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x74]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x30], 0x44
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x74]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x17c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x20]
and ecx, 3
xor ebp, ebp
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebp
push ebp
push 0x20
push 1
push ebp
push ebp
lea edx, [esp + 0x94]
push str._unregserver
push edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x8c], ebp
mov word [esp + 0x8a], bp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x84], ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402036
mov dword [esp + 0x1c], ebp
jmp 0x402165
xor ebp, ebp
push 0xf003f
push ebp
push ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
je 0x402036
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push ebp
push ebp
push 3
push 0x30
push edi
call ebx
mov eax, dword [esp + 0x14]
push eax
call fcn.00404a6a
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x40202f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
push esi
push 3
push 0x30
push edi
call ebx
test eax, eax
je 0x402026
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40220e
mov ebx, esi
mov edx, dword [esp + 0x180]
mov eax, dword [ebx]
push edx
push eax
call fcn.00404893
add esp, 8
test eax, eax
je 0x402208
mov eax, dword [esp + 0x10]
inc ebp
add ebx, 0x24
cmp ebp, eax
jb 0x4021e5
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push esi
call fcn.00404a01
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebp, dword [esp + 0x10]
jae 0x402241
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x64
mov dword [esp + 0x1c], eax
jl 0x402163
mov edx, dword [esp + 0x1c]
pop edi
cmp edx, 0x64
pop esi
setl al
pop ebp
and eax, 0xff
pop ebx
add esp, 0x168
ret