Function at 0x1400400c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140067020]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor r14d, r14d
lea rsi, [rcx + 0x3c]
lea rax, [rbp - 0x50]
mov r8, rdx
mov rbx, rcx
lea edi, [r14 + 2]
cmp rax, rsi
ja 0x14004010b
lea rax, [rbp - 0x14]
cmp rax, rcx
jae 0x14004011f
lea rax, [rsp + 0x20]
cmp rax, rsi
ja 0x140040164
lea rax, [rsp + 0x5c]
cmp rax, rbx
jb 0x140040164
lea rax, [rsp + 0x20]
mov r10, rbx
sub r8, rax
mov rdx, r14
lea rax, [rsp + 0x20]
mov r9d, select
sub r10, rax
nop dword [rax + rax]
lea rax, [rsp + 0x20]
add rax, rdx
mov ecx, dword [r8 + rax]
mov dword [rax], ecx
mov eax, dword [r10 + rax]
xor eax, ecx
mov dword [rbp + rdx - 0x50], eax
add rdx, 4
sub r9, 1
jne 0x140040140
jmp 0x1400401d5
lea r10, [rsp + 0x20]
add rcx, 0x10
lea r11, [rbp - 0x50]
sub r10, rbx
lea rdx, [rsp + 0x20]
sub r11, rbx
sub rdx, rbx
lea r9, [rbp - 0x50]
sub r8, rbx
mov rax, rdi
sub r9, rbx
nop dword [rax]
movdqu xmm1, xmmword [r8 + rcx - 0x10]
movdqu xmm0, xmmword [rcx - 0x10]
movdqu xmmword [r10 + rcx - 0x10], xmm1
lea rcx, [rcx + 0x20]
pxor xmm0, xmm1
movdqu xmm1, xmmword [r8 + rcx - 0x20]
movdqu xmmword [r11 + rcx - 0x30], xmm0
movdqu xmm0, xmmword [rcx - 0x20]
movdqu xmmword [rdx + rcx - 0x20], xmm1
pxor xmm1, xmm0
movdqu xmmword [r9 + rcx - 0x20], xmm1
sub rax, 1
jne 0x140040190
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140040460
mov r8d, 0x1000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140040460
mov r8d, 0x2000000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140040460
mov r8d, 0x3000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140040460
mov r8d, 0x4000000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140040460
mov r8d, 0x5000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140040460
mov r8d, 0x6000000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140040460
mov r8d, 0x7000000
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140040460
mov r8d, 0x8000000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140040460
mov r8d, 0x9000000
lea rdx, [rbp]
lea rcx, [rsp + 0x70]
call fcn.140040460
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140040e50
mov r8d, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140040e50
mov r8d, edi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140040e50
mov r8d, 3
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140040e50
mov r8d, 4
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140040e50
mov r8d, 5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140040e50
mov r8d, 6
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140040e50
mov r8d, 7
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140040e50
mov r8d, 8
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.140040e50
mov r8d, 9
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
call fcn.140040e50
lea rax, [rbp - 0x14]
cmp rbx, rax
ja 0x140040383
lea rax, [rbp - 0x50]
cmp rsi, rax
jae 0x140040407
lea rax, [rbp + 0x3c]
cmp rbx, rax
ja 0x140040395
lea rax, [rbp]
cmp rsi, rax
jae 0x140040407
lea r8, [rbp]
mov r14d, select
lea r9, [rbp - 0x50]
sub r8, rbx
lea rcx, [rbp]
sub r9, rbx
sub rcx, rbx
lea rdx, [rbp - 0x50]
sub rdx, rbx
lea rax, [rbx + 0x10]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [r8 + rax - 0x10]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmm0, xmmword [r9 + rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm2, xmm0
movdqu xmm0, xmmword [rdx + rax - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
sub rdi, 1
jne 0x1400403c0
movsxd rcx, r14d
cmp rcx, 0x10
jge 0x140040435
lea rcx, [rcx*4]
nop dword [rax + rax]
mov eax, dword [rbp + rcx]
xor eax, dword [rbp + rcx - 0x50]
xor dword [rcx + rbx], eax
add rcx, 4
cmp rcx, 0x40
jl 0x140040420
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14001bfd0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret