Function at 0x140097684
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140097b08
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 0x1400976ce
mov r8, r11
call fcn.140097b0c
jmp 0x140097aeb
lea r9, [rcx + 8]
mov r12d, 4
mov qword [rbp + 0x40], r9
mov r8, r9
test r11, r11
je 0x140097ad5
lea rdi, [rbp - 0x20]
mov r13, r10
sub rdi, rax
lea rsi, [rbp - 0x10]
lea r14, [rax + 4]
sub rsi, rdx
lea rax, [rbp - 0x20]
sub r13, rax
lea r9, [rcx + 0x18]
lea r15, [0x140000000]
cmp byte [r10 + 1], 0
je 0x140097733
mov rcx, rbx
sub r8, rbx
mov rdx, r12
mov eax, dword [r8 + rcx]
xor eax, dword [rcx]
mov dword [rsi + rcx], eax
add rcx, r12
sub rdx, 1
jne 0x14009771f
jmp 0x14009773a
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x10], xmm0
lea rax, [rbp - 0x10]
mov r8, r9
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, r12
cmp rdx, 0x10
jl 0x140097746
movzx ecx, byte [rbp - 0x20]
lea r8, [r14 - 4]
movzx eax, byte [rbp - 0x1b]
mov r12d, 1
mov edx, dword [r15 + rcx*4 + 0x1b39d0]
xor edx, dword [r15 + rax*4 + 0x1b3dd0]
movzx eax, byte [rbp - 0x16]
movzx ecx, byte [rbp - 0x1d]
xor edx, dword [r15 + rax*4 + 0x1b41d0]
movzx eax, byte [rbp - 0x11]
xor edx, dword [r15 + rax*4 + 0x1b45d0]
movzx eax, byte [rbp - 0x1c]
mov dword [r8], edx
mov edx, dword [r15 + rcx*4 + 0x1b45d0]
movzx ecx, byte [rbp - 0x1e]
xor edx, dword [r15 + rax*4 + 0x1b39d0]
movzx eax, byte [rbp - 0x17]
xor edx, dword [r15 + rax*4 + 0x1b3dd0]
movzx eax, byte [rbp - 0x12]
xor edx, dword [r15 + rax*4 + 0x1b41d0]
movzx eax, byte [rbp - 0x19]
mov dword [r14], edx
mov edx, dword [r15 + rcx*4 + 0x1b41d0]
movzx ecx, byte [rbp - 0x1f]
xor edx, dword [r15 + rax*4 + 0x1b45d0]
movzx eax, byte [rbp - 0x18]
xor edx, dword [r15 + rax*4 + 0x1b39d0]
movzx eax, byte [rbp - 0x13]
xor edx, dword [r15 + rax*4 + 0x1b3dd0]
movzx eax, byte [rbp - 0x1a]
mov dword [r14 + 4], edx
mov edx, dword [r15 + rcx*4 + 0x1b3dd0]
xor edx, dword [r15 + rax*4 + 0x1b41d0]
movzx eax, byte [rbp - 0x15]
xor edx, dword [r15 + rax*4 + 0x1b45d0]
movzx eax, byte [rbp - 0x14]
xor edx, dword [r15 + rax*4 + 0x1b39d0]
mov dword [r14 + 8], edx
mov ecx, dword [r10 + 4]
lea eax, [rcx - 1]
cmp eax, r12d
jle 0x14009795a
lea r15, [r13 + 0x28]
add r15, rdi
lea r9, [0x140000000]
mov rcx, r8
mov edx, 4
mov eax, dword [r15 + rcx]
xor eax, dword [rcx]
mov dword [rdi + rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x14009785e
movzx ecx, byte [rbp - 0x20]
inc r12d
movzx eax, byte [rbp - 0x1b]
add r15, 0x10
mov edx, dword [r9 + rcx*4 + 0x1b39d0]
xor edx, dword [r9 + rax*4 + 0x1b3dd0]
movzx eax, byte [rbp - 0x16]
movzx ecx, byte [rbp - 0x1d]
xor edx, dword [r9 + rax*4 + 0x1b41d0]
movzx eax, byte [rbp - 0x11]
xor edx, dword [r9 + rax*4 + 0x1b45d0]
movzx eax, byte [rbp - 0x1c]
mov dword [r8], edx
mov edx, dword [r9 + rcx*4 + 0x1b45d0]
movzx ecx, byte [rbp - 0x1e]
xor edx, dword [r9 + rax*4 + 0x1b39d0]
movzx eax, byte [rbp - 0x17]
xor edx, dword [r9 + rax*4 + 0x1b3dd0]
movzx eax, byte [rbp - 0x12]
xor edx, dword [r9 + rax*4 + 0x1b41d0]
movzx eax, byte [rbp - 0x19]
mov dword [r14], edx
mov edx, dword [r9 + rcx*4 + 0x1b41d0]
movzx ecx, byte [rbp - 0x1f]
xor edx, dword [r9 + rax*4 + 0x1b45d0]
movzx eax, byte [rbp - 0x18]
xor edx, dword [r9 + rax*4 + 0x1b39d0]
movzx eax, byte [rbp - 0x13]
xor edx, dword [r9 + rax*4 + 0x1b3dd0]
movzx eax, byte [rbp - 0x1a]
mov dword [r14 + 4], edx
mov edx, dword [r9 + rcx*4 + 0x1b3dd0]
xor edx, dword [r9 + rax*4 + 0x1b41d0]
movzx eax, byte [rbp - 0x15]
xor edx, dword [r9 + rax*4 + 0x1b45d0]
movzx eax, byte [rbp - 0x14]
xor edx, dword [r9 + rax*4 + 0x1b39d0]
mov dword [r14 + 8], edx
mov ecx, dword [r10 + 4]
lea eax, [rcx - 1]
cmp r12d, eax
jl 0x140097856
lea r9, [r10 + 0x18]
movsxd rax, ecx
lea r15, [rbp - 0x20]
shl rax, 4
lea rcx, [r10 + 8]
add rcx, rax
mov rdx, r8
sub rdx, rcx
mov r12d, 4
sub r15, rcx
mov eax, dword [rdx + rcx]
xor eax, dword [rcx]
mov dword [rcx + r15], eax
lea rcx, [rcx + 4]
sub r12, 1
jne 0x14009797b
movzx eax, byte [rbp - 0x20]
lea rcx, [0x140000000]
lea r15, [r10 + 0x18]
mov r12d, 4
mov edx, r12d
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r8], al
movzx eax, byte [rbp - 0x1b]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 - 3], al
movzx eax, byte [rbp - 0x16]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 - 2], al
movzx eax, byte [rbp - 0x11]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 - 1], al
movzx eax, byte [rbp - 0x1c]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14], al
movzx eax, byte [rbp - 0x17]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 + 1], al
movzx eax, byte [rbp - 0x12]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 + 2], al
movzx eax, byte [rbp - 0x1d]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 + 3], al
movzx eax, byte [rbp - 0x18]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 + 4], al
movzx eax, byte [rbp - 0x13]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 + 5], al
movzx eax, byte [rbp - 0x1e]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 + 6], al
movzx eax, byte [rbp - 0x19]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 + 7], al
movzx eax, byte [rbp - 0x14]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 + 8], al
movzx eax, byte [rbp - 0x1f]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 + 9], al
movzx eax, byte [rbp - 0x1a]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov byte [r14 + 0xa], al
movzx eax, byte [rbp - 0x15]
mov al, byte [rcx + rax*4 + 0x1b39d1]
mov rcx, r8
mov byte [r14 + 0xb], al
movsxd rax, dword [r10 + 4]
shl rax, 4
add r15, rax
sub r15, r8
mov eax, dword [r15 + rcx]
xor dword [rcx], eax
add rcx, r12
sub rdx, 1
jne 0x140097aa1
add rbx, 0x10
lea r15, [0x140000000]
sub rsi, 0x10
sub rdi, 0x10
add r14, 0x10
sub r11, 1
jne 0x14009770f
mov r9, qword [rbp + 0x40]
sub r8, r9
mov rcx, r12
mov eax, dword [r8 + r9]
mov dword [r9], eax
add r9, r12
sub rcx, 1
jne 0x140097adb
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