Function at 0x1400361e0
Capabilities:
Check for peb beingdebugged flag
Continue service
Delete service
Pause service
Start service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword gs:[0x30]
xor ebx, ebx
mov rcx, qword [rax + 0x60]
lea r9d, [rbx + 1]
lea r8d, [rbx + 2]
mov rdx, qword [rcx + 0x20]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
mov rax, qword [rdx + 0x70]
mov qword [rcx], rax
mov rax, qword [rdx + 0x78]
lea rdx, [0x1400d1800]
mov qword [rcx + 8], rax
lea rax, [0x140036160]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhParseCommandLine
mov rcx, qword [0x1400d8250]
lea rdx, str.processhacker
add rcx, 0x10
call fcn.1400a6b10
test eax, eax
jne 0x1400362b7
mov rcx, qword [0x1400d8260]
lea rdx, str.runas
add rcx, 0x10
call fcn.1400a6b10
test eax, eax
jne 0x1400364c0
mov rdx, qword [0x1400d6428]
test rdx, rdx
je 0x1400362a7
mov rcx, qword [0x1400d8258]
test rcx, rcx
je 0x1400362a7
add rdx, 0x10
add rcx, 0x10
call fcn.1400729c0
mov ebx, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov eax, 0xc000000d
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [0x1400d8250]
lea rdx, str.service
add rcx, 0x10
call fcn.1400a6b10
test eax, eax
jne 0x1400364c0
cmp qword [0x1400d8258], rbx
je 0x1400362a7
mov rcx, qword [0x1400d8260]
lea rdx, str.start
add rcx, 0x10
call fcn.1400a6b10
test eax, eax
jne 0x14003635c
mov rcx, qword [0x1400d8258]
lea edx, [rax + 0x10]
add rcx, 0x10
call sym.ProcessHacker.exe_PhOpenService
mov rdi, rax
test rax, rax
jne 0x140036349
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140036330
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0xc0070000
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
jmp 0x140036490
mov rcx, qword [0x1400d8260]
lea rdx, str.continue
add rcx, 0x10
call fcn.1400a6b10
test eax, eax
jne 0x1400363aa
mov rcx, qword [0x1400d8258]
lea edx, [rax + 0x40]
add rcx, 0x10
call sym.ProcessHacker.exe_PhOpenService
mov rdi, rax
test rax, rax
je 0x140036315
lea r8, [rsp + 0x40]
mov edx, 3
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x140036490
mov rcx, qword [0x1400d8260]
lea rdx, str.pause
add rcx, 0x10
call fcn.1400a6b10
test eax, eax
jne 0x1400363fc
mov rcx, qword [0x1400d8258]
lea edx, [rax + 0x40]
add rcx, 0x10
call sym.ProcessHacker.exe_PhOpenService
mov rdi, rax
test rax, rax
je 0x140036315
lea r8, [rsp + 0x40]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x140036490
mov rcx, qword [0x1400d8260]
lea rdx, str.stop
add rcx, 0x10
call fcn.1400a6b10
test eax, eax
jne 0x14003644b
mov rcx, qword [0x1400d8258]
lea edx, [rax + 0x20]
add rcx, 0x10
call sym.ProcessHacker.exe_PhOpenService
mov rdi, rax
test rax, rax
je 0x140036315
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x140036490
mov rcx, qword [0x1400d8260]
lea rdx, str.delete
add rcx, 0x10
call fcn.1400a6b10
test eax, eax
jne 0x1400364c0
mov rcx, qword [0x1400d8258]
mov edx, 0x10000
add rcx, 0x10
call sym.ProcessHacker.exe_PhOpenService
mov rdi, rax
test rax, rax
je 0x140036315
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400364b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1400364a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400364b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0xc0070000
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret