Function at 0x18006aaa0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
push rsi
push r13
sub rsp, 0x38
mov rsi, qword [rsp + 0x70]
mov r13, rcx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbp, rdx
mov qword [rax + 0x18], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r14
mov qword [rax - 0x28], r15
mov eax, r9d
movsxd rbx, r8d
test rdx, rdx
je 0x18006abf7
test al, 8
jne 0x18006abf7
mov r10, qword [rcx + 0x18]
lea eax, [rbx - 1]
mov qword [rsp + 0x70], r10
mov r9d, 0xd
movsxd r8, eax
test eax, eax
js 0x18006ab19
movzx edx, byte [r8 + rbp]
lea ecx, [r9*8]
xor edx, ecx
xor r9d, edx
sub r8, 1
jns 0x18006ab01
xor edx, edx
mov eax, r9d
div dword [r10 + 0x14]
mov rax, qword [r10 + 0x20]
mov rdi, qword [rax + rdx*8]
test rdi, rdi
je 0x18006ab54
nop
mov eax, dword [rdi + 0x1c]
inc eax
cmp ebx, eax
jne 0x18006ab4c
mov r8, rbx
lea rcx, [rdi + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18006ab84
mov rdi, qword [rdi]
test rdi, rdi
jne 0x18006ab30
xor r14d, r14d
xor r15d, r15d
mov dword [r13 + 0x34], 0
lea r12, [r13 + 0x34]
test r14, r14
je 0x18006ab72
lea rax, [r14 + 0x10]
mov qword [r14], rax
or dword [rsi + 8], 1
test r14, r14
je 0x18006addd
jmp 0x18006acbd
mov r12d, dword [rdi + 0x18]
lea r15d, [rbx + 0x31]
sub r12d, r15d
call fcn.1800fff70
test eax, eax
je 0x18006abac
xor r14d, r14d
lea r12, [r13 + 0x34]
xor r15d, r15d
mov dword [r12], 7
jmp 0x18006ab72
lea eax, [r12 + 0x1a]
movsxd rcx, eax
call fcn.1800ca1d0
mov r14, rax
test rax, rax
je 0x18006ab9b
movsxd rdx, r15d
lea rcx, [rax + 0x10]
add rdx, rdi
movsxd r8, r12d
call sub.VCRUNTIME140.dll_memcpy
mov ecx, 0x10
mov rdx, rdi
sub ecx, r15d
movsxd r8, ecx
mov rcx, qword [rsp + 0x70]
add r8, r14
call fcn.180060280
lea r15d, [r12 + rax]
jmp 0x18006ab5a
mov rcx, qword [rcx + 0x18]
lea r12, [r13 + 0x34]
mov r8d, ebx
lea r9, [rcx + 0x18]
call fcn.180060490
mov rcx, qword [r13 + 0x18]
mov dword [r12], eax
mov r14, qword [rcx + 0x18]
test r14, r14
je 0x18006ac6c
mov rbx, 0xffffffffffffffff
lea rbp, [r14 + 0x30]
mov rdi, rbx
nop word [rax + rax]
inc rdi
cmp byte [rdi + rbp], 0
jne 0x18006ac30
xor r8d, r8d
mov rdx, r14
call fcn.180060280
mov r15d, dword [r14 + 0x18]
lea eax, [rdi + 1]
sub r15d, edi
cdqe
add rax, rbp
sub r15d, 0x31
mov qword [rsp + 0x70], rax
test rbp, rbp
je 0x18006ac78
inc rbx
cmp byte [rbx + rbp], 0
jne 0x18006ac61
jmp 0x18006ac7a
xor eax, eax
xor ebp, ebp
mov qword [rsp + 0x70], rax
xor r15d, r15d
xor ebx, ebx
test rax, rax
je 0x18006addd
cmp dword [r12], 0
jne 0x18006addd
call fcn.1800fff70
test eax, eax
jne 0x18006add5
lea ecx, [rax + 0x10]
call fcn.1800ca1d0
mov r14, rax
test rax, rax
je 0x18006add5
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rax, qword [rsp + 0x70]
mov qword [r14], rax
mov dword [rsi + 0x60], 0
test ebx, ebx
je 0x18006acf6
cmp ebx, dword [rsi + 0x64]
jbe 0x18006ace0
mov r8d, ebx
lea rdx, [rsi + 0x58]
mov rcx, r12
call fcn.1800b7780
test eax, eax
jne 0x18006acf6
movsxd rcx, dword [rsi + 0x60]
mov rdx, rbp
add rcx, qword [rsi + 0x58]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memcpy
add dword [rsi + 0x60], ebx
mov dword [r14 + 0xc], r15d
lea rdx, [rsi + 0x68]
mov dword [r14 + 8], r15d
mov qword [rsi + 0x10], r14
mov rcx, qword [r14]
call fcn.1800ba460
test byte [rsp + 0x68], 2
movzx edx, al
mov dword [rsi + 0x20], edx
mov r8d, dword [r14 + 8]
mov dword [rsi + 0x3c], r8d
je 0x18006ad37
or dword [rsi + 8], 2
mov rdx, rsi
mov rcx, r13
call fcn.18006bc20
jmp 0x18006addd
cmp dword [r12], 0
jne 0x18006addd
mov rax, qword [r13]
mov ebx, edx
mov r9, qword [rsi + 0x10]
cmp dword [rax + 0x5c], 1
jne 0x18006ad9e
cmp r8d, dword [r9 + 0xc]
cmovge r8d, dword [r9 + 0xc]
mov byte [rsi + 0x74], 0
mov dword [rsi + 0x70], 1
cmp edx, r8d
jge 0x18006add0
mov rax, qword [r9]
movsxd rcx, edx
cmp byte [rcx + rax], 0
jne 0x18006add0
inc edx
mov byte [rsi + 0x74], 1
cmp edx, r8d
jge 0x18006ad92
mov rax, qword [r9]
cmp byte [rdx + rax], 0
jne 0x18006ad92
inc edx
mov dword [rsi + 0x20], edx
jmp 0x18006addd
mov dword [rsi + 0x70], 0
mov dword [rsi + 0x20], edx
jmp 0x18006addd
mov rcx, rdx
inc edx
add rcx, qword [r9]
movzx eax, byte [rcx]
mov dword [rsp + 0x70], eax
test al, al
jns 0x18006adc2
lea rdx, [rsp + 0x70]
call fcn.1800ba650
lea edx, [rbx + rax]
mov eax, dword [rsp + 0x70]
movzx ecx, al
and cl, 1
sar eax, 1
mov dword [rsi + 0x70], eax
mov byte [rsi + 0x74], cl
mov dword [rsi + 0x20], edx
jmp 0x18006addd
mov dword [r12], 7
test byte [rsi + 8], 2
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
je 0x18006ae14
lea rax, [0x18006b920]
mov qword [rsi + 0x28], rax
add rsp, 0x38
pop r13
pop rsi
ret
mov rax, qword [r13]
lea rcx, [0x18006b1b0]
lea rdx, [0x18006b6f0]
cmp dword [rax + 0x5c], 1
cmove rcx, rdx
mov qword [rsi + 0x28], rcx
add rsp, 0x38
pop r13
pop rsi
ret