Function at 0x140005c5c
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400060c6
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r11, r8
mov rax, r9
shr r11, 4
mov rbx, rdx
cmp byte [rcx], 0
mov r10, rcx
je 0x140005ca6
mov r8, r11
call fcn.1400060c8
jmp 0x1400060a9
lea rdi, [rcx + 8]
mov r13d, 4
mov qword [rbp + 0x40], rdi
mov r8, rdi
test r11, r11
je 0x140006094
lea r14, [r9 + 4]
mov r12, r10
lea r9, [rbp - 0x20]
sub r9, rax
lea rsi, [rbp - 0x10]
lea rax, [rbp - 0x20]
sub rsi, rdx
sub r12, rax
lea rdi, [rcx + 0x18]
lea r15, [0x140000000]
cmp byte [r10 + 1], 0
je 0x140005d0b
mov rcx, rbx
sub r8, rbx
mov rdx, r13
mov eax, dword [r8 + rcx]
xor eax, dword [rcx]
mov dword [rsi + rcx], eax
add rcx, r13
sub rdx, 1
jne 0x140005cf7
jmp 0x140005d12
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x10], xmm0
lea rax, [rbp - 0x10]
mov r8, rdi
sub r8, rax
xor edx, edx
lea rax, [rbp - 0x10]
add rax, rdx
mov ecx, dword [r8 + rax]
xor ecx, dword [rax]
mov dword [rbp + rdx - 0x20], ecx
add rdx, r13
cmp rdx, 0x10
jl 0x140005d1e
movzx ecx, byte [rbp - 0x20]
lea r8, [r14 - 4]
movzx eax, byte [rbp - 0x1b]
mov r13d, 1
mov edx, dword [r15 + rcx*4 + 0x44410]
xor edx, dword [r15 + rax*4 + 0x44810]
movzx eax, byte [rbp - 0x16]
movzx ecx, byte [rbp - 0x1d]
xor edx, dword [r15 + rax*4 + 0x44c10]
movzx eax, byte [rbp - 0x11]
xor edx, dword [r15 + rax*4 + 0x45010]
movzx eax, byte [rbp - 0x1c]
mov dword [r8], edx
mov edx, dword [r15 + rcx*4 + 0x45010]
movzx ecx, byte [rbp - 0x1e]
xor edx, dword [r15 + rax*4 + 0x44410]
movzx eax, byte [rbp - 0x17]
xor edx, dword [r15 + rax*4 + 0x44810]
movzx eax, byte [rbp - 0x12]
xor edx, dword [r15 + rax*4 + 0x44c10]
movzx eax, byte [rbp - 0x18]
mov dword [r14], edx
mov edx, dword [r15 + rcx*4 + 0x44c10]
movzx ecx, byte [rbp - 0x1f]
xor edx, dword [r15 + rax*4 + 0x44410]
movzx eax, byte [rbp - 0x19]
xor edx, dword [r15 + rax*4 + 0x45010]
movzx eax, byte [rbp - 0x13]
xor edx, dword [r15 + rax*4 + 0x44810]
movzx eax, byte [rbp - 0x1a]
mov dword [r14 + 4], edx
mov edx, dword [r15 + rcx*4 + 0x44810]
xor edx, dword [r15 + rax*4 + 0x44c10]
movzx eax, byte [rbp - 0x15]
xor edx, dword [r15 + rax*4 + 0x45010]
movzx eax, byte [rbp - 0x14]
xor edx, dword [r15 + rax*4 + 0x44410]
mov dword [r14 + 8], edx
mov ecx, dword [r10 + 4]
lea eax, [rcx - 1]
cmp eax, r13d
jle 0x140005f24
lea r15, [r12 + 0x28]
add r15, r9
lea rdi, [0x140000000]
mov rcx, r8
mov edx, 4
mov eax, dword [r15 + rcx]
xor eax, dword [rcx]
mov dword [r9 + rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140005e37
movzx ecx, byte [rbp - 0x20]
inc r13d
movzx eax, byte [rbp - 0x1b]
add r15, 0x10
mov edx, dword [rdi + rcx*4 + 0x44410]
xor edx, dword [rdi + rax*4 + 0x44810]
movzx eax, byte [rbp - 0x16]
movzx ecx, byte [rbp - 0x1d]
xor edx, dword [rdi + rax*4 + 0x44c10]
movzx eax, byte [rbp - 0x11]
xor edx, dword [rdi + rax*4 + 0x45010]
movzx eax, byte [rbp - 0x1c]
mov dword [r8], edx
mov edx, dword [rdi + rcx*4 + 0x45010]
movzx ecx, byte [rbp - 0x1e]
xor edx, dword [rdi + rax*4 + 0x44410]
movzx eax, byte [rbp - 0x17]
xor edx, dword [rdi + rax*4 + 0x44810]
movzx eax, byte [rbp - 0x12]
xor edx, dword [rdi + rax*4 + 0x44c10]
movzx eax, byte [rbp - 0x18]
mov dword [r14], edx
mov edx, dword [rdi + rcx*4 + 0x44c10]
movzx ecx, byte [rbp - 0x1f]
xor edx, dword [rdi + rax*4 + 0x44410]
movzx eax, byte [rbp - 0x19]
xor edx, dword [rdi + rax*4 + 0x45010]
movzx eax, byte [rbp - 0x13]
xor edx, dword [rdi + rax*4 + 0x44810]
movzx eax, byte [rbp - 0x1a]
mov dword [r14 + 4], edx
mov edx, dword [rdi + rcx*4 + 0x44810]
xor edx, dword [rdi + rax*4 + 0x44c10]
movzx eax, byte [rbp - 0x15]
xor edx, dword [rdi + rax*4 + 0x45010]
movzx eax, byte [rbp - 0x14]
xor edx, dword [rdi + rax*4 + 0x44410]
mov dword [r14 + 8], edx
mov ecx, dword [r10 + 4]
lea eax, [rcx - 1]
cmp r13d, eax
jl 0x140005e2f
lea rdi, [r10 + 0x18]
movsxd rdx, ecx
mov r13d, 4
shl rdx, 4
mov rcx, r8
add rdx, 8
mov r15d, r13d
add rdx, r10
sub rdx, r8
mov eax, dword [rdx + rcx]
xor eax, dword [rcx]
mov dword [r9 + rcx], eax
add rcx, r13
sub r15, 1
jne 0x140005f41
movzx eax, byte [rbp - 0x20]
lea rcx, [0x140000000]
mov rdx, r13
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r8], al
movzx eax, byte [rbp - 0x1b]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 - 3], al
movzx eax, byte [rbp - 0x16]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 - 2], al
movzx eax, byte [rbp - 0x11]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 - 1], al
movzx eax, byte [rbp - 0x1c]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14], al
movzx eax, byte [rbp - 0x17]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 + 1], al
movzx eax, byte [rbp - 0x12]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 + 2], al
movzx eax, byte [rbp - 0x1d]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 + 3], al
movzx eax, byte [rbp - 0x18]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 + 4], al
movzx eax, byte [rbp - 0x13]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 + 5], al
movzx eax, byte [rbp - 0x1e]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 + 6], al
movzx eax, byte [rbp - 0x19]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 + 7], al
movzx eax, byte [rbp - 0x14]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 + 8], al
movzx eax, byte [rbp - 0x1f]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 + 9], al
movzx eax, byte [rbp - 0x1a]
mov al, byte [rcx + rax*4 + 0x44411]
mov byte [r14 + 0xa], al
movzx eax, byte [rbp - 0x15]
mov al, byte [rcx + rax*4 + 0x44411]
mov rcx, r8
mov byte [r14 + 0xb], al
movsxd r15, dword [r10 + 4]
shl r15, 4
add r15, 0x18
add r15, r10
sub r15, r8
mov eax, dword [r15 + rcx]
xor dword [rcx], eax
add rcx, r13
sub rdx, 1
jne 0x140006060
add rbx, 0x10
lea r15, [0x140000000]
sub rsi, 0x10
sub r9, 0x10
add r14, 0x10
sub r11, 1
jne 0x140005ce7
mov rdi, qword [rbp + 0x40]
sub r8, rdi
mov rcx, r13
mov eax, dword [r8 + rdi]
mov dword [rdi], eax
add rdi, r13
sub rcx, 1
jne 0x14000609a
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret