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

Disassembly:
jmp 0x1801b59c0
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 0x1801b5a12
lea rax, str.KProcessHacker3
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa8], 0
jne 0x1801b5a2c
lea rax, str.KProcessHacker3
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.180019310
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x1801b5a4e
cmp dword [rsp + 0x70], 0xc000020a
jne 0x1801b5a57
mov eax, dword [rsp + 0x70]
jmp 0x1801b5cb1
cmp dword [rsp + 0x70], 0xc000000e
je 0x1801b5a88
cmp dword [rsp + 0x70], 0xc000000f
je 0x1801b5a88
cmp dword [rsp + 0x70], 0xc0000034
je 0x1801b5a88
cmp dword [rsp + 0x70], 0xc000003a
je 0x1801b5a88
mov eax, dword [rsp + 0x70]
jmp 0x1801b5cb1
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 0x1801b5b09
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 0x1801b5afe
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1801b5af0
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 0x1801b5c5d
mov rcx, qword [rsp + 0xb0]
call sym.ProcessMonitor.dll_PhDoesFileExistsWin32
movzx eax, al
test eax, eax
je 0x1801b5c5d
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 0x1801b5c5d
lea rax, [0x18039c4c4]
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 0x1801b5c49
mov byte [rsp + 0x89], 1
mov rcx, qword [rsp + 0x80]
call fcn.180016760
cmp qword [rsp + 0xb8], 0
je 0x1801b5c1d
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa0]
call fcn.180008650
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jge 0x1801b5c1d
jmp 0x1801b5c7a
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1801b5c3e
mov byte [rsp + 0x88], 1
jmp 0x1801b5c47
call fcn.180010890
mov dword [rsp + 0x70], eax
jmp 0x1801b5c52
call fcn.180010890
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 0x1801b5c7a
mov rcx, qword [rsp + 0xa8]
call fcn.180019310
mov dword [rsp + 0x70], eax
movzx eax, byte [rsp + 0x89]
test eax, eax
je 0x1801b5cad
cmp qword [rsp + 0x80], 0
je 0x1801b5cad
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