Function at 0x100e8d2
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
xor edi, edi
push edi
mov ebx, ecx
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x100eb2b
push 0xf01ff
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x100eaf0
lea ecx, [ebp - 0x34]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100e932
mov dword [ebp - 4], edi
jmp 0x100ea25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0x41b
jne 0x100ea14
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 1
push dword [ebp - 0x10]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call esi
test eax, eax
jne 0x100e9ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xea
jne 0x100e9e1
add dword [ebp - 8], reloc.NETAPI32.dll_NetApiBufferFree
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push 1
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x100e9a9
mov dword [ebp - 4], edi
jmp 0x100e9b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x100ea11
cmp dword [ebp - 0x14], edi
jbe 0x100e9e8
mov esi, ebx
cmp dword [ebp - 4], 0
jne 0x100ea0f
push dword [esi]
mov ecx, dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0100e8d2
inc edi
add esi, 0x24
mov dword [ebp - 4], eax
cmp edi, dword [ebp - 0x14]
jb 0x100e9bd
mov ebx, dword [ebp - 0xc]
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x100ea14
jmp 0x100e9ed
mov ebx, dword [ebp - 0xc]
xor edi, edi
lea eax, [ebp - 0x34]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x100e92a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100ea14
xor edi, edi
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
jne 0x100ea20
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
jne 0x100ea9e
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100eaa9
cmp dword [ebp - 0x30], 1
jne 0x100eada
mov eax, dword [ebx + reloc.NETAPI32.dll_NetApiBufferFree]
cmp eax, 5
jae 0x100ea6d
push dword [ebp + 0xc]
inc eax
mov dword [ebx + reloc.NETAPI32.dll_NetApiBufferFree], eax
imul eax, eax, 0x78
push 0x3c
lea eax, [eax + ebx - 0x78]
push eax
call fcn.0100a4de
push 0x3e8
call esi
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x100ea80
mov eax, 0x1001a60
push edi
push eax
mov eax, dword [ebx + reloc.NETAPI32.dll_NetApiBufferFree]
imul eax, eax, 0x78
lea eax, [eax + ebx - 0x78]
push eax
push 0x40020042
push 7
push 4
call fcn.0100d069
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100eb20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x100eabe
cmp word [eax], di
jne 0x100eac3
mov eax, 0x1002484
push eax
push 0x100245c
push dword [ebp - 4]
push 0xc0020040
push 7
push 1
call fcn.0100d0dd
push 0x1f4
call esi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 6
jb 0x100ea2e
jmp 0x100ea9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp esi, edi
je 0x100eb04
mov eax, esi
cmp word [esi], di
jne 0x100eb09
mov eax, 0x1002484
push eax
push 0x1002444
push dword [ebp - 4]
push 0xc0020040
push 7
push 1
call fcn.0100d0dd
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100eb5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp esi, edi
je 0x100eb3f
mov eax, esi
cmp word [esi], di
jne 0x100eb44
mov eax, 0x1002484
push eax
push 0x1002428
push dword [ebp - 4]
push 0xc0020040
push 7
push 1
call fcn.0100d0dd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8