Function at 0x18006e3d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a8
mov rax, qword [0x18009d5d8]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov dword [rsp + 0x20], r9d
mov r13d, r9d
mov qword [rsp + 0x28], r8
mov r15d, edx
mov rdi, rcx
cmp r9d, 0xc8
jne 0x18006e418
lea r14d, [r9 - 0x40]
jmp 0x18006e424
mov r14d, 0x64
sub r14d, r9d
add r14d, r14d
mov eax, r14d
lea rcx, [rsp + 0x30]
cdq
mov r8d, 0xc8
and edx, 7
add eax, edx
xor edx, edx
sar eax, 3
movsxd rsi, eax
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov rbp, rsi
cmp r15d, r14d
jl 0x18006e567
lea rbx, [rsp + 0x30]
movsxd r13, r14d
sub rbx, rdi
nop
mov rax, r12
test esi, esi
jle 0x18006e521
cmp esi, 8
jb 0x18006e521
lea ecx, [rsi - 1]
movsxd rdx, ecx
lea r8, [rsp + 0x30]
lea rcx, [rdi + rdx*8]
lea r8, [r8 + rdx*8]
lea rdx, [rsp + 0x30]
cmp rdx, rcx
ja 0x18006e49a
cmp r8, rdi
jae 0x18006e521
mov edx, esi
and edx, 0x80000007
jge 0x18006e4ab
dec edx
or edx, 0xfffffff8
inc edx
mov ecx, esi
sub ecx, edx
movsxd rdx, ecx
lea rcx, [rdi + 0x20]
nop word [rax + rax]
movdqu xmm0, xmmword [rcx + rbx - 0x20]
add rax, 8
movdqu xmm1, xmmword [rcx - 0x20]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx + rbx - 0x60], xmm1
movdqu xmm0, xmmword [rcx + rbx - 0x50]
movdqu xmm1, xmmword [rcx - 0x50]
pxor xmm1, xmm0
movdqu xmmword [rcx + rbx - 0x50], xmm1
movdqu xmm0, xmmword [rcx + rbx - 0x40]
movdqu xmm1, xmmword [rcx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx + rbx - 0x40], xmm1
movdqu xmm0, xmmword [rcx + rbx - 0x30]
movdqu xmm1, xmmword [rcx - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rcx + rbx - 0x30], xmm1
cmp rax, rdx
jl 0x18006e4c0
cmp rax, rbp
jge 0x18006e541
nop word [rax + rax]
mov rcx, qword [rdi + rax*8]
xor qword [rsp + rax*8 + 0x30], rcx
inc rax
cmp rax, rbp
jl 0x18006e530
mov edx, 0x18
lea rcx, [rsp + 0x30]
call fcn.18006e6d0
sub r15d, r14d
add rdi, r13
sub rbx, r13
cmp r15d, r14d
jge 0x18006e460
mov r13d, dword [rsp + 0x20]
movsxd rbx, r15d
lea rcx, [rsp + 0x100]
mov r8, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, r14d
mov byte [rsp + rbx + 0x100], 1
inc r15d
lea rcx, [rsp + 0x100]
sub eax, r15d
xor edx, edx
movsxd r8, eax
movsxd rax, r15d
add rcx, rax
call sub.VCRUNTIME140.dll_memset
lea eax, [r14 - 1]
movsxd rcx, eax
or byte [rsp + rcx + 0x100], 0x80
mov ecx, r12d
test esi, esi
jle 0x18006e65c
cmp esi, 8
jb 0x18006e65c
mov eax, esi
and eax, 0x80000007
jge 0x18006e5d9
dec eax
or eax, 0xfffffff8
inc eax
sub esi, eax
movsxd rax, esi
nop
movdqu xmm0, xmmword [rsp + r12*8 + 0x30]
add ecx, 8
movdqu xmm1, xmmword [rsp + r12*8 + 0x100]
pxor xmm1, xmm0
movdqu xmmword [rsp + r12*8 + 0x30], xmm1
movdqu xmm0, xmmword [rsp + r12*8 + 0x40]
movdqu xmm1, xmmword [rsp + r12*8 + 0x110]
pxor xmm1, xmm0
movdqu xmmword [rsp + r12*8 + 0x40], xmm1
movdqu xmm0, xmmword [rsp + r12*8 + 0x50]
movdqu xmm1, xmmword [rsp + r12*8 + 0x120]
pxor xmm1, xmm0
movdqu xmmword [rsp + r12*8 + 0x50], xmm1
movdqu xmm0, xmmword [rsp + r12*8 + 0x60]
movdqu xmm1, xmmword [rsp + r12*8 + 0x130]
pxor xmm1, xmm0
movdqu xmmword [rsp + r12*8 + 0x60], xmm1
add r12, 8
cmp r12, rax
jl 0x18006e5e0
movsxd r8, ecx
cmp r8, rbp
jge 0x18006e685
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rsp + r8*8 + 0x100]
xor qword [rsp + r8*8 + 0x30], rax
inc r8
cmp r8, rbp
jl 0x18006e670
mov edx, 0x18
lea rcx, [rsp + 0x30]
call fcn.18006e6d0
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x30]
movsxd r8, r13d
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.180076910
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret