Function at 0x14001fa10
Capabilities:
Create service
Start service

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x78], 0
mov r8d, 3
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14001fc78
mov r8d, 0x10
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14001fab6
mov rdx, qword [rsp + 0xa0]
lea rcx, str.____s_service_already_registered_n
call fcn.140013fd0
jmp 0x14001fbe3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x14001fbcf
mov rdx, qword [rsp + 0xa0]
lea rcx, str.____s_service_not_present_n
call fcn.140013fd0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x20], eax
mov r9d, 0x60010
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14001fbb9
mov rdx, qword [rsp + 0xa0]
lea rcx, str.____s_service_successfully_registered_n
call fcn.140013fd0
mov rcx, qword [rsp + 0x78]
call fcn.14001f800
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x14001fba3
mov rdx, qword [rsp + 0xa0]
lea rcx, str.____s_service_ACL_to_everyone_n
call fcn.140013fd0
jmp 0x14001fbb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_service_install___kull_m_service_addWorldToSD__0x_08x__n
call fcn.140013fd0
jmp 0x14001fbcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_service_install___CreateService__0x_08x__n
call fcn.140013fd0
jmp 0x14001fbe3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_service_install___OpenService__0x_08x__n
call fcn.140013fd0
cmp qword [rsp + 0x78], 0
je 0x14001fc68
cmp dword [rsp + 0xc8], 0
je 0x14001fc5d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x14001fc26
mov rdx, qword [rsp + 0xa0]
lea rcx, str.____s_service_started_n
call fcn.140013fd0
jmp 0x14001fc5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x14001fc49
mov rdx, qword [rsp + 0xa0]
lea rcx, str.____s_service_already_started_n
call fcn.140013fd0
jmp 0x14001fc5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_service_install___StartService__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001fc8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_service_install___OpenSCManager_create___0x_08x__n
call fcn.140013fd0
mov eax, dword [rsp + 0x70]
add rsp, 0x98
ret