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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x10100230]
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.100942c0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100942c0
push dword [ebp - 0x434]
lea eax, [ebp - 0x414]
mov dword [ebp - 0x43c], 0
push 0x100db238
push 0x104
push eax
xor esi, esi
call fcn.1008e670
add esp, 0x28
test edi, edi
je 0x1008df34
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1008df10
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push edi
push 0x104
push eax
call fcn.100aaa87
jmp 0x1008df50
push dword [ebp - 0x434]
lea eax, [ebp - 0x20c]
push str.system32drivers_S.sys
push 0x104
push eax
call fcn.1008e670
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 0x1008df80
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10091bd4
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
lea ecx, [ebp - 0x43c]
push ecx
push 0x100db270
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 [0x10106efc], 8
mov edi, eax
je 0x1008dff1
test edi, edi
je 0x1008dfd0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x1008e0a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, 0x431
jne 0x1008e0a7
mov bl, 1
jmp 0x1008e0a7
test edi, edi
je 0x1008e023
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 0x1008e0a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x431
jne 0x1008e0a1
push 0x14
push dword [ebp - 0x434]
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x1008e098
lea eax, [ebp - 0x430]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1008e06c
cmp dword [ebp - 0x42c], 4
jne 0x1008e06c
mov bl, 1
jmp 0x1008e084
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 0x1008e0a7
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.1008e280
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.10091bd4
mov esp, ebp
pop ebp
ret