Function at 0x14001af30
Capabilities:
Create service
Delete service
Start service

Disassembly:
jmp 0x1401c73c0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov qword [rsp + 0x80], 0
mov byte [rsp + 0x88], 0
mov byte [rsp + 0x89], 0
cmp qword [rsp + 0xa0], 0
jne 0x1401c7412
lea rax, str.KProcessHacker3
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa8], 0
jne 0x1401c742c
lea rax, str.KProcessHacker3
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140019f30
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x1401c744e
cmp dword [rsp + 0x70], 0xc000020a
jne 0x1401c7457
mov eax, dword [rsp + 0x70]
jmp 0x1401c76b1
cmp dword [rsp + 0x70], 0xc000000e
je 0x1401c7488
cmp dword [rsp + 0x70], 0xc000000f
je 0x1401c7488
cmp dword [rsp + 0x70], 0xc0000034
je 0x1401c7488
cmp dword [rsp + 0x70], 0xc000003a
je 0x1401c7488
mov eax, dword [rsp + 0x70]
jmp 0x1401c76b1
mov r8d, 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x1401c7509
mov r8d, 0x10
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1401c74fe
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1401c74f0
mov byte [rsp + 0x88], 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x88]
test eax, eax
jne 0x1401c765d
mov rcx, qword [rsp + 0xb0]
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
movzx eax, al
test eax, eax
je 0x1401c765d
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x1401c765d
lea rax, [0x1403c77e4]
mov qword [rsp + 0x60], rax
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], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1401c7649
mov byte [rsp + 0x89], 1
mov rcx, qword [rsp + 0x80]
call fcn.1400171d0
cmp qword [rsp + 0xb8], 0
je 0x1401c761d
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa0]
call fcn.1400089b0
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x1401c761d
jmp 0x1401c767a
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1401c763e
mov byte [rsp + 0x88], 1
jmp 0x1401c7647
call fcn.140010ff0
mov dword [rsp + 0x70], eax
jmp 0x1401c7652
call fcn.140010ff0
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x88]
test eax, eax
je 0x1401c767a
mov rcx, qword [rsp + 0xa8]
call fcn.140019f30
mov dword [rsp + 0x70], eax
movzx eax, byte [rsp + 0x89]
test eax, eax
je 0x1401c76ad
cmp qword [rsp + 0x80], 0
je 0x1401c76ad
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x70]
add rsp, 0x90
pop rdi
ret