Function at 0x140002ee0
Capabilities:
Create service
Delete service
Modify service
Persist via windows service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xcb0
mov rax, qword [0x1400321e8]
xor rax, rsp
mov qword [rsp + 0xca0], rax
lea rdx, [0x1400214f8]
mov rcx, r8
mov rbx, r8
call fcn.14000b7ec
test eax, eax
jne 0x140003051
xor edx, edx
xor ecx, ecx
mov r8d, 0x40000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140003176
lea rcx, [rsp + 0x70]
call fcn.14000b988
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, 0x200
lea r8, [rsp + 0xa0]
mov rcx, rax
mov edx, 0x68
call qword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, 0x200
lea r8, [rsp + 0x2a0]
mov rcx, rax
mov edx, 0x69
call qword [sym.imp.USER32.dll_LoadStringW]
xor ecx, ecx
lea rax, [0x14002125c]
mov qword [rsp + 0x60], rcx
lea r8, [rsp + 0x2a0]
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov r9d, 0xf0002
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140003176
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, 0x800
lea r8, [rsp + 0x4a0]
mov rcx, rax
mov edx, 0x6a
call qword [sym.imp.USER32.dll_LoadStringW]
lea rax, [rsp + 0x4a0]
mov edx, 1
lea r8, [rsp + 0x78]
mov qword [rsp + 0x78], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140003176
lea rdx, [0x140021500]
mov rcx, rbx
call fcn.14000b7ec
xor ecx, ecx
test eax, eax
jne 0x14000311c
xor edx, edx
mov r8d, 0x40000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140003176
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, 0x200
lea r8, [rsp + 0xa0]
mov rcx, rax
mov edx, 0x68
call qword [sym.imp.USER32.dll_LoadStringW]
mov r8d, 0x10024
lea rdx, [rsp + 0xa0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140003176
xor eax, eax
lea r8, [rsp + 0x80]
xorps xmm0, xmm0
mov qword [rsp + 0x90], rax
mov rcx, rbx
mov dword [rsp + 0x98], eax
movups xmmword [rsp + 0x80], xmm0
lea edx, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140003176
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140003176
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, 0x200
lea r8, [rsp + 0xa0]
mov rcx, rax
mov edx, 0x68
call qword [sym.imp.USER32.dll_LoadStringW]
lea rax, [rsp + 0xa0]
xorps xmm0, xmm0
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x80]
lea rax, [0x140002a30]
mov qword [rsp + 0x88], rax
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov rcx, qword [rsp + 0xca0]
xor rcx, rsp
call fcn.140007800
mov rbx, qword [rsp + 0xcc0]
add rsp, 0xcb0
pop rdi
ret