Function at 0x1400984f0
Capabilities:
Create service
Delete service
Start service
Stop service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x3a8
mov rax, qword [0x140462680]
xor rax, rsp
mov qword [rsp + 0x390], rax
xor r9d, r9d
lea r8, [rsp + 0x190]
mov edx, 0x100
mov rcx, qword [rsp + 0x3b8]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x78], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x1400985aa
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x84]
call fcn.140098a10
mov rcx, rax
call fcn.140098c50
mov rcx, rax
call fcn.1400126f0
mov dword [rsp + 0x70], 0
jmp 0x140098941
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x85]
call fcn.140098ab0
mov rcx, rax
call fcn.140098c30
mov rcx, rax
call fcn.1400126f0
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
lea rax, [rsp + 0x190]
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 + 0x3b0]
mov rdx, qword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0x431
jne 0x1400986e8
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
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
lea rax, [rsp + 0x190]
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 + 0x3b0]
mov rdx, qword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1400987e2
cmp dword [rsp + 0x74], 0x3e5
je 0x14009874f
cmp dword [rsp + 0x74], 0x431
je 0x14009874f
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x86]
call fcn.140098ae0
mov rcx, rax
call fcn.140098c50
mov rcx, rax
call fcn.1400126f0
mov edx, dword [rsp + 0x74]
lea rcx, str.CrateService___Faild__d____n
call fcn.1400126f0
mov dword [rsp + 0x70], 0
jmp 0x140098941
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1400987bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x87]
call fcn.140098b10
mov rcx, rax
call fcn.140098c50
mov rcx, rax
call fcn.1400126f0
mov dword [rsp + 0x70], 0
jmp 0x140098941
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x88]
call fcn.140098b40
mov rcx, rax
call fcn.140098c30
mov rcx, rax
call fcn.1400126f0
jmp 0x140098807
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x89]
call fcn.140098b70
mov rcx, rax
call fcn.140098c30
mov rcx, rax
call fcn.1400126f0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
jne 0x140098916
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0x3e5
je 0x140098899
cmp dword [rsp + 0x80], 0x420
je 0x140098899
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x8a]
call fcn.140098ba0
mov rcx, rax
call fcn.140098c50
mov rcx, rax
call fcn.1400126f0
mov edx, dword [rsp + 0x80]
lea rcx, str.StartService___Faild__d____n
call fcn.1400126f0
mov dword [rsp + 0x70], 0
jmp 0x140098941
cmp dword [rsp + 0x80], 0x3e5
jne 0x1400988d9
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x8b]
call fcn.140098bd0
mov rcx, rax
call fcn.140098c50
mov rcx, rax
call fcn.1400126f0
mov dword [rsp + 0x70], 0
jmp 0x140098941
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x8c]
call fcn.140098c00
mov rcx, rax
call fcn.140098c50
mov rcx, rax
call fcn.1400126f0
lea rcx, str.StartService___Faild_ERROR_SERVICE_ALREADY_RUNNING____n
call fcn.1400126f0
mov dword [rsp + 0x70], 1
jmp 0x140098941
mov dword [rsp + 0x70], 1
lea r8, [rsp + 0x170]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140098952
jmp 0x140098941
cmp qword [rsp + 0x78], 0
je 0x140098965
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x90], 0
je 0x14009897e
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14033bfd0
add rsp, 0x3a8
ret