Function at 0x10089800
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101899d7
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x101ed40c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xd8], ecx
push 4
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x114], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x1008988b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x101a27cc
push 0x101f3e58
call fcn.100450a0
add esp, 8
mov ecx, eax
call fcn.100804b0
push eax
call fcn.100888d0
add esp, 4
mov byte [ebp - 0xcd], 0
jmp 0x10089ef5
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
lea eax, [ebp - 0x18]
push 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc8], 0
push eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 3
push 0x30
push 0
push edi
mov dword [ebp - 0x18], 0
call esi
lea eax, [ebp - 0xcd]
mov dword [ebp - 0x108], 0
push eax
push dword [ebp - 0xc8]
xorps xmm0, xmm0
lea ecx, [ebp - 0x110]
movq qword [ebp - 0x110], xmm0
call fcn.100889f0
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0xc8]
push dword [ebp - 0x110]
push 3
push 0x30
push 0
push edi
call esi
test eax, eax
jne 0x10089960
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumServicesStatusEx_failed:
push 0x101f3e58
call fcn.100450a0
add esp, 8
mov ecx, eax
call fcn.100804b0
push eax
call fcn.100888d0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push edi
call esi
mov byte [ebp - 0xcd], 0
jmp 0x10089ea5
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0xf4], 0
jbe 0x10089e98
mov esi, dword [ebp - 0x110]
mov dword [ebp - 0xf8], esi
mov edx, dword [esi]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x30], ax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
lea eax, [ecx + 2]
mov dword [ebp - 0xd4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100899a1
sub ecx, dword [ebp - 0xd4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.10044c60
xor eax, eax
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], 7
mov word [ebp - 0xac], ax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 4
lea eax, [ecx + 2]
mov dword [ebp - 0xd4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10089a44
sub ecx, dword [ebp - 0xd4]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc4]
call fcn.10044c60
mov edx, dword [esi + 4]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10089a70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xac]
call fcn.10044c60
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 1
cmovae eax, dword [ebp - 0x30]
push eax
push edi
mov dword [ebp - 0xcc], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 5
push eax
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
lea eax, [ebp - 0xcd]
mov dword [ebp - 0xfc], 0
push eax
push dword [ebp - 0xcc]
xorps xmm0, xmm0
lea ecx, [ebp - 0x104]
movq qword [ebp - 0x104], xmm0
call fcn.100889f0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0xcc]
mov eax, dword [ebp - 0x104]
push eax
push 1
push esi
mov dword [ebp - 0xd4], eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
test eax, eax
je 0x10089b87
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax]
test edx, edx
je 0x10089b87
xor eax, eax
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], ax
mov eax, edx
mov dword [ebp - 0xdc], 7
lea ecx, [eax + 2]
mov dword [ebp - 0xd4], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10089b57
sub eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xf0]
sar eax, 1
push eax
push edx
call fcn.10044c60
lea ecx, [ebp - 0x104]
call fcn.10088b30
jmp 0x10089c11
xor eax, eax
mov dword [ebp - 0xe0], 0
push eax
push 0x1019e5ec
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xdc], 7
mov word [ebp - 0xf0], ax
call fcn.10044c60
mov ecx, dword [ebp - 0xd4]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x10089c11
mov edx, dword [ebp - 0xfc]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10089be9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10089f30
push edx
push ecx
call fcn.1012659a
add esp, 8
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov byte [ebp - 4], 4
test esi, esi
je 0x10089c20
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x94]
call fcn.100424a0
movups xmm0, xmmword [ebp - 0xf0]
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x94], xmm0
lea eax, [ebp - 0xf0]
movq xmm0, qword [ebp - 0xe0]
push edi
push eax
movq qword [ebp - 0x84], xmm0
call fcn.10089570
mov esi, eax
lea eax, [ebp - 0x7c]
cmp eax, esi
je 0x10089c94
mov ecx, eax
call fcn.100424a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x7c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x6c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0xdc]
cmp edx, 8
jb 0x10089cd4
mov ecx, dword [ebp - 0xf0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10089cca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10089f30
push edx
push ecx
call fcn.1012659a
add esp, 8
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.10089220
mov esi, eax
lea eax, [ebp - 0x64]
cmp eax, esi
je 0x10089d1e
mov ecx, eax
call fcn.100424a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x64], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x54], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0xdc]
cmp edx, 8
jb 0x10089d5e
mov ecx, dword [ebp - 0xf0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10089d54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10089f30
push edx
push ecx
call fcn.1012659a
add esp, 8
cmp dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0xd8]
je 0x10089dbe
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.10088e00
mov esi, eax
lea eax, [ebp - 0x4c]
cmp eax, esi
je 0x10089dae
mov ecx, eax
call fcn.100424a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xf0]
call fcn.100424a0
lea eax, [ebp - 0x64]
jmp 0x10089e10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.10088e00
mov esi, eax
lea eax, [ebp - 0x4c]
cmp eax, esi
je 0x10089e02
mov ecx, eax
call fcn.100424a0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0xf0]
call fcn.100424a0
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0xd8]
push eax
call fcn.10089f40
mov esi, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xd8]
mov byte [ebp - 0x34], al
lea eax, [ebp - 0x30]
push eax
cmp dword [esi + 0xc], 4
sete byte [ebp - 0x32]
call fcn.10088c20
cmp byte [ebp - 0x34], 0
mov byte [ebp - 0x33], al
jne 0x10089e62
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x10089f35
mov eax, dword [ecx]
lea edx, [ebp - 0xc4]
push edx
mov eax, dword [eax + 8]
call eax
test al, al
je 0x10089ed3
lea ecx, [ebp - 0xc4]
call fcn.10080060
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.100424a0
mov eax, dword [ebp - 0xf4]
add esi, 0x2c
inc eax
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xf4], eax
cmp eax, dword [ebp - 0x14]
jb 0x10089980
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0xcd], 1
mov edx, dword [ebp - 0x110]
test edx, edx
je 0x10089ef2
mov ecx, dword [ebp - 0x108]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10089ee8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10089f30
jmp 0x10089ee8
lea ecx, [ebp - 0xc4]
call fcn.10080060
lea ecx, [ebp - 0x30]
call fcn.100424a0
jmp 0x10089e98
push ecx
push edx
call fcn.1012659a
add esp, 8
push edi
call esi
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x10089f0d
mov esi, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0xcd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10126919
mov esp, ebp
pop ebp
ret 0x28
call fcn.101513dc
call fcn.100a3419
int3