Function at 0x14009fb50
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x14009fe24
push rbx
push rsi
sub rsp, 0x838
mov rax, qword [0x14018d558]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x14009fe0b
cmp qword [rcx], 0
je 0x14009fe0b
mov r11d, dword [rdx + 0x18]
mov r9d, 8
mov qword [rsp + 0x860], rbp
mov eax, r11d
mov rbp, qword [rdx]
mov edx, r9d
shl rax, 0xa
lea rcx, [rbp - 0x400]
add rcx, rax
lea rax, [rsp + 0x20]
nop dword [rax + 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 0x14009fbc0
mov r10d, dword [rbx + 0x1c]
mov r8d, 1
mov qword [rsp + 0x830], rdi
cmp r10d, r8d
jbe 0x14009fd03
nop
lea eax, [r8 + 1]
mov r8d, eax
lea rdi, [rsp + 0x20]
imul eax, r11d
lea edx, [rax - 1]
xor eax, eax
shl rdx, 0xa
add rdx, rbp
lea rcx, [rdx + 0x3f8]
cmp rdi, rcx
ja 0x14009fc86
lea rcx, [rsp + 0x418]
cmp rcx, rdx
jb 0x14009fc86
nop word [rax + rax]
mov rcx, qword [rdx + rax*8]
xor qword [rsp + rax*8 + 0x20], rcx
inc rax
cmp rax, 0x80
jl 0x14009fc70
jmp 0x14009fcfa
lea rcx, [rsp + 0x20]
sub rcx, rdx
lea rdi, [rsp + 0x30]
sub rdi, rdx
lea rax, [rdx + 0x20]
mov edx, 0x10
nop
movdqu xmm0, xmmword [rcx + rax - 0x20]
movdqu xmm1, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rcx + rax - 0x60], xmm1
movdqu xmm0, xmmword [rdi + rax - 0x60]
movdqu xmm1, xmmword [rax - 0x50]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rdi + rax - 0x60], xmm1
movdqu xmm1, xmmword [rax + rcx - 0x40]
xorps xmm1, xmm0
movdqu xmmword [rax + rcx - 0x40], xmm1
movdqu xmm0, xmmword [rax + rdi - 0x40]
movdqu xmm1, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax + rdi - 0x40], xmm1
sub rdx, 1
jne 0x14009fca0
cmp r8d, r10d
jb 0x14009fc30
mov rbp, qword [rsp + 0x860]
lea rax, [rsp + 0x420]
lea rdx, [rsp + 0x20]
nop dword [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub r9, 1
jne 0x14009fd20
mov edx, dword [rsi + 8]
lea r8, [rsp + 0x420]
mov rcx, qword [rsi]
mov r9d, 0x400
call fcn.1400a3910
mov edx, dword [0x140211590]
test edx, edx
je 0x14009fdb3
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 [rbx + 0x28], 0
je 0x14009fdca
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
call fcn.1400a4030
mov edx, dword [0x140211590]
mov r8d, dword [rbx + 0x10]
shl r8d, 0xa
test edx, edx
je 0x14009fde5
mov rdi, qword [rbx]
test rdi, rdi
je 0x14009fde5
xor eax, eax
mov ecx, r8d
rep stosb byte [rdi], al
cmp dword [rbx + 0x2c], 0
mov rdi, qword [rsp + 0x830]
jne 0x14009fe0b
mov rax, qword [rsi + 0x68]
mov rcx, qword [rbx]
test rax, rax
je 0x14009fe06
mov rdx, r8
call rax
jmp 0x14009fe0b
call fcn.1400d99d0
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400d2c70
add rsp, 0x838
pop rsi
pop rbx
ret