Function at 0x1000c5d0
Capabilities:
Enumerate services
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
push edi
mov dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
jne 0x1000c5ef
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
push str.FindNTDriver._1.__08X.__s.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x14
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000c672
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
push str.FindNTDriver._2.__08X.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000ca2a
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x1000ca0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
push str.FindNTDriver._3.__08X.__s.__08X.__08X.__08X.
push 0x100273cc
push 2
call fcn.1000eed0
add esp, 0x20
cmp dword [ebp - 8], 0xea
jne 0x1000c9d8
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1001ef81
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000c722
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x1000c783
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
push str.FindNTDriver._4.__08X.__08X.__s.__08X.__08X.__08X.
push 0x100273cc
push 2
call fcn.1000eed0
add esp, 0x24
cmp dword [ebp - 8], 0xea
je 0x1000c783
cmp dword [ebp - 0xc], 0
je 0x1000c772
mov eax, dword [ebp - 0xc]
push eax
call fcn.1001ee98
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1000ca2a
mov dword [ebp - 0x10], 0
jmp 0x1000c795
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jae 0x1000c831
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x24
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx]
push ecx
call fcn.100231a0
add esp, 8
test eax, eax
jne 0x1000c82c
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x24
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx + 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push str.FindNTDriver._4a.__08X.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x14
cmp dword [ebp + 0x14], 3
jne 0x1000c7ec
jmp 0x1000c831
cmp dword [ebp + 0x14], 1
jne 0x1000c814
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x24
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + eax + 0xc], 4
je 0x1000c812
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x24
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0xc], 2
jne 0x1000c814
jmp 0x1000c831
cmp dword [ebp + 0x14], 2
jne 0x1000c82c
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x24
mov edx, dword [ebp - 0xc]
cmp dword [edx + ecx + 0xc], 1
jne 0x1000c82c
jmp 0x1000c831
jmp 0x1000c78c
mov eax, dword [ebp - 0xc]
push eax
call fcn.1001ee98
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x1000c848
jmp 0x1000c6e3
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jae 0x1000c979
cmp dword [ebp + 0x18], 0xffffffff
jne 0x1000c864
cmp dword [ebp + 0x1c], 0
je 0x1000c979
lea edx, [ebp - 0x424]
mov dword [ebp - 0x24], edx
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1000c8dc
lea edx, [ebp - 0x428]
push edx
push 0x400
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x1000c8da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindNTDriver._5.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x10
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1000ca2a
jmp 0x1000c908
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindNTDriver._6.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1000ca2a
cmp dword [ebp + 0x18], 0xffffffff
je 0x1000c953
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
cmp eax, dword [ebp + 0x18]
je 0x1000c953
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
push str.FindNTDriver._7.__08X.__08X.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1000ca2a
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp + 0x1c], 0
je 0x1000c979
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
add edx, 4
push edx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.1001e290
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
jb 0x1000c9b4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindNTDriver._8.__08X.__08X.__08X.__s.
push 0x100273cc
push 2
call fcn.1000eed0
add esp, 0x1c
jmp 0x1000c9d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindNTDriver._9.__08X.
push 0x100273cc
push 3
call fcn.1000eed0
add esp, 0x10
mov eax, 1
jmp 0x1000ca2a
jmp 0x1000ca0c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
push str.FindNTDriver._10.__08X.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1000ca2a
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
push str.FindNTDriver._12.__08X.__s.
push 0x100273cc
push 1
call fcn.1000eed0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret