Function at 0x14001148d
Capabilities:
Create service
Start service

Disassembly:
jmp 0x140014660
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x70]
lea rcx, [0x1400291a7]
call fcn.14001150a
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov r8d, 3
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x1400148a0
mov r8d, 0x10
mov rdx, qword [rbp + 0x140]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140014703
mov rdx, qword [rbp + 0x140]
lea rcx, str.____s_service_already_registered_n
call fcn.14001103c
jmp 0x140014817
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140014803
mov rdx, qword [rbp + 0x140]
lea rcx, str.____s_service_not_present_n
call fcn.14001103c
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 [rbp + 0x150]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov eax, dword [rbp + 0x160]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x158]
mov dword [rsp + 0x20], eax
mov r9d, 0x60010
mov r8, qword [rbp + 0x148]
mov rdx, qword [rbp + 0x140]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x1400147ed
mov rdx, qword [rbp + 0x140]
lea rcx, str.____s_service_successfully_registered_n
call fcn.14001103c
mov rcx, qword [rbp + 0x48]
call fcn.14001153c
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1400147df
mov rdx, qword [rbp + 0x140]
lea rcx, str.____s_service_ACL_to_everyone_n
call fcn.14001103c
jmp 0x1400147eb
lea rcx, str.kull_m_service_addWorldToSD
call fcn.140011221
jmp 0x140014801
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_service_install___CreateService__0x_08x__n
call fcn.14001103c
jmp 0x140014817
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_service_install___OpenService__0x_08x__n
call fcn.14001103c
cmp qword [rbp + 0x48], 0
je 0x140014894
cmp dword [rbp + 0x168], 0
je 0x14001488a
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140014854
mov rdx, qword [rbp + 0x140]
lea rcx, str.____s_service_started_n
call fcn.14001103c
jmp 0x14001488a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140014876
mov rdx, qword [rbp + 0x140]
lea rcx, str.____s_service_already_started_n
call fcn.14001103c
jmp 0x14001488a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_service_install___StartService__0x_08x__n
call fcn.14001103c
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400148bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_service_install___OpenSCManager_create___0x_08x__n
call fcn.14001103c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400148be
xor eax, eax
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret