Function at 0x14000fd20
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14001013c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, r8
mov r14, r9
shr rdi, 4
mov rsi, rdx
cmp byte [rcx], 0
mov rbx, rcx
je 0x14000fd6a
mov r8, rdi
call fcn.140010140
jmp 0x14001011f
lea rdx, [rcx + 8]
mov r12d, 0x10
mov r8d, r12d
lea rcx, [rbp - 0x10]
call fcn.140024410
test rdi, rdi
je 0x14001010f
lea rax, [rbp - 0x20]
mov r9, rbx
sub r9, rax
lea r11, [rbp - 8]
add r11, r9
lea r13, [0x140000000]
sub r14, rsi
movsxd r8, dword [rbx + 4]
lea rdx, [rbx + 0x18]
mov rax, r8
xor ecx, ecx
shl rax, 4
add rdx, rax
mov eax, dword [rsi + rcx*4]
xor eax, dword [rdx]
lea rdx, [rdx + 4]
mov dword [rbp + rcx*4 - 0x30], eax
inc rcx
cmp rcx, 4
jl 0x14000fdb8
movzx ecx, byte [rbp - 0x30]
movzx eax, byte [rbp - 0x29]
mov edx, dword [r13 + rcx*4 + 0x4f990]
xor edx, dword [r13 + rax*4 + 0x50590]
movzx eax, byte [rbp - 0x26]
movzx ecx, byte [rbp - 0x2f]
xor edx, dword [r13 + rax*4 + 0x50190]
movzx eax, byte [rbp - 0x23]
xor edx, dword [r13 + rax*4 + 0x4fd90]
movzx eax, byte [rbp - 0x2c]
mov dword [rbp - 0x20], edx
mov edx, dword [r13 + rcx*4 + 0x4fd90]
movzx ecx, byte [rbp - 0x2e]
xor edx, dword [r13 + rax*4 + 0x4f990]
movzx eax, byte [rbp - 0x25]
xor edx, dword [r13 + rax*4 + 0x50590]
movzx eax, byte [rbp - 0x22]
xor edx, dword [r13 + rax*4 + 0x50190]
movzx eax, byte [rbp - 0x28]
mov dword [rbp - 0x1c], edx
mov edx, dword [r13 + rcx*4 + 0x50190]
movzx ecx, byte [rbp - 0x2d]
xor edx, dword [r13 + rax*4 + 0x4f990]
movzx eax, byte [rbp - 0x2b]
xor edx, dword [r13 + rax*4 + 0x4fd90]
movzx eax, byte [rbp - 0x21]
xor edx, dword [r13 + rax*4 + 0x50590]
movzx eax, byte [rbp - 0x2a]
mov dword [rbp - 0x18], edx
mov edx, dword [r13 + rcx*4 + 0x50590]
xor edx, dword [r13 + rax*4 + 0x50190]
movzx eax, byte [rbp - 0x27]
xor edx, dword [r13 + rax*4 + 0x4fd90]
movzx eax, byte [rbp - 0x24]
xor edx, dword [r13 + rax*4 + 0x4f990]
lea eax, [r8 - 1]
movsxd rcx, eax
mov dword [rbp - 0x14], edx
cmp rcx, 1
jle 0x14000ffb9
mov rax, rcx
lea rdx, [rbp - 0x20]
shl rax, 4
lea r8, [rbx + 0x18]
sub rax, rdx
lea r10, [rcx - 1]
add r8, rax
xor edx, edx
lea rax, [rbp - 0x20]
add rax, rdx
mov ecx, dword [r8 + rax]
xor ecx, dword [rax]
mov dword [rbp + rdx - 0x30], ecx
add rdx, 4
cmp rdx, r12
jl 0x14000fec6
movzx ecx, byte [rbp - 0x30]
sub r8, r12
movzx eax, byte [rbp - 0x29]
mov edx, dword [r13 + rcx*4 + 0x4f990]
xor edx, dword [r13 + rax*4 + 0x50590]
movzx eax, byte [rbp - 0x26]
movzx ecx, byte [rbp - 0x2f]
xor edx, dword [r13 + rax*4 + 0x50190]
movzx eax, byte [rbp - 0x23]
xor edx, dword [r13 + rax*4 + 0x4fd90]
movzx eax, byte [rbp - 0x2c]
mov dword [rbp - 0x20], edx
mov edx, dword [r13 + rcx*4 + 0x4fd90]
movzx ecx, byte [rbp - 0x2e]
xor edx, dword [r13 + rax*4 + 0x4f990]
movzx eax, byte [rbp - 0x25]
xor edx, dword [r13 + rax*4 + 0x50590]
movzx eax, byte [rbp - 0x22]
xor edx, dword [r13 + rax*4 + 0x50190]
movzx eax, byte [rbp - 0x28]
mov dword [rbp - 0x1c], edx
mov edx, dword [r13 + rcx*4 + 0x50190]
movzx ecx, byte [rbp - 0x2d]
xor edx, dword [r13 + rax*4 + 0x4f990]
movzx eax, byte [rbp - 0x2b]
xor edx, dword [r13 + rax*4 + 0x4fd90]
movzx eax, byte [rbp - 0x21]
xor edx, dword [r13 + rax*4 + 0x50590]
movzx eax, byte [rbp - 0x2a]
mov dword [rbp - 0x18], edx
mov edx, dword [r13 + rcx*4 + 0x50590]
xor edx, dword [r13 + rax*4 + 0x50190]
movzx eax, byte [rbp - 0x27]
xor edx, dword [r13 + rax*4 + 0x4fd90]
movzx eax, byte [rbp - 0x24]
xor edx, dword [r13 + rax*4 + 0x4f990]
mov dword [rbp - 0x14], edx
sub r10, 1
jne 0x14000fec4
xor edx, edx
lea rax, [rbp - 0x20]
add rax, rdx
mov ecx, dword [r9 + rax + 0x28]
xor ecx, dword [rax]
mov dword [rbp + rdx - 0x30], ecx
add rdx, 4
cmp rdx, r12
jl 0x14000ffbb
movzx eax, byte [rbp - 0x30]
xor ecx, ecx
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x20], al
movzx eax, byte [rbp - 0x23]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x1f], al
movzx eax, byte [rbp - 0x26]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x1e], al
movzx eax, byte [rbp - 0x29]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x1d], al
movzx eax, byte [rbp - 0x2c]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x1c], al
movzx eax, byte [rbp - 0x2f]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x1b], al
movzx eax, byte [rbp - 0x22]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x1a], al
movzx eax, byte [rbp - 0x25]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x19], al
movzx eax, byte [rbp - 0x28]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x18], al
movzx eax, byte [rbp - 0x2b]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x17], al
movzx eax, byte [rbp - 0x2e]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x16], al
movzx eax, byte [rbp - 0x21]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x15], al
movzx eax, byte [rbp - 0x24]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x14], al
movzx eax, byte [rbp - 0x27]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x13], al
movzx eax, byte [rbp - 0x2a]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x12], al
movzx eax, byte [rbp - 0x2d]
mov al, byte [rax + r13 + 0x4e870]
mov byte [rbp - 0x11], al
mov eax, dword [r11 + rcx*4]
xor dword [rbp + rcx*4 - 0x20], eax
inc rcx
cmp rcx, 4
jl 0x1400100c8
cmp byte [rbx + 1], 0
je 0x1400100f2
xor ecx, ecx
mov eax, dword [rbp + rcx - 0x10]
xor dword [rbp + rcx - 0x20], eax
add rcx, 4
cmp rcx, r12
jl 0x1400100e1
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbp - 0x10], xmm0
movups xmmword [r14 + rsi], xmm1
add rsi, r12
sub rdi, 1
jne 0x14000fda4
mov r8, r12
lea rdx, [rbp - 0x10]
lea rcx, [rbx + 8]
call fcn.140024410
lea r11, [rsp + 0x50]
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