Function at 0x1008d8e0
Capabilities:
Create service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x100ff230]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor bl, bl
push 0x208
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10093d00
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10093d00
push dword [ebp - 0x434]
lea eax, [ebp - 0x414]
mov dword [ebp - 0x43c], 0
push 0x100da238
push 0x104
push eax
xor esi, esi
call fcn.1008e0c0
add esp, 0x28
test edi, edi
je 0x1008d984
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008d960
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push edi
push 0x104
push eax
call fcn.100aa4b7
jmp 0x1008d9a0
push dword [ebp - 0x434]
lea eax, [ebp - 0x20c]
push str.system32drivers_S.sys
push 0x104
push eax
call fcn.1008e0c0
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x438], eax
test eax, eax
jne 0x1008d9d0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10091622
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
lea ecx, [ebp - 0x43c]
push ecx
push 0x100da270
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 3
push 1
push 0xf01ff
lea ecx, [ebp - 0x414]
push ecx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test byte [0x10105efc], 8
mov edi, eax
je 0x1008da41
test edi, edi
je 0x1008da20
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x1008daf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, 0x431
jne 0x1008daf7
mov bl, 1
jmp 0x1008daf7
test edi, edi
je 0x1008da73
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
jmp 0x1008daf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x431
jne 0x1008daf1
push 0x14
push dword [ebp - 0x434]
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x1008dae8
lea eax, [ebp - 0x430]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1008dabc
cmp dword [ebp - 0x42c], 4
jne 0x1008dabc
mov bl, 1
jmp 0x1008dad4
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
movzx ebx, bl
mov edx, 1
cmovne ebx, edx
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
jmp 0x1008daf7
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x438]
call edi
push 0
push dword [ebp - 0x434]
call fcn.1008dcd0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
movzx eax, bl
xor ecx, ebp
pop esi
dec eax
pop ebx
call fcn.10091622
mov esp, ebp
pop ebp
ret