Function at 0x1000151f
Capabilities:
Enumerate services
Query service status

Disassembly:
push ebp
lea ebp, [esp - 0x303e4]
mov eax, 0x303e4
call fcn.1000b6c0
push 0xfffffffffffffffe
push 0x1000f648
push 0x10005e80
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x9074
call fcn.1000b6c0
mov eax, dword [0x100112cc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x303e0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov eax, dword [0x10012164]
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x48], ebx
mov esi, 0x2000
push esi
call fcn.1000405f
mov dword [ebp - 0x24], eax
push esi
push ebx
push eax
call fcn.10009c10
push esi
call fcn.1000405f
mov dword [ebp - 0x38], eax
push esi
push ebx
push eax
call fcn.10009c10
add esp, 0x20
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x10001a1e
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push 0x9000
lea ecx, [ebp - 0x908c]
push ecx
push 3
mov ecx, dword [edi + 4]
neg ecx
sbb ecx, ecx
and ecx, 0x25
add ecx, 0xb
push ecx
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
call edi
test eax, eax
jne 0x10001641
mov eax, dword [ebp - 0x28]
add eax, 0x9000
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x908c]
push eax
push 3
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
neg eax
sbb eax, eax
and eax, 0x25
add eax, 0xb
push eax
push dword [ebp - 0x30]
call edi
test eax, eax
je 0x10001a1e
mov byte [ebp - 0x68], bl
xor eax, eax
lea edi, [ebp - 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 0x68], 2
mov byte [ebp + 0x103e0], bl
mov edi, 0xfffe
push edi
push ebx
lea eax, [ebp + 0x103e1]
push eax
call fcn.10009c10
mov byte [ebp + 0x3e0], bl
push edi
push ebx
lea eax, [ebp + 0x3e1]
push eax
call fcn.10009c10
mov dword [ebp - 0x20], ebx
mov byte [ebp + 0x203e0], bl
push edi
push ebx
lea eax, [ebp + 0x203e1]
push eax
call fcn.10009c10
add esp, 0x24
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x3c]
jae 0x1000197c
imul eax, eax, 0x24
mov dword [ebp - 0x1c], eax
lea edi, [ebp + eax - 0x908c]
push 0xf01ff
push dword [edi]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x44], eax
cmp eax, ebx
je 0x10001974
lea ecx, [ebp - 0x28]
push ecx
push esi
push dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x10001974
mov dword [ebp], ebx
push 0x3dc
push ebx
lea eax, [ebp + 4]
push eax
call fcn.10009c10
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
mov dword [ebp], eax
mov edi, dword [edi]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1000170c
sub eax, ecx
sar eax, 1
push ebx
push ebx
push 0x20
lea ecx, [ebp + 4]
push ecx
push eax
push edi
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetACP]
call edi
push eax
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + eax - 0x9088]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x34], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10001748
sub eax, dword [ebp - 0x34]
sar eax, 1
push ebx
push ebx
push 0x104
lea edx, [ebp + 0x24]
push edx
push eax
push ecx
push ebx
call edi
push eax
call esi
lea eax, [ebp - 0x28]
push eax
push 0x2000
push dword [ebp - 0x38]
push 1
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
test eax, eax
je 0x100017bb
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x100017bb
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x34], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x10001796
sub eax, dword [ebp - 0x34]
sar eax, 1
push ebx
push ebx
push 0x208
lea edx, [ebp + 0x128]
push edx
push eax
push ecx
push ebx
call edi
push eax
call esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov dword [ebp + 0x330], ecx
mov eax, dword [eax]
mov dword [ebp + 0x334], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax - 0x9080]
mov dword [ebp + 0x338], eax
mov dword [ebp - 0x8c], ebx
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push 0x24
lea eax, [ebp - 0x8c]
push eax
push ebx
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10001816
mov eax, dword [ebp - 0x70]
mov dword [ebp + 0x33c], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
mov eax, ecx
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, bx
jne 0x10001821
sub eax, edx
sar eax, 1
push ebx
push ebx
push 0x80
lea edx, [ebp + 0x340]
push edx
push eax
push ecx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetACP]
call edi
push eax
call esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
je 0x10001881
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x34], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1000185d
sub eax, dword [ebp - 0x34]
sar eax, 1
push ebx
push ebx
push 0x1f
lea edx, [ebp + 0x3c0]
push edx
push eax
push ecx
push ebx
call edi
push eax
call esi
jmp 0x10001897
push str.LocalSystem
push 0x20
lea eax, [ebp + 0x3c0]
push eax
call fcn.1000422b
add esp, 0xc
mov edi, dword [ebp - 0x20]
lea edi, [ebp + edi + 0x3e0]
mov ecx, pe_nt_image_headers32
lea esi, [ebp]
rep movsd dword es:[edi], dword [esi]
add dword [ebp - 0x20], 0x3e0
inc dword [ebp - 0x64]
cmp dword [ebp - 0x64], 0x3c
jne 0x10001966
push dword [ebp - 0x20]
call fcn.10003d42
mov esi, eax
push esi
call fcn.10004156
pop ecx
pop ecx
cmp eax, ebx
jne 0x100018d9
xor eax, eax
jmp 0x100018f4
push eax
push esi
lea eax, [ebp + 0x103e0]
push eax
push dword [ebp - 0x20]
lea eax, [ebp + 0x3e0]
push eax
call fcn.10001eba
add esp, 0x14
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
cmp eax, ebx
jne 0x10001906
mov dword [ebp - 0x1c], ebx
jmp 0x10001915
mov ecx, eax
and ecx, 7
je 0x10001912
sub eax, ecx
add eax, 8
mov dword [ebp - 0x1c], eax
push 1
mov esi, dword [ebp - 0x1c]
push esi
lea eax, [ebp + 0x103e0]
push eax
lea eax, [ebp + 0x203f8]
push eax
call fcn.100026e2
mov dword [ebp - 0x60], esi
push 6
pop ecx
lea esi, [ebp - 0x68]
lea edi, [ebp + 0x203e0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
add eax, 0x18
push eax
lea eax, [ebp + 0x203e0]
push eax
push dword [ebp - 0x50]
call fcn.10001f86
add esp, 0x1c
test eax, eax
je 0x10001a1e
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x64], ebx
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 0x2000
inc dword [ebp - 0x40]
jmp 0x1000169c
cmp dword [ebp - 0x64], ebx
je 0x10001a25
mov esi, dword [ebp - 0x20]
push esi
call fcn.10003d42
mov edi, eax
push edi
call fcn.10004156
pop ecx
pop ecx
cmp eax, ebx
jne 0x100019a0
xor eax, eax
jmp 0x100019b9
push eax
push edi
lea eax, [ebp + 0x103e0]
push eax
push esi
lea eax, [ebp + 0x3e0]
push eax
call fcn.10001eba
add esp, 0x14
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], eax
cmp eax, ebx
jne 0x100019c8
mov dword [ebp - 0x1c], ebx
jmp 0x100019d7
mov ecx, eax
and ecx, 7
je 0x100019d4
sub eax, ecx
add eax, 8
mov dword [ebp - 0x1c], eax
push 1
mov esi, dword [ebp - 0x1c]
push esi
lea eax, [ebp + 0x103e0]
push eax
lea eax, [ebp + 0x203f8]
push eax
call fcn.100026e2
mov dword [ebp - 0x60], esi
push 6
pop ecx
lea esi, [ebp - 0x68]
lea edi, [ebp + 0x203e0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
add eax, 0x18
push eax
lea eax, [ebp + 0x203e0]
push eax
push dword [ebp - 0x50]
call fcn.10001f86
add esp, 0x1c
test eax, eax
jne 0x10001a25
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.10001a5e
xor eax, eax
cmp dword [ebp - 0x2c], ebx
sete al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x303e0]
xor ecx, ebp
call fcn.1000406a
add ebp, 0x303e4
leave
ret