Function at 0x1400406d8
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140040b1e
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
shr r8, 4
mov rbx, r9
cmp byte [rcx], 0
mov r11, rdx
mov r10, rcx
je 0x14004071c
call fcn.140040b20
jmp 0x140040b01
movups xmm0, xmmword [rcx + 8]
movups xmmword [rbp - 0x10], xmm0
test r8, r8
je 0x140040afb
lea rsi, [rbp - 0x10]
mov r13d, 4
neg rsi
movsxd r14, dword [r10 + 4]
lea rcx, [r10 + 0x18]
mov rax, r14
lea r9, [rbp - 0x30]
shl rax, 4
mov rdx, r11
add rcx, rax
mov rdi, r13
sub rdx, rcx
sub r9, rcx
mov eax, dword [rdx + rcx]
xor eax, dword [rcx]
mov dword [r9 + rcx], eax
add rcx, r13
sub rdi, 1
jne 0x14004075c
movzx ecx, byte [rbp - 0x30]
lea r9, [0x140000000]
movzx eax, byte [rbp - 0x29]
mov edx, dword [r9 + rcx*4 + 0x98ac0]
xor edx, dword [r9 + rax*4 + 0x996c0]
movzx eax, byte [rbp - 0x26]
movzx ecx, byte [rbp - 0x2f]
xor edx, dword [r9 + rax*4 + 0x992c0]
movzx eax, byte [rbp - 0x23]
xor edx, dword [r9 + rax*4 + 0x98ec0]
movzx eax, byte [rbp - 0x2c]
mov dword [rbp - 0x20], edx
mov edx, dword [r9 + rcx*4 + 0x98ec0]
movzx ecx, byte [rbp - 0x2e]
xor edx, dword [r9 + rax*4 + 0x98ac0]
movzx eax, byte [rbp - 0x25]
xor edx, dword [r9 + rax*4 + 0x996c0]
movzx eax, byte [rbp - 0x22]
xor edx, dword [r9 + rax*4 + 0x992c0]
movzx eax, byte [rbp - 0x28]
mov dword [rbp - 0x1c], edx
mov edx, dword [r9 + rcx*4 + 0x992c0]
movzx ecx, byte [rbp - 0x2d]
xor edx, dword [r9 + rax*4 + 0x98ac0]
movzx eax, byte [rbp - 0x2b]
xor edx, dword [r9 + rax*4 + 0x98ec0]
movzx eax, byte [rbp - 0x21]
xor edx, dword [r9 + rax*4 + 0x996c0]
movzx eax, byte [rbp - 0x2a]
mov dword [rbp - 0x18], edx
mov edx, dword [r9 + rcx*4 + 0x996c0]
xor edx, dword [r9 + rax*4 + 0x992c0]
movzx eax, byte [rbp - 0x27]
xor edx, dword [r9 + rax*4 + 0x98ec0]
movzx eax, byte [rbp - 0x24]
xor edx, dword [r9 + rax*4 + 0x98ac0]
lea eax, [r14 - 1]
movsxd rcx, eax
lea r14, [0x140000000]
mov dword [rbp - 0x14], edx
cmp rcx, 1
jle 0x140040968
mov rax, rcx
lea rdx, [rbp - 0x20]
shl rax, 4
lea r9, [r10 + 0x18]
sub rax, rdx
lea rdi, [rcx - 1]
add r9, rax
xor edx, edx
lea rax, [rbp - 0x20]
add rax, rdx
mov ecx, dword [r9 + rax]
xor ecx, dword [rax]
mov dword [rbp + rdx - 0x30], ecx
add rdx, r13
cmp rdx, 0x10
jl 0x140040874
movzx ecx, byte [rbp - 0x30]
sub r9, 0x10
movzx eax, byte [rbp - 0x29]
mov edx, dword [r14 + rcx*4 + 0x98ac0]
xor edx, dword [r14 + rax*4 + 0x996c0]
movzx eax, byte [rbp - 0x26]
movzx ecx, byte [rbp - 0x2f]
xor edx, dword [r14 + rax*4 + 0x992c0]
movzx eax, byte [rbp - 0x23]
xor edx, dword [r14 + rax*4 + 0x98ec0]
movzx eax, byte [rbp - 0x2c]
mov dword [rbp - 0x20], edx
mov edx, dword [r14 + rcx*4 + 0x98ec0]
movzx ecx, byte [rbp - 0x2e]
xor edx, dword [r14 + rax*4 + 0x98ac0]
movzx eax, byte [rbp - 0x25]
xor edx, dword [r14 + rax*4 + 0x996c0]
movzx eax, byte [rbp - 0x22]
xor edx, dword [r14 + rax*4 + 0x992c0]
movzx eax, byte [rbp - 0x28]
mov dword [rbp - 0x1c], edx
mov edx, dword [r14 + rcx*4 + 0x992c0]
movzx ecx, byte [rbp - 0x2d]
xor edx, dword [r14 + rax*4 + 0x98ac0]
movzx eax, byte [rbp - 0x2b]
xor edx, dword [r14 + rax*4 + 0x98ec0]
movzx eax, byte [rbp - 0x21]
xor edx, dword [r14 + rax*4 + 0x996c0]
movzx eax, byte [rbp - 0x2a]
mov dword [rbp - 0x18], edx
mov edx, dword [r14 + rcx*4 + 0x996c0]
xor edx, dword [r14 + rax*4 + 0x992c0]
movzx eax, byte [rbp - 0x27]
xor edx, dword [r14 + rax*4 + 0x98ec0]
movzx eax, byte [rbp - 0x24]
xor edx, dword [r14 + rax*4 + 0x98ac0]
mov dword [rbp - 0x14], edx
sub rdi, 1
jne 0x140040872
lea rax, [r10 + 0x28]
mov rdx, r13
neg rax
lea r9, [rbp - 0x20]
add r9, rax
lea rdi, [rbp - 0x30]
add rdi, rax
lea rcx, [r10 + 0x28]
mov eax, dword [r9 + rcx]
xor eax, dword [rcx]
mov dword [rdi + rcx], eax
add rcx, r13
sub rdx, 1
jne 0x140040984
movzx eax, byte [rbp - 0x30]
lea r9, [r10 + 0x18]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x20], al
movzx eax, byte [rbp - 0x23]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x1f], al
movzx eax, byte [rbp - 0x26]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x1e], al
movzx eax, byte [rbp - 0x29]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x1d], al
movzx eax, byte [rbp - 0x2c]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x1c], al
movzx eax, byte [rbp - 0x2f]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x1b], al
movzx eax, byte [rbp - 0x22]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x1a], al
movzx eax, byte [rbp - 0x25]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x19], al
movzx eax, byte [rbp - 0x28]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x18], al
movzx eax, byte [rbp - 0x2b]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x17], al
movzx eax, byte [rbp - 0x2e]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x16], al
movzx eax, byte [rbp - 0x21]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x15], al
movzx eax, byte [rbp - 0x24]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x14], al
movzx eax, byte [rbp - 0x27]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x13], al
movzx eax, byte [rbp - 0x2a]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x12], al
movzx eax, byte [rbp - 0x2d]
mov al, byte [rax + r14 + 0x979a0]
mov byte [rbp - 0x11], al
lea rax, [rbp - 0x20]
sub r9, rax
lea rax, [r9 + rdx*4]
mov ecx, dword [rbp + rax - 0x20]
xor dword [rbp + rdx*4 - 0x20], ecx
inc rdx
cmp rdx, r13
jl 0x140040a91
cmp byte [r10 + 1], 0
je 0x140040abf
xor ecx, ecx
mov eax, dword [rbp + rcx - 0x10]
xor dword [rbp + rcx - 0x20], eax
add rcx, r13
cmp rcx, 0x10
jl 0x140040aae
xor r9d, r9d
lea rdx, [rbp - 0x10]
add rdx, r9
lea rax, [rsi + rdx]
mov ecx, dword [rax + r11]
mov eax, dword [rbp + r9 - 0x20]
mov dword [rbx + r9], eax
add r9, r13
mov dword [rdx], ecx
cmp r9, 0x10
jl 0x140040ac2
add r11, 0x10
add rbx, 0x10
sub r8, 1
jne 0x14004073a
movups xmm0, xmmword [rbp - 0x10]
movdqu xmmword [r10 + 8], xmm0
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