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

Disassembly:
jmp 0x140124520
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x70]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1405dc580]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov r8d, 2
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x140124585
call fcn.140010ff0
jmp 0x1401247be
call sym.ProcessHacker.exe_PhGetApplicationFileName
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1401245a1
mov eax, 0xc0000229
jmp 0x1401247be
mov rax, qword [rsp + 0xf0]
mov r8, qword [rax + 0x48]
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax + 8]
lea rcx, str.__s___ras___s_
call sym.ProcessHacker.exe_PhFormatString
mov qword [rsp + 0x80], rax
lea rax, [0x1403c77e4]
mov qword [rsp + 0x60], rax
lea rax, str.LocalSystem
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov rax, qword [rsp + 0xf0]
mov r8, qword [rax + 0x48]
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax + 0x48]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
mov rcx, qword [rsp + 0x80]
call sym.ProcessHacker.exe_PhDereferenceObject
mov rcx, qword [rsp + 0x78]
call sym.ProcessHacker.exe_PhDereferenceObject
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x90], 0
jne 0x1401246ce
cmp dword [rsp + 0x74], 0
jg 0x1401246a8
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0xd0], eax
jmp 0x1401246c2
mov eax, dword [rsp + 0x74]
and eax, 0xffff
or eax, 0x70000
or eax, 0xc0000000
mov dword [rsp + 0xd0], eax
mov eax, dword [rsp + 0xd0]
jmp 0x1401247be
call fcn.140014e90
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rax + 0x48]
lea rcx, str.BaseNamedObjects_
call sym.ProcessHacker.exe_PhConcatStrings2
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
lea rdx, [rsp + 0xa8]
mov rcx, rax
call fcn.1400117c0
mov dword [rsp + 0xc4], 0x32
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.14000a6f0
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jl 0x140124753
jmp 0x140124777
mov ecx, 0x64
call sym.ProcessHacker.exe_PhDelayExecution
mov eax, dword [rsp + 0xc4]
dec eax
mov dword [rsp + 0xc4], eax
cmp dword [rsp + 0xc4], 0
jne 0x140124737
mov rcx, qword [rsp + 0x98]
call sym.ProcessHacker.exe_PhDereferenceObject
cmp dword [rsp + 0x70], 0
jl 0x1401247a1
mov rcx, qword [rsp + 0xf0]
call fcn.140005f90
mov dword [rsp + 0x70], eax
call fcn.140001050
cmp qword [rsp + 0x90], 0
je 0x1401247ba
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x70]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1404c84e0]
call fcn.140015750
mov rax, rdi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14000d430
add rsp, 0xe0
pop rdi
ret