Function at 0x1401a7720
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x1401a7a0e
mov r11, rsp
push rsi
push r14
sub rsp, 0x838
mov rax, qword [0x140510618]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x1401a79f4
mov qword [r11 + 0x18], rbx
mov rbx, qword [rcx]
test rbx, rbx
je 0x1401a79ec
mov r10d, dword [rdx + 0x18]
mov qword [r11 - 0x18], rdi
mov eax, r10d
mov r11, qword [rdx]
mov edx, 8
shl rax, 0xa
lea rcx, [r11 - 0x400]
add rcx, rax
lea rax, [rsp + 0x20]
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1401a7790
mov r9d, dword [rsi + 0x1c]
mov r8d, 1
cmp r9d, r8d
jbe 0x1401a78d7
nop word [rax + rax]
inc r8d
lea rdi, [rsp + 0x20]
mov edx, r8d
xor eax, eax
imul edx, r10d
dec edx
shl rdx, 0xa
add rdx, r11
lea rcx, [rdx + 0x3f8]
cmp rdi, rcx
ja 0x1401a784c
lea rcx, [rsp + 0x418]
cmp rcx, rdx
jb 0x1401a784c
mov rcx, qword [rdx + rax*8]
xor qword [rsp + rax*8 + 0x20], rcx
inc rax
cmp rax, 0x80
jl 0x1401a7833
jmp 0x1401a78ce
lea rcx, [rsp + 0x20]
sub rcx, rdx
lea rdi, [rsp + 0x30]
sub rdi, rdx
lea rax, [rdx + 0x20]
mov edx, 0x10
nop word [rax + rax]
movdqu xmm0, xmmword [rax + rcx - 0x20]
movdqu xmm1, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax + rcx - 0x60], xmm1
movdqu xmm0, xmmword [rax + rdi - 0x60]
movdqu xmm1, xmmword [rax - 0x50]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rax + rdi - 0x60], xmm1
movdqu xmm1, xmmword [rax + rcx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax + rcx - 0x40], xmm1
movdqu xmm0, xmmword [rax + rdi - 0x40]
movdqu xmm1, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax + rdi - 0x40], xmm1
sub rdx, 1
jne 0x1401a7870
cmp r8d, r9d
jb 0x1401a7800
lea rdx, [rsp + 0x420]
mov r8d, 0x20
lea rdi, [rsp + 0x20]
nop word [rax + rax]
mov rax, qword [rdi]
lea rdi, [rdi + 0x20]
mov qword [rdx], rax
lea rdx, [rdx + 0x20]
mov rax, qword [rdi - 0x18]
mov qword [rdx - 0x18], rax
mov rax, qword [rdi - 0x10]
mov qword [rdx - 0x10], rax
mov rax, qword [rdi - 8]
mov qword [rdx - 8], rax
sub r8, 1
jne 0x1401a78f0
mov edx, dword [r14 + 8]
lea r8, [rsp + 0x420]
mov r9d, 0x400
mov rcx, rbx
call fcn.1401af230
mov edx, dword [0x1407ac9c0]
test edx, edx
je 0x1401a795d
xor eax, eax
lea rdi, [rsp + 0x20]
mov ecx, 0x400
rep stosb byte [rdi], al
lea rdi, [rsp + 0x420]
mov ecx, 0x400
rep stosb byte [rdi], al
cmp dword [rsi + 0x28], 0
je 0x1401a79ab
mov rdi, qword [r14]
mov ebx, dword [r14 + 8]
test rdi, rdi
je 0x1401a79ab
lea rcx, [0x1404d36b0]
call fcn.14002c860
test ebx, ebx
je 0x1401a7999
nop
movzx edx, byte [rdi]
lea rcx, [0x1404d3684]
call fcn.14002c860
lea rdi, [rdi + 1]
sub rbx, 1
jne 0x1401a7980
lea rcx, [0x1404c8ff4]
call fcn.14002c860
mov edx, dword [0x1407ac9c0]
mov r8d, dword [rsi + 0x10]
shl r8d, 0xa
test edx, edx
je 0x1401a79c6
mov rdi, qword [rsi]
test rdi, rdi
je 0x1401a79c6
xor eax, eax
mov ecx, r8d
rep stosb byte [rdi], al
cmp dword [rsi + 0x2c], 0
mov rdi, qword [rsp + 0x830]
jne 0x1401a79ec
mov rax, qword [r14 + 0x68]
mov rcx, qword [rsi]
test rax, rax
je 0x1401a79e7
mov rdx, r8
call rax
jmp 0x1401a79ec
call fcn.14036c05c
mov rbx, qword [rsp + 0x860]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1403606b0
add rsp, 0x838
pop r14
pop rsi
ret