Function at 0x1400166a4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2308]
mov eax, 0x23e0
call fcn.140021060
sub rsp, rax
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rbp + 0x22d0], rax
lea rcx, [rbp + 0x78]
call fcn.140017c9c
nop
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp + 0x88]
sub rax, rcx
mov r12d, 5
cmp rax, r12
jb 0x140016c6d
lea rax, [rbp + 0x78]
cmp qword [rbp + 0x90], 8
cmovae rax, qword [rbp + 0x78]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, str.SID0_
lea rcx, [rbp - 0x28]
call fcn.140016c74
lea rcx, [rbp - 0x28]
call fcn.1400171f8
lea r14, [rbp + 0x78]
cmp qword [rbp + 0x90], 8
cmovae r14, qword [rbp + 0x78]
xor r15d, r15d
mov qword [rbp + 0x28], r15
movdqa xmm0, xmmword [0x140026aa0]
movdqu xmmword [rbp + 0x38], xmm0
mov word [rbp + 0x28], r15w
or rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp word [r14 + r8*2], r15w
jne 0x140016778
mov rdx, r14
lea rcx, [rbp + 0x28]
call fcn.14000cc9c
nop
mov r8, qword [rbp + 0x38]
mov rax, qword [rbp + 0x40]
sub rax, r8
cmp rax, r12
jb 0x140016831
lea rax, [r8 + 5]
mov qword [rbp + 0x38], rax
lea rdi, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rdi, qword [rbp + 0x28]
lea rax, [0x14002671a]
lea r13, str.SID1_
cmp rax, rdi
jbe 0x1400167ea
lea rax, [rdi + r8*2]
cmp r13, rax
ja 0x1400167ea
cmp rdi, r13
ja 0x1400167df
mov rbx, r15
jmp 0x1400167ed
mov rbx, rdi
sub rbx, r13
sar rbx, 1
jmp 0x1400167ed
mov rbx, r12
lea rcx, [rdi + 0xa]
lea r8, [r8*2 + 2]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rbx
mov r8, rbx
mov rdx, r13
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
mov r8d, 0xa
sub r8, rbx
lea rdx, [r13 + 0xa]
add rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp + 0x28]
jmp 0x140016842
mov qword [rsp + 0x28], r12
mov rdx, r12
lea rcx, [rbp + 0x28]
call fcn.140016db0
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], r15
mov r13d, 7
mov qword [rax + 0x18], r13
mov word [rax], r15w
lea rcx, [rsp + 0x78]
call fcn.1400171f8
nop
lea rcx, [rbp + 0x28]
call fcn.14000c584
mov r8d, 0x104
lea rdx, [rbp + 0xc0]
xor ecx, ecx
call qword [0x14002d3b8]
mov qword [rsp + 0x58], r15
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, str.pipe_atsvc
lea r8, str.localhost
lea rdx, str.ncacn_np
xor ecx, ecx
call qword [0x14002d378]
test eax, eax
je 0x1400168db
mov rbx, r15
jmp 0x140016936
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [0x14002d2c0]
mov qword [rbp + 0x48], 1
mov dword [rbp + 0x54], 3
mov dword [rbp + 0x50], r15d
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor edx, edx
lea r9d, [rdx + 0xa]
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x58]
call qword [0x14002d360]
lea rcx, [rsp + 0x50]
call qword [0x14002d350]
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r15
lea r8, [0x14002c478]
cmp qword [0x14002c490], 8
cmovae r8, qword [0x14002c478]
mov qword [rsp + 0x20], r14
mov r9, r14
mov r14d, 0x1000
mov edx, r14d
lea rcx, [rbp + 0x2d0]
call fcn.140016640
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r13
lea rax, [rbp + 0x2d0]
mov r8, rsi
inc r8
cmp word [rax + r8*2], r15w
jne 0x14001698a
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp - 0x68]
call fcn.14000cc9c
lea rcx, [rbp - 0x68]
call fcn.1400171f8
mov dword [rbp + 0x18], 0x59
mov eax, dword [rbp + 0x18]
xor al, 0x5c
mov byte [rbp + 0x1c], al
mov eax, dword [rbp + 0x18]
inc al
xor al, 0x43
mov byte [rbp + 0x1d], al
mov eax, dword [rbp + 0x18]
add al, 2
xor al, 0x6f
mov byte [rbp + 0x1e], al
mov eax, dword [rbp + 0x18]
add al, 3
xor al, 0x72
mov byte [rbp + 0x1f], al
mov eax, dword [rbp + 0x18]
add al, 4
xor al, 0x70
mov byte [rbp + 0x20], al
xor eax, eax
mov byte [rbp + 0x21], al
mov al, byte [rbp + 0x1c]
mov rdx, r15
mov al, byte [rbp + rdx + 0x1c]
mov ecx, dword [rbp + 0x18]
add cl, dl
xor cl, al
mov byte [rbp + rdx + 0x1c], cl
inc rdx
cmp rdx, r12
jb 0x1400169ef
mov byte [rbp + 0x21], r15b
mov qword [rbp + 0x58], r15
mov qword [rbp + 0x68], r15
mov edi, 0xf
mov qword [rbp + 0x70], rdi
mov byte [rbp + 0x58], r15b
lea rax, [rbp + 0x1c]
mov r8, rsi
inc r8
cmp byte [rax + r8], r15b
jne 0x140016a26
lea rdx, [rbp + 0x1c]
lea rcx, [rbp + 0x58]
call fcn.140004fa8
nop
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x98]
call fcn.140017408
nop
cmp qword [rax + 0x18], 8
jb 0x140016a58
mov rax, qword [rax]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, 2
lea r8, [rbp + 0x2d0]
mov rdx, rax
mov rcx, rbx
call fcn.140016168
nop
lea rcx, [rbp + 0x98]
call fcn.14000c584
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 0x10
jb 0x140016ae0
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, r14
jb 0x140016adb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016adb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400203ec
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], rdi
mov byte [rbp + 0x58], r15b
mov dword [rbp - 8], 4
mov eax, dword [rbp - 8]
xor al, 0x5b
mov byte [rbp - 4], al
mov eax, dword [rbp - 8]
inc al
xor al, 0x2b
mov byte [rbp - 3], al
mov eax, dword [rbp - 8]
add al, 2
xor al, 0x5d
mov byte [rbp - 2], al
mov eax, dword [rbp - 8]
add al, 3
xor al, 0x20
mov byte [rbp - 1], al
mov eax, dword [rbp - 8]
add al, 4
xor al, 0x52
mov byte [rbp], al
mov eax, dword [rbp - 8]
add al, r12b
xor al, 0x50
mov byte [rbp + 1], al
mov eax, dword [rbp - 8]
add al, 6
xor al, 0x43
mov byte [rbp + 2], al
mov eax, dword [rbp - 8]
add al, r13b
xor al, 0xbc
mov byte [rbp + 3], al
mov eax, dword [rbp - 8]
add al, 8
xor al, 0xc6
mov byte [rbp + 4], al
mov eax, dword [rbp - 8]
add al, 9
xor al, 0xbb
mov byte [rbp + 5], al
mov eax, dword [rbp - 8]
add al, 0xa
xor al, 0xae
mov byte [rbp + 6], al
mov eax, dword [rbp - 8]
add al, 0xb
xor al, 0xc8
mov byte [rbp + 7], al
mov eax, dword [rbp - 8]
add al, 0xc
xor al, 0xce
mov byte [rbp + 8], al
mov eax, dword [rbp - 8]
add al, 0xd
xor al, 0xce
mov byte [rbp + 9], al
mov eax, dword [rbp - 8]
add al, 0xe
xor al, 0xf1
mov byte [rbp + 0xa], al
mov eax, dword [rbp - 8]
add al, dil
xor al, 0xcc
mov byte [rbp + 0xb], al
mov eax, dword [rbp - 8]
add al, 0x10
xor al, 0xed
mov byte [rbp + 0xc], al
mov eax, dword [rbp - 8]
add al, 0x11
xor al, 0xbc
mov byte [rbp + 0xd], al
mov eax, dword [rbp - 8]
add al, 0x12
xor al, 0xd3
mov byte [rbp + 0xe], al
mov eax, dword [rbp - 8]
add al, 0x13
xor al, 0xb3
mov byte [rbp + 0xf], al
mov eax, dword [rbp - 8]
add al, 0x14
xor al, 0xc9
mov byte [rbp + 0x10], al
mov eax, dword [rbp - 8]
add al, 0x15
xor al, 0xb9
mov byte [rbp + 0x11], al
mov eax, dword [rbp - 8]
add al, 0x16
xor al, 0xa6
mov byte [rbp + 0x12], al
xor eax, eax
mov byte [rbp + 0x13], al
mov al, byte [rbp - 4]
mov rdx, r15
mov al, byte [rbp + rdx - 4]
mov ecx, dword [rbp - 8]
add cl, dl
xor cl, al
mov byte [rbp + rdx - 4], cl
inc rdx
cmp rdx, 0x17
jb 0x140016be5
mov byte [rbp + 0x13], r15b
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], rdi
lea rax, [rbp - 4]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x140016c11
mov r8, rsi
lea rdx, [rbp - 4]
lea rcx, [rbp - 0x48]
call fcn.140004fa8
lea rcx, [rbp - 0x48]
call fcn.140017144
nop
lea rcx, [rbp + 0x78]
call fcn.14000c584
mov rcx, qword [rbp + 0x22d0]
xor rcx, rsp
call fcn.140020140
lea r11, [rsp + 0x23e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140004bbc
nop
int3