Function at 0x10009620
Capabilities:
Acquire debug privileges
Enumerate services

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x89d0
call fcn.10017a00
mov eax, dword [0x10023210]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x9b4]
push eax
push 0x28
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100096ba
lea ecx, [ebp - 0x9a8]
push ecx
push 0x1001fad8
push 0
mov dword [ebp - 0x9ac], 1
mov dword [ebp - 0x9a0], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x9b4]
push 0
push 0
push 0x10
lea edx, [ebp - 0x9ac]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100096ad
mov ecx, dword [ebp - 0x9b4]
push ecx
jmp 0x100096b4
mov edx, dword [ebp - 0x9b4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [esi + 0x20], eax
mov dword [ebp - 0x9bc], edi
mov dword [ebp - 0x9c0], edi
mov dword [ebp - 0x9b8], 0x2000
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push edi
lea ecx, [ebp - 0x9c0]
push ecx
mov ecx, dword [esi + 0x20]
mov ebx, eax
mov eax, dword [ebp - 0x9bc]
lea edx, [ebp - 0x9bc]
push edx
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
push 3
push ecx
push ebx
mov dword [ebp - 0x9cc], ebx
call edi
mov edx, dword [ebp - 0x9bc]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
lea ecx, [ebp - 0x9c0]
push ecx
mov ecx, dword [ebp - 0x9bc]
lea edx, [ebp - 0x9bc]
push edx
mov edx, dword [esi + 0x20]
push ecx
push eax
push 3
push edx
push ebx
mov dword [ebp - 0x9c4], eax
call edi
push 0x800
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov byte [edi], 0x28
cmp dword [ebp - 0x9c0], 0
mov dword [ebp - 0x9b0], 1
mov dword [ebp - 0x9c8], 0
jbe 0x10009bc3
mov ebx, dword [ebp - 0x9c4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x10009790
push 0x2000
lea eax, [ebp - 0x89cc]
push 0
push eax
mov dword [ebp - 0x9b8], 0x2000
call fcn.10014cd0
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x9cc]
add esp, 0xc
push 0xf01ff
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x9c4], eax
test eax, eax
je 0x10009ba1
mov edx, dword [ebp - 0x9b8]
lea ecx, [ebp - 0x9b8]
push ecx
push edx
lea ecx, [ebp - 0x89cc]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfig2W]
push 0x800
lea edx, [ebp - 0x99c]
push 0
push edx
call fcn.10014cd0
mov eax, dword [ebp - 0x89cc]
add esp, 0xc
test eax, eax
je 0x1000981f
push eax
lea eax, [ebp - 0x99c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0xc8
lea ecx, [ebp - 0xd4]
push 0
push ecx
call fcn.10014cd0
mov eax, dword [ebx + 0xc]
dec eax
add esp, 0xc
cmp eax, 6
ja case.default.0x1000983e
jmp dword [eax*4 + 0x10009c70]
push str.Continue
lea edx, [ebp - 0xd4]
push edx
jmp 0x100098a5
push str.Pausing
jmp 0x1000989e
push str.Paused
lea ecx, [ebp - 0xd4]
push ecx
jmp 0x100098a5
push str.Running
lea edx, [ebp - 0xd4]
push edx
jmp 0x100098a5
push str.Starting
jmp 0x1000989e
push str.Stopping
lea ecx, [ebp - 0xd4]
push ecx
jmp 0x100098a5
push str.Stopped
lea edx, [ebp - 0xd4]
push edx
jmp 0x100098a5
push str.Erro
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x9b8]
push ecx
lea edx, [ebp - 0x89cc]
push 0
push edx
call fcn.10014cd0
mov edx, dword [ebp - 0x9c4]
add esp, 0xc
lea eax, [ebp - 0x9b8]
push eax
push 0x2000
lea ecx, [ebp - 0x89cc]
push ecx
push edx
mov dword [ebp - 0x9b8], 0x2000
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x10009ba1
push 0xc8
lea eax, [ebp - 0x19c]
push 0
push eax
call fcn.10014cd0
mov eax, dword [ebp - 0x89c8]
add esp, 0xc
cmp eax, 4
ja case.default.0x10009916
jmp dword [eax*4 + 0x10009c8c]
push str.Auto_Start
lea ecx, [ebp - 0x19c]
push ecx
jmp 0x10009968
push str.Boot_Start
lea edx, [ebp - 0x19c]
push edx
jmp 0x10009968
push str.Demand_Start
jmp 0x10009961
push str.Disabled
lea ecx, [ebp - 0x19c]
push ecx
jmp 0x10009968
push str.System_Start
lea edx, [ebp - 0x19c]
push edx
jmp 0x10009968
push str.Erro
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp - 0x89cc], 0x100
mov dword [ebp - 0x9b4], 0x1001f97c
jb 0x1000998e
mov dword [ebp - 0x9b4], 0x1001ff7c
push edi
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [ebp - 0x9b0]
add ecx, 0x2000
cmp eax, ecx
jae 0x100099b1
push 0x42
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
mov ecx, dword [ebx + 4]
push ecx
call esi
mov ecx, dword [ebp - 0x9b0]
lea edx, [eax + eax + 2]
mov eax, dword [ebx + 4]
push edx
push eax
add ecx, edi
push ecx
call fcn.10014d50
mov edx, dword [ebx + 4]
add esp, 0xc
push edx
call esi
mov ecx, dword [ebp - 0x9b0]
lea edx, [ecx + eax*2 + 2]
lea eax, [ebp - 0x99c]
push eax
mov dword [ebp - 0x9b0], edx
call esi
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x9b0]
push ecx
lea edx, [ebp - 0x99c]
push edx
add eax, edi
push eax
call fcn.10014d50
add esp, 0xc
lea ecx, [ebp - 0x99c]
push ecx
call esi
mov edx, dword [ebp - 0x9b0]
lea ecx, [ebp - 0xd4]
lea eax, [edx + eax*2 + 2]
push ecx
mov dword [ebp - 0x9b0], eax
call esi
mov ecx, dword [ebp - 0x9b0]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0xd4]
push eax
add ecx, edi
push ecx
call fcn.10014d50
add esp, 0xc
lea edx, [ebp - 0xd4]
push edx
call esi
mov ecx, dword [ebp - 0x9b0]
lea edx, [ecx + eax*2 + 2]
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 0x9b0], edx
call esi
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x9b0]
push ecx
lea edx, [ebp - 0x19c]
push edx
add eax, edi
push eax
call fcn.10014d50
add esp, 0xc
lea ecx, [ebp - 0x19c]
push ecx
call esi
mov edx, dword [ebp - 0x9b0]
mov ecx, dword [ebp - 0x89b0]
lea eax, [edx + eax*2 + 2]
push ecx
mov dword [ebp - 0x9b0], eax
call esi
mov ecx, dword [ebp - 0x9b0]
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x89b0]
push edx
push eax
add ecx, edi
push ecx
call fcn.10014d50
mov edx, dword [ebp - 0x89b0]
add esp, 0xc
push edx
call esi
mov ecx, dword [ebp - 0x9b0]
lea edx, [ecx + eax*2 + 2]
mov eax, dword [ebp - 0x9b4]
push eax
mov dword [ebp - 0x9b0], edx
call esi
mov edx, dword [ebp - 0x9b4]
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x9b0]
push ecx
push edx
add eax, edi
push eax
call fcn.10014d50
mov ecx, dword [ebp - 0x9b4]
add esp, 0xc
push ecx
call esi
mov edx, dword [ebp - 0x9b0]
mov ecx, dword [ebx]
lea eax, [edx + eax*2 + 2]
push ecx
mov dword [ebp - 0x9b0], eax
call esi
mov ecx, dword [ebp - 0x9b0]
lea edx, [eax + eax + 2]
mov eax, dword [ebx]
push edx
push eax
add ecx, edi
push ecx
call fcn.10014d50
mov edx, dword [ebx]
add esp, 0xc
push edx
call esi
mov ecx, dword [ebp - 0x9b0]
lea edx, [ecx + eax*2 + 2]
mov eax, dword [ebp - 0x89c0]
push eax
mov dword [ebp - 0x9b0], edx
call esi
mov edx, dword [ebp - 0x89c0]
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x9b0]
push ecx
push edx
add eax, edi
push eax
call fcn.10014d50
mov ecx, dword [ebp - 0x89c0]
add esp, 0xc
push ecx
call esi
mov edx, dword [ebp - 0x9b0]
mov ecx, dword [ebp - 0x9c4]
lea eax, [edx + eax*2 + 2]
push ecx
mov dword [ebp - 0x9b0], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x9c8]
inc eax
add ebx, 0x24
mov dword [ebp - 0x9c8], eax
cmp eax, dword [ebp - 0x9c0]
jb 0x10009790
mov ebx, dword [ebp - 0x9cc]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x9b0]
push 0x42
push edx
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov esi, eax
lea eax, [ebp - 0x9b4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10009c5a
lea ecx, [ebp - 0x9a8]
push ecx
push 0x1001fad8
push 0
mov dword [ebp - 0x9ac], 1
mov dword [ebp - 0x9a0], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x9b4]
push 0
push 0
push 0x10
lea edx, [ebp - 0x9ac]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10009c4d
mov ecx, dword [ebp - 0x9b4]
push ecx
jmp 0x10009c54
mov edx, dword [ebp - 0x9b4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ee72
mov esp, ebp
pop ebp
ret 4