Function at 0x4029c0
Capabilities:
Create process on windows
Create process suspended
Enumerate services

Disassembly:
push 0xffffffffffffffff
push 0x40e578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x75]
mov byte [esp + 0x74], bl
mov dword [esp + 0x30], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x180], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x188]
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
je 0x402def
cmp dword [esp + 0x18c], ebx
je 0x402def
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebx
je 0x402def
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push ebx
push 3
push 0x30
push esi
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004094fa
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x402ac7
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x194]
cmp ecx, ebx
je 0x402e08
mov al, byte [ecx - 1]
test al, al
je 0x402ab8
cmp al, 0xff
je 0x402ab8
dec al
mov byte [ecx - 1], al
jmp 0x402e08
dec ecx
push ecx
call fcn.00408750
add esp, 4
jmp 0x402e08
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 edi
push 3
push 0x30
push esi
call ebp
test eax, eax
jne 0x402af2
push edi
call fcn.00409491
add esp, 4
jmp 0x402a8d
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp eax, ebx
jbe 0x402b23
mov ebx, edi
mov ecx, dword [esp + 0x18c]
mov eax, dword [ebx]
push ecx
push eax
call fcn.00409323
add esp, 8
test eax, eax
je 0x402b21
mov eax, dword [esp + 0x10]
inc ebp
add ebx, 0x24
cmp ebp, eax
jb 0x402afe
xor ebx, ebx
push edi
call fcn.00409491
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebp, dword [esp + 0x10]
jb 0x402b72
mov ecx, dword [esp + 0x194]
cmp ecx, ebx
je 0x402b68
mov al, byte [ecx - 1]
test al, al
je 0x402b5e
cmp al, 0xff
je 0x402b5e
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x402e0a
dec ecx
push ecx
call fcn.00408750
add esp, 4
mov eax, 1
jmp 0x402e0a
mov edi, dword [esp + 0x194]
cmp edi, ebx
jne 0x402b82
mov edi, 0x40f15c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x74]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x411088
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x30], 0x44
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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
mov dword [esp + 0x34], ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x188]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x64], ebx
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
mov word [esp + 0x62], bx
rep movsb byte es:[edi], byte [esi]
mov edi, str.__remove
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x38], ebx
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
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], ebx
push ecx
push ebx
push ebx
push 0x20
push 1
push ebx
lea edx, [esp + 0x90]
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402dbc
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
mov eax, dword [0x4110a0]
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jle 0x402d7b
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebx
je 0x402dbc
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push ebx
push 3
push 0x30
push esi
call ebp
mov edx, dword [esp + 0x14]
push edx
call fcn.004094fa
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x402db5
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push edi
push 3
push 0x30
push esi
call ebp
test eax, eax
je 0x402dac
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp eax, ebx
jbe 0x402d43
mov ebx, edi
mov ecx, dword [esp + 0x18c]
mov eax, dword [ebx]
push ecx
push eax
call fcn.00409323
add esp, 8
test eax, eax
je 0x402d41
mov eax, dword [esp + 0x10]
inc ebp
add ebx, 0x24
cmp ebp, eax
jb 0x402d1e
xor ebx, ebx
push edi
call fcn.00409491
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebp, dword [esp + 0x10]
jae 0x402d7b
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4110a0]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x402c96
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x194]
cmp edx, 3
setl dl
and edx, 0xff
cmp ecx, ebx
mov esi, edx
je 0x402deb
mov al, byte [ecx - 1]
test al, al
je 0x402de1
cmp al, 0xff
je 0x402de1
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x402e0a
push edi
call fcn.00409491
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x194]
cmp ecx, ebx
je 0x402e08
mov al, byte [ecx - 1]
test al, al
je 0x402ab8
cmp al, 0xff
je 0x402ab8
dec al
mov byte [ecx - 1], al
jmp 0x402e08
dec ecx
push ecx
call fcn.00408750
add esp, 4
mov eax, esi
jmp 0x402e0a
push 1
lea ecx, [esp + 0x194]
mov dword [esp + 0x184], 0xffffffff
call fcn.004021d0
xor eax, eax
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x174
ret