Function at 0x14008991c
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140089d98
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, 0x50
mov r11, r8
mov rsi, r9
shr r11, 4
mov rbx, rdx
cmp byte [rcx], 0
mov r10, rcx
je 0x140089966
mov r8, r11
call fcn.140089d9c
jmp 0x140089d7b
lea r8, [rcx + 8]
test r11, r11
je 0x140089d61
lea rax, [rbp - 0x10]
neg r9
mov r14, r10
lea rdi, [rbp - 0x10]
sub r14, rax
lea r12, [0x140000000]
inc rsi
mov qword [rbp - 0x30], r14
sub rdi, rdx
lea rax, [rbp - 0x20]
mov r15, r10
sub r15, rax
mov qword [rbp - 0x28], r15
cmp byte [r10 + 1], 0
je 0x1400899ca
mov rcx, rbx
sub r8, rbx
mov edx, 4
mov eax, dword [r8 + rcx]
xor eax, dword [rcx]
mov dword [rcx + rdi], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x1400899b5
jmp 0x1400899d1
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x10], xmm0
xor edx, edx
lea rax, [rbp - 0x10]
add rax, rdx
mov ecx, dword [r14 + rax + 0x18]
xor ecx, dword [rax]
mov dword [rbp + rdx - 0x20], ecx
add rdx, 4
cmp rdx, 0x10
jl 0x1400899d3
movzx ecx, byte [rbp - 0x20]
lea r8, [rsi - 1]
movzx eax, byte [rbp - 0x1b]
mov dword [rbp + 0x40], 1
mov edx, dword [r12 + rcx*4 + 0x1944d0]
xor edx, dword [r12 + rax*4 + 0x1948d0]
movzx eax, byte [rbp - 0x16]
movzx ecx, byte [rbp - 0x1d]
xor edx, dword [r12 + rax*4 + 0x194cd0]
movzx eax, byte [rbp - 0x11]
xor edx, dword [r12 + rax*4 + 0x1950d0]
movzx eax, byte [rbp - 0x1c]
mov dword [r8], edx
mov edx, dword [r12 + rcx*4 + 0x1950d0]
movzx ecx, byte [rbp - 0x1e]
xor edx, dword [r12 + rax*4 + 0x1944d0]
movzx eax, byte [rbp - 0x17]
xor edx, dword [r12 + rax*4 + 0x1948d0]
movzx eax, byte [rbp - 0x12]
xor edx, dword [r12 + rax*4 + 0x194cd0]
movzx eax, byte [rbp - 0x19]
mov dword [rsi + 3], edx
mov edx, dword [r12 + rcx*4 + 0x194cd0]
movzx ecx, byte [rbp - 0x1f]
xor edx, dword [r12 + rax*4 + 0x1950d0]
movzx eax, byte [rbp - 0x18]
xor edx, dword [r12 + rax*4 + 0x1944d0]
movzx eax, byte [rbp - 0x13]
xor edx, dword [r12 + rax*4 + 0x1948d0]
movzx eax, byte [rbp - 0x1a]
mov dword [rsi + 7], edx
mov edx, dword [r12 + rcx*4 + 0x1948d0]
xor edx, dword [r12 + rax*4 + 0x194cd0]
movzx eax, byte [rbp - 0x15]
xor edx, dword [r12 + rax*4 + 0x1950d0]
movzx eax, byte [rbp - 0x14]
xor edx, dword [r12 + rax*4 + 0x1944d0]
mov dword [rsi + 0xb], edx
mov eax, dword [r10 + 4]
dec eax
cmp eax, 1
jle 0x140089bfb
mov r14d, dword [rbp + 0x40]
lea r13, [r15 + 0x28]
lea r12, [rbp - 0x20]
add r12, r9
lea r15, [0x140000000]
add r13, r12
mov rcx, r8
mov edx, 4
mov eax, dword [rcx + r13]
xor eax, dword [rcx]
mov dword [r12 + rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140089af6
movzx ecx, byte [rbp - 0x20]
inc r14d
movzx eax, byte [rbp - 0x1b]
add r13, 0x10
mov edx, dword [r15 + rcx*4 + 0x1944d0]
xor edx, dword [r15 + rax*4 + 0x1948d0]
movzx eax, byte [rbp - 0x16]
movzx ecx, byte [rbp - 0x1d]
xor edx, dword [r15 + rax*4 + 0x194cd0]
movzx eax, byte [rbp - 0x11]
xor edx, dword [r15 + rax*4 + 0x1950d0]
movzx eax, byte [rbp - 0x1c]
mov dword [r8], edx
mov edx, dword [r15 + rcx*4 + 0x1950d0]
movzx ecx, byte [rbp - 0x1e]
xor edx, dword [r15 + rax*4 + 0x1944d0]
movzx eax, byte [rbp - 0x17]
xor edx, dword [r15 + rax*4 + 0x1948d0]
movzx eax, byte [rbp - 0x12]
xor edx, dword [r15 + rax*4 + 0x194cd0]
movzx eax, byte [rbp - 0x19]
mov dword [rsi + 3], edx
mov edx, dword [r15 + rcx*4 + 0x194cd0]
movzx ecx, byte [rbp - 0x1f]
xor edx, dword [r15 + rax*4 + 0x1950d0]
movzx eax, byte [rbp - 0x18]
xor edx, dword [r15 + rax*4 + 0x1944d0]
movzx eax, byte [rbp - 0x13]
xor edx, dword [r15 + rax*4 + 0x1948d0]
movzx eax, byte [rbp - 0x1a]
mov dword [rsi + 7], edx
mov edx, dword [r15 + rcx*4 + 0x1948d0]
xor edx, dword [r15 + rax*4 + 0x194cd0]
movzx eax, byte [rbp - 0x15]
xor edx, dword [r15 + rax*4 + 0x1950d0]
movzx eax, byte [rbp - 0x14]
xor edx, dword [r15 + rax*4 + 0x1944d0]
mov dword [rsi + 0xb], edx
mov eax, dword [r10 + 4]
dec eax
cmp r14d, eax
jl 0x140089aee
mov r14, qword [rbp - 0x30]
lea r12, [0x140000000]
mov r15, qword [rbp - 0x28]
mov eax, dword [r10 + 4]
xor edx, edx
dec eax
movsxd rcx, eax
shl rcx, 4
add rcx, 0x18
add rcx, r10
mov eax, dword [r8 + rdx*4]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
mov dword [rbp + rdx*4 - 0x20], eax
inc rdx
cmp rdx, 4
jl 0x140089c11
movzx eax, byte [rbp - 0x20]
mov rdx, r8
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [r8], al
movzx eax, byte [rbp - 0x1b]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi], al
movzx eax, byte [rbp - 0x16]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 1], al
movzx eax, byte [rbp - 0x11]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 2], al
movzx eax, byte [rbp - 0x1c]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 3], al
movzx eax, byte [rbp - 0x17]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 4], al
movzx eax, byte [rbp - 0x12]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 5], al
movzx eax, byte [rbp - 0x1d]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 6], al
movzx eax, byte [rbp - 0x18]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 7], al
movzx eax, byte [rbp - 0x13]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 8], al
movzx eax, byte [rbp - 0x1e]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 9], al
movzx eax, byte [rbp - 0x19]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 0xa], al
movzx eax, byte [rbp - 0x14]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 0xb], al
movzx eax, byte [rbp - 0x1f]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 0xc], al
movzx eax, byte [rbp - 0x1a]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov byte [rsi + 0xd], al
movzx eax, byte [rbp - 0x15]
mov al, byte [r12 + rax*4 + 0x1944d1]
mov r12d, 4
mov byte [rsi + 0xe], al
movsxd r13, dword [r10 + 4]
shl r13, 4
add r13, r10
lea rax, [r9 + rdx]
mov ecx, dword [rax + r13 + 0x18]
xor dword [rdx], ecx
lea rdx, [rdx + 4]
sub r12, 1
jne 0x140089d2b
add rbx, 0x10
lea r12, [0x140000000]
add rsi, 0x10
sub r9, 0x10
sub rdi, 0x10
sub r11, 1
jne 0x1400899a3
sub r10, r8
mov ecx, 4
mov eax, dword [r8]
mov dword [r10 + r8 + 8], eax
lea r8, [r8 + 4]
sub rcx, 1
jne 0x140089d69
lea r11, [rsp + 0x50]
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