Function at 0x47e2bc
Capabilities:
Create process on windows
Query service status

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x47e2c4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47e8a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, 0x47e8b8
call fcn.004045f8
xor eax, eax
mov dword [ebp - 0x10], eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x47e325
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404a64
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
ja 0x47e772
cmp dword [ebp - 0xc], 0
jbe 0x47e33e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
push ebp
push 0x47e757
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3c]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.004095c8
lea eax, [ebp - 0x38]
mov edx, 0x47e8c8
call fcn.0040486c
mov eax, dword [ebp - 0x38]
call fcn.004094c4
test al, al
je 0x47e3ae
lea edx, [ebp - 0x44]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.004095c8
lea eax, [ebp - 0x40]
mov edx, 0x47e8c8
call fcn.0040486c
mov eax, dword [ebp - 0x40]
call fcn.004094e4
lea edx, [ebp - 0x4c]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.004095c8
lea eax, [ebp - 0x48]
mov edx, 0x47e8c8
call fcn.0040486c
mov eax, dword [ebp - 0x48]
call fcn.004094c4
test al, al
je 0x47e3e8
push 0x32
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x54]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.004095c8
lea eax, [ebp - 0x50]
mov edx, 0x47e8c8
call fcn.0040486c
mov eax, dword [ebp - 0x50]
call fcn.004094c4
test al, al
je 0x47e422
push 0x32
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x5c]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.004095c8
lea eax, [ebp - 0x58]
mov edx, 0x47e8c8
call fcn.0040486c
mov eax, dword [ebp - 0x58]
call fcn.004094c4
test al, al
je 0x47e45c
push 0x32
call sub.kernel32.dll_Sleep_1
push 0
push 0x47e8dc
push dword [ebp - 4]
push 0x47e8f8
lea edx, [ebp - 0x68]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.004095c8
push dword [ebp - 0x64]
push 0x47e908
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.00404924
mov eax, dword [ebp - 0x60]
call fcn.00404a64
push eax
call sub.kernel32.dll_WinExec
lea edx, [ebp - 0x70]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.004095c8
lea eax, [ebp - 0x6c]
mov edx, 0x47e8c8
call fcn.0040486c
mov eax, dword [ebp - 0x6c]
call fcn.004094c4
test al, al
jne 0x47e4e5
push 0xc8
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x78]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.004095c8
lea eax, [ebp - 0x74]
mov edx, 0x47e8c8
call fcn.0040486c
mov eax, dword [ebp - 0x74]
call fcn.004094c4
test al, al
jne 0x47e522
push 0xc8
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x80]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0x80]
lea edx, [ebp - 0x7c]
call fcn.004095c8
lea eax, [ebp - 0x7c]
mov edx, 0x47e8c8
call fcn.0040486c
mov eax, dword [ebp - 0x7c]
call fcn.004094c4
test al, al
jne 0x47e55f
push 0xc8
call sub.kernel32.dll_Sleep_1
lea edx, [ebp - 0x88]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x84]
call fcn.004095c8
lea eax, [ebp - 0x84]
mov edx, 0x47e8c8
call fcn.0040486c
mov eax, dword [ebp - 0x84]
call fcn.004094c4
test al, al
je 0x47e74d
mov dl, 1
mov eax, dword [0x418510]
call fcn.004036f4
mov dword [ebp - 0x14], eax
push 0x64
call sub.kernel32.dll_Sleep_1
xor eax, eax
push ebp
push 0x47e614
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x90]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.004095c8
lea eax, [ebp - 0x8c]
mov edx, 0x47e8c8
call fcn.0040486c
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47e669
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.00403724
mov edx, dword [ebp - 0x18]
mov eax, 0x47e920
call fcn.00404ba8
test eax, eax
jg 0x47e6d1
mov edx, dword [ebp - 0x18]
mov eax, 0x47e934
call fcn.00404ba8
test eax, eax
jg 0x47e6d1
mov edx, dword [ebp - 0x18]
mov eax, 0x47e948
call fcn.00404ba8
test eax, eax
jg 0x47e6d1
mov edx, dword [ebp - 0x18]
mov eax, 0x47e95c
call fcn.00404ba8
test eax, eax
jg 0x47e6d1
mov edx, dword [ebp - 0x18]
mov eax, 0x47e970
call fcn.00404ba8
test eax, eax
jle 0x47e6e0
mov eax, dword [ebp - 8]
mov edx, 0x47e984
call fcn.004045f8
jmp 0x47e70f
mov edx, dword [ebp - 0x18]
mov eax, 0x47e994
call fcn.00404ba8
test eax, eax
jg 0x47e702
mov edx, dword [ebp - 0x18]
mov eax, 0x47e9a4
call fcn.00404ba8
test eax, eax
jle 0x47e70f
mov eax, dword [ebp - 8]
mov edx, 0x47e9b4
call fcn.004045f8
lea edx, [ebp - 0xa0]
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.00442ae4
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.004095c8
lea eax, [ebp - 0x9c]
mov edx, 0x47e8c8
call fcn.0040486c
mov eax, dword [ebp - 0x9c]
call fcn.004094e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47e761
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.004422e0
jmp 0x47e87a
xor eax, eax
push ebp
push 0x47e846
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x30], 4
jne 0x47e7a2
mov eax, dword [ebp - 8]
mov edx, 0x47e984
call fcn.004045f8
jmp 0x47e81e
cmp dword [ebp - 0x30], 2
jne 0x47e7b7
mov eax, dword [ebp - 8]
mov edx, 0x47e9c4
call fcn.004045f8
jmp 0x47e81e
cmp dword [ebp - 0x30], 3
jne 0x47e7cc
mov eax, dword [ebp - 8]
mov edx, 0x47e9b4
call fcn.004045f8
jmp 0x47e81e
cmp dword [ebp - 0x30], 7
jne 0x47e7e1
mov eax, dword [ebp - 8]
mov edx, 0x47e9d4
call fcn.004045f8
jmp 0x47e81e
cmp dword [ebp - 0x30], 1
jne 0x47e7f6
mov eax, dword [ebp - 8]
mov edx, 0x47e9b4
call fcn.004045f8
jmp 0x47e81e
cmp dword [ebp - 0x30], 5
jne 0x47e80b
mov eax, dword [ebp - 8]
mov edx, 0x47e9c4
call fcn.004045f8
jmp 0x47e81e
cmp dword [ebp - 0x30], 6
jne 0x47e81e
mov eax, dword [ebp - 8]
mov edx, 0x47e9c4
call fcn.004045f8
cmp dword [ebp - 0xc], 0
jbe 0x47e82d
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x10], 0
jbe 0x47e83c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47e86e
mov eax, dword [0x489a88]
mov eax, dword [eax]
call fcn.004422e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e8a7
lea eax, [ebp - 0xa0]
mov edx, 0x1b
call fcn.004045c8
lea eax, [ebp - 0x18]
call fcn.004045a4
ret