Function at 0x14001a858
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14001ac82
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, r8
mov r14, r9
shr rdi, 4
mov rsi, rdx
cmp byte [rcx], 0
mov rbx, rcx
je 0x14001a8a2
mov r8, rdi
call fcn.14001ac84
jmp 0x14001ac68
lea r15, [rcx + 8]
mov r12d, 0x10
mov r8d, r12d
mov qword [rbp - 0x20], r15
mov rdx, r15
lea rcx, [rbp - 0x18]
call fcn.140045070
test rdi, rdi
je 0x14001ac59
lea r10, [rbx + 0x28]
sub r14, rsi
lea rax, [rbp - 0x30]
sub r10, rax
lea r15, [0x140000000]
movsxd r11, dword [rbx + 4]
lea r8, [rbp - 0x40]
mov rcx, r11
mov rdx, rsi
shl rcx, 4
mov r9d, 4
add rcx, 0x18
add rcx, rbx
sub rdx, rcx
sub r8, rcx
mov eax, dword [rdx + rcx]
xor eax, dword [rcx]
mov dword [r8 + rcx], eax
lea rcx, [rcx + 4]
sub r9, 1
jne 0x14001a902
movzx ecx, byte [rbp - 0x40]
movzx eax, byte [rbp - 0x39]
mov edx, dword [r15 + rcx*4 + 0x65be0]
xor edx, dword [r15 + rax*4 + 0x667e0]
movzx eax, byte [rbp - 0x36]
movzx ecx, byte [rbp - 0x3c]
xor edx, dword [r15 + rax*4 + 0x663e0]
movzx eax, byte [rbp - 0x33]
xor edx, dword [r15 + rax*4 + 0x65fe0]
movzx eax, byte [rbp - 0x3f]
mov dword [rbp - 0x30], edx
mov edx, dword [r15 + rcx*4 + 0x65be0]
movzx ecx, byte [rbp - 0x3e]
xor edx, dword [r15 + rax*4 + 0x65fe0]
movzx eax, byte [rbp - 0x35]
xor edx, dword [r15 + rax*4 + 0x667e0]
movzx eax, byte [rbp - 0x32]
xor edx, dword [r15 + rax*4 + 0x663e0]
movzx eax, byte [rbp - 0x3b]
mov dword [rbp - 0x2c], edx
mov edx, dword [r15 + rcx*4 + 0x663e0]
movzx ecx, byte [rbp - 0x3d]
xor edx, dword [r15 + rax*4 + 0x65fe0]
movzx eax, byte [rbp - 0x38]
xor edx, dword [r15 + rax*4 + 0x65be0]
movzx eax, byte [rbp - 0x31]
xor edx, dword [r15 + rax*4 + 0x667e0]
movzx eax, byte [rbp - 0x3a]
mov dword [rbp - 0x28], edx
mov edx, dword [r15 + rcx*4 + 0x667e0]
xor edx, dword [r15 + rax*4 + 0x663e0]
movzx eax, byte [rbp - 0x34]
xor edx, dword [r15 + rax*4 + 0x65be0]
movzx eax, byte [rbp - 0x37]
xor edx, dword [r15 + rax*4 + 0x65fe0]
lea eax, [r11 - 1]
movsxd rcx, eax
mov dword [rbp - 0x24], edx
cmp rcx, 1
jle 0x14001ab00
mov r8, rcx
lea rdx, [rbp - 0x30]
shl r8, 4
lea r9, [rcx - 1]
sub r8, rdx
add r8, 0x18
add r8, rbx
xor edx, edx
lea rax, [rbp - 0x30]
add rax, rdx
mov ecx, dword [rax + r8]
xor ecx, dword [rax]
mov dword [rbp + rdx - 0x40], ecx
add rdx, 4
cmp rdx, r12
jl 0x14001aa0d
movzx ecx, byte [rbp - 0x40]
sub r8, r12
movzx eax, byte [rbp - 0x39]
mov edx, dword [r15 + rcx*4 + 0x65be0]
xor edx, dword [r15 + rax*4 + 0x667e0]
movzx eax, byte [rbp - 0x36]
movzx ecx, byte [rbp - 0x3c]
xor edx, dword [r15 + rax*4 + 0x663e0]
movzx eax, byte [rbp - 0x33]
xor edx, dword [r15 + rax*4 + 0x65fe0]
movzx eax, byte [rbp - 0x3f]
mov dword [rbp - 0x30], edx
mov edx, dword [r15 + rcx*4 + 0x65be0]
movzx ecx, byte [rbp - 0x3e]
xor edx, dword [r15 + rax*4 + 0x65fe0]
movzx eax, byte [rbp - 0x35]
xor edx, dword [r15 + rax*4 + 0x667e0]
movzx eax, byte [rbp - 0x32]
xor edx, dword [r15 + rax*4 + 0x663e0]
movzx eax, byte [rbp - 0x3b]
mov dword [rbp - 0x2c], edx
mov edx, dword [r15 + rcx*4 + 0x663e0]
movzx ecx, byte [rbp - 0x3d]
xor edx, dword [r15 + rax*4 + 0x65fe0]
movzx eax, byte [rbp - 0x38]
xor edx, dword [r15 + rax*4 + 0x65be0]
movzx eax, byte [rbp - 0x31]
xor edx, dword [r15 + rax*4 + 0x667e0]
movzx eax, byte [rbp - 0x3a]
mov dword [rbp - 0x28], edx
mov edx, dword [r15 + rcx*4 + 0x667e0]
xor edx, dword [r15 + rax*4 + 0x663e0]
movzx eax, byte [rbp - 0x34]
xor edx, dword [r15 + rax*4 + 0x65be0]
movzx eax, byte [rbp - 0x37]
xor edx, dword [r15 + rax*4 + 0x65fe0]
mov dword [rbp - 0x24], edx
sub r9, 1
jne 0x14001aa0b
xor edx, edx
lea rax, [rbp - 0x30]
add rax, rdx
mov ecx, dword [rax + r10]
xor ecx, dword [rax]
mov dword [rbp + rdx - 0x40], ecx
add rdx, 4
cmp rdx, r12
jl 0x14001ab02
movzx eax, byte [rbp - 0x40]
xor ecx, ecx
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x30], al
movzx eax, byte [rbp - 0x33]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x2f], al
movzx eax, byte [rbp - 0x36]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x2e], al
movzx eax, byte [rbp - 0x39]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x2d], al
movzx eax, byte [rbp - 0x3c]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x2c], al
movzx eax, byte [rbp - 0x3f]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x2b], al
movzx eax, byte [rbp - 0x32]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x2a], al
movzx eax, byte [rbp - 0x35]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x29], al
movzx eax, byte [rbp - 0x38]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x28], al
movzx eax, byte [rbp - 0x3b]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x27], al
movzx eax, byte [rbp - 0x3e]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x26], al
movzx eax, byte [rbp - 0x31]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x25], al
movzx eax, byte [rbp - 0x34]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x24], al
movzx eax, byte [rbp - 0x37]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x23], al
movzx eax, byte [rbp - 0x3a]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x22], al
movzx eax, byte [rbp - 0x3d]
mov al, byte [rax + r15 + 0x64ae0]
mov byte [rbp - 0x21], al
mov eax, dword [rbx + rcx*4 + 0x18]
xor dword [rbp + rcx*4 - 0x30], eax
inc rcx
cmp rcx, 4
jl 0x14001ac0e
cmp byte [rbx + 1], 0
je 0x14001ac38
xor ecx, ecx
mov eax, dword [rbp + rcx - 0x18]
xor dword [rbp + rcx - 0x30], eax
add rcx, 4
cmp rcx, r12
jl 0x14001ac27
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rbp - 0x30]
movups xmmword [rbp - 0x18], xmm0
movups xmmword [r14 + rsi], xmm1
add rsi, r12
sub rdi, 1
jne 0x14001a8dd
mov r15, qword [rbp - 0x20]
mov r8, r12
lea rdx, [rbp - 0x18]
mov rcx, r15
call fcn.140045070
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140031d30
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret