Function at 0x14001fcc0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x8b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
mov qword [0x14019bd10], rcx
mov rsi, rcx
movzx eax, word [rcx]
mov edi, 0x20
lea r13d, [rdi - 0x17]
xor r12d, r12d
cmp ax, r12w
je 0x14001fd33
cmp r13w, ax
ja 0x14001fd21
cmp ax, 0xd
jbe 0x14001fd33
cmp di, ax
je 0x14001fd33
add rcx, 2
mov ax, word [rcx]
cmp ax, r12w
jne 0x14001fd15
sub rcx, rsi
sar rcx, 1
mov eax, 0x400
cmp ecx, eax
cmovg ecx, eax
movsxd rax, ecx
lea rbx, [rax + rax]
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.14010cd30
mov word [rsp + rbx + 0x80], r12w
mov byte [section.flag_dat], r12b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebp, [rax + 1]
lea edx, [rbp + 0x226]
lea rcx, [rsp + 0x70]
call fcn.140063580
nop
mov rdx, qword [rsp + 0x70]
add rdx, 2
xor ecx, ecx
mov r8d, 0x1cc
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movsxd r11, eax
cmp r11d, r12d
jg 0x14001fdb8
lea rcx, [rsp + 0x70]
call fcn.14005b520
jmp 0x14001ff50
mov rax, qword [rsp + 0x70]
mov word [rax + r11*2 + 2], r12w
mov rax, qword [rsp + 0x70]
lea rcx, [rax + 2]
lea r9, [rax + r11*2 + 2]
mov r8w, r12w
mov r10d, 0x22
mov word [rax], r10w
cmp rcx, r9
jae 0x14001fe04
cmp r13w, word [rcx]
ja 0x14001fdf0
cmp word [rcx], 0xd
jbe 0x14001fdf5
cmp di, word [rcx]
jne 0x14001fdfb
mov r8d, 1
add rcx, 2
cmp rcx, r9
jb 0x14001fde4
mov rax, qword [rsp + 0x70]
lea rdi, [rax + 2]
cmp r8w, r12w
je 0x14001fe21
mov word [rax + r11*2 + 2], r10w
sub rdi, 2
add r11d, 2
movsxd rax, r11d
lea rbx, [rdi + rax*2]
mov r8d, 0x1e
lea rdx, str._EXEC__Service
mov rcx, rbx
call fcn.14010cd30
movsxd r8, ebp
add r8, r8
mov rdx, rsi
lea rcx, [rbx + 0x1e]
call fcn.14010cd30
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
cmp rax, r12
je 0x14001ff30
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x110
mov r9d, 0xf01ff
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp rax, r12
je 0x14001ff30
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x20000000
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
cmp rax, r12
je 0x14001ff22
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, r12d
je 0x14001ff0b
lea rcx, [0x140146a10]
call fcn.14001d6a8
jmp 0x14001ff17
lea rcx, [0x140146a00]
call fcn.14001d6a8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14001ff3c
lea rcx, [0x1401469f0]
call fcn.14001d6a8
jmp 0x14001ff3c
lea rcx, [0x1401469e0]
call fcn.14001d6a8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rsp + 0x70]
call fcn.14005b520
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.14010bcc0
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret