Function at 0x14000120c
Capabilities:
Create service
Persist via windows service
Print debug messages
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x118]
sub rsp, 0x210
mov rax, qword [0x14004b010]
xor rax, rsp
mov qword [rbp + 0x100], rax
lea rcx, str.install_service_______________
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r14d, r14d
mov qword [rbp - 0x48], r14
movdqa xmm0, xmmword [0x140044d40]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r14w
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140001517
lea r8d, [r14 + 0x1e]
lea rdx, [0x14004bcb0]
lea rcx, [rbp - 8]
call fcn.140005870
mov rbx, rax
lea r8d, [r14 + 0xa]
lea rdx, [0x14004bd28]
lea rcx, [rbp - 0x28]
call fcn.140005870
cmp qword [rbx + 0x18], 8
jb 0x1400012b6
mov rbx, qword [rbx]
cmp qword [rax + 0x18], 8
jb 0x1400012c0
mov rax, qword [rax]
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
lea rcx, [0x14004e1e0]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
lea rcx, [rbp - 0x28]
call fcn.1400025b8
nop
lea rcx, [rbp - 8]
call fcn.1400025b8
test rsi, rsi
je 0x14000150d
movdqa xmm0, xmmword [0x140044d70]
movdqa xmmword [rbp + 0x70], xmm0
movdqa xmm1, xmmword [0x140044da0]
movdqa xmmword [rbp + 0x80], xmm1
movdqa xmm0, xmmword [0x140044f10]
movdqa xmmword [rbp + 0x90], xmm0
movdqa xmm1, xmmword [0x140044fd0]
movdqa xmmword [rbp + 0xa0], xmm1
movdqa xmm0, xmmword [0x140045000]
movdqa xmmword [rbp + 0xb0], xmm0
movdqa xmm1, xmmword [0x140044ea0]
movdqa xmmword [rbp + 0xc0], xmm1
movdqa xmm0, xmmword [0x140044e10]
movdqa xmmword [rbp + 0xd0], xmm0
movdqa xmm1, xmmword [0x140044f30]
movdqa xmmword [rbp + 0xe0], xmm1
mov r8d, 0x22
mov dword [rbp + 0xf0], r8d
mov dword [rbp + 0xf4], 0xd
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.140005870
nop
mov r8d, 0xa
lea rdx, [0x14004bd28]
lea rcx, [rsp + 0x78]
call fcn.140005870
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x1400013f5
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp - 0x68]
call fcn.14000261c
nop
lea rcx, [rsp + 0x78]
call fcn.1400025b8
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400014fa
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400014fa
lea r8d, [rax + 0x7f]
lea rdx, [0x14004bd90]
lea rcx, [rsp + 0x78]
call fcn.140005870
nop
movdqa xmm0, xmmword [0x140044ee0]
movdqu xmmword [rbp + 0x38], xmm0
movdqa xmm1, xmmword [0x140044e80]
movdqu xmmword [rbp + 0x48], xmm1
mov dword [rbp + 0x58], gethostname
mov dword [rbp + 0x5c], 0x3e
mov dword [rbp + 0x60], 0x3f
mov r8d, inet_ntoa
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x18]
call fcn.140005870
mov rdx, rax
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
cmp qword [rax + 0x18], 8
jb 0x1400014c6
mov rdx, qword [rax]
mov eax, dword [rbp - 0x78]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rbp + 0x18]
call fcn.1400025b8
nop
lea rcx, [rsp + 0x78]
call fcn.1400025b8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rbp - 0x68]
call fcn.1400025b8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rbp - 0x48]
call fcn.1400025b8
mov eax, 1
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140010040
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret