Function at 0x1400ec290
Capabilities:
Create service
Persist via windows service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x6f0
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov edi, ecx
xor ecx, ecx
mov r12, r8
mov r13, rdx
call fcn.1400ebac0
lea rcx, str.install_service..._n
mov ebp, 0x1e
call fcn.1400b3fe0
lea r8d, [rbp - 0x1c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
je 0x1400ec559
xor r14d, r14d
nop
nop
lea rcx, [rsp + 0x2b0]
call fcn.14017d460
lea rcx, [rsp + 0x70]
mov ebx, r14d
call fcn.14017d460
lea rcx, [rsp + 0x190]
call fcn.14017d460
lea rcx, [rsp + 0x190]
xor edx, edx
call fcn.1400d97c0
mov r8, qword [rsp + 0x198]
lea rdx, str.__s___svc
lea rcx, [rsp + 0x70]
call fcn.1401788c0
test r13, r13
je 0x1400ec368
lea rdx, str.__svc_pipe_name___s_
lea rcx, [rsp + 0x70]
mov r8, r13
call fcn.140178b10
test r12, r12
je 0x1400ec381
lea rdx, str.__svc_security_descriptor___s_
lea rcx, [rsp + 0x70]
mov r8, r12
call fcn.140178b10
call fcn.1400ce420
test rax, rax
je 0x1400ec3a4
call fcn.1400ce420
lea rdx, str.__instance___s_
lea rcx, [rsp + 0x70]
mov r8, rax
call fcn.140178b10
lea rcx, [rsp + 0x190]
call fcn.1400012c0
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x2b0]
call fcn.14017d760
lea rcx, [rsp + 0x70]
call fcn.1400012c0
lea rcx, [rsp + 0x70]
call fcn.14017d460
lea rdx, [0x1401b4940]
lea rcx, [rsp + 0x70]
call fcn.140177ed0
call fcn.1400ce420
test rax, rax
je 0x1400ec40b
call fcn.1400ce420
lea rdx, str.___s_
lea rcx, [rsp + 0x70]
mov r8, rax
call fcn.140178b10
mov r8, qword [rsp + 0x78]
cmp byte [r8], bl
je 0x1400ec433
movzx eax, byte [r8]
cmp al, 0x5c
je 0x1400ec421
cmp al, 0x2f
jne 0x1400ec425
mov byte [r8], 0x20
add r8, 1
cmp byte [r8], bl
jne 0x1400ec415
mov r8, qword [rsp + 0x78]
lea rcx, [rsp + 0x4d0]
mov edx, 0x101
call fcn.14017c650
lea rcx, [rsp + 0x70]
call fcn.1400012c0
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x4d0]
lea rdx, [rsp + 0x4d0]
mov r9d, 2
mov rcx, rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
je 0x1400ec4c0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, edi
call fcn.1400ebda0
jmp 0x1400ec514
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x1400ec4d6
mov ecx, edi
call fcn.1400ebda0
jmp 0x1400ec514
test ebp, ebp
je 0x1400ec4ef
cmp eax, 0x430
jne 0x1400ec4ef
lea ecx, [rax - 0x48]
sub ebp, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ec519
test edi, edi
je 0x1400ec514
mov r8, qword [0x140200708]
mov edx, reloc.WS2_32.dll_recv
xor ecx, ecx
mov r9, qword [r8 + 0x2080]
mov r8, qword [r8]
mov dword [rsp + 0x20], eax
call fcn.1400d5b50
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [rsp + 0x2b0]
call fcn.1400012c0
test ebx, ebx
jne 0x1400ec584
lea rcx, str.install_service..._n
call fcn.1400b3fe0
lea r8d, [rbx + 2]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
jne 0x1400ec300
test edi, edi
je 0x1400ec584
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x140200708]
mov edx, reloc.WS2_32.dll_recv
mov r9, qword [r8 + 0x2088]
mov r8, qword [r8]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.1400d5b50
lea rcx, str.InstallService
mov edx, 1
call fcn.1401460e0
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.1401a8ec0
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret