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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x4e5258]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x431], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x43c], 0
mov eax, dword [ebp + 8]
push eax
push 0x4c59a0
push 0x104
lea ecx, [ebp - 0x414]
push ecx
call fcn.004ac1d0
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x4aba88
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str._S_S.sys
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004ac1d0
add esp, 0x14
jmp 0x4abaa5
mov edx, dword [ebp + 8]
push edx
push str.system32drivers_S.sys
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.004ac1d0
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x4abacb
or eax, 0xffffffff
jmp 0x4abca3
push 0
push 0
push 0
lea ecx, [ebp - 0x448]
push ecx
push 0x4c59ec
lea edx, [ebp - 0x20c]
push edx
push 1
push 1
push 1
push 0xf01ff
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x438], eax
mov eax, dword [0x4ea368]
and eax, 8
je 0x4abb5d
cmp dword [ebp - 0x438], 0
je 0x4abb39
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0x431], 1
jmp 0x4abb58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0x431
jne 0x4abb58
mov byte [ebp - 0x431], 1
jmp 0x4abc54
cmp dword [ebp - 0x438], 0
je 0x4abba0
push 0
push 0
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4abb82
mov byte [ebp - 0x431], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4abc54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0x431
jne 0x4abc54
push 0x14
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x4abc48
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4abc06
cmp dword [ebp - 0x42c], 4
jne 0x4abc06
mov byte [ebp - 0x431], 1
movzx edx, byte [ebp - 0x431]
test edx, edx
jne 0x4abc2d
push 0
push 0
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4abc2d
mov byte [ebp - 0x431], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4abc54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x43c], eax
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004abea0
add esp, 8
mov ecx, dword [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx edx, byte [ebp - 0x431]
test edx, edx
je 0x4abc93
mov dword [ebp - 0x444], 0
jmp 0x4abc9d
mov dword [ebp - 0x444], 0xffffffff
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004adff8
mov esp, ebp
pop ebp
ret