Function at 0x14003f810
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14010c1f0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r9, r8
xor r11d, r11d
shr r9, 0x20
xorps xmm0, xmm0
mov r10, r8
mov rsi, rdx
mov rdi, rcx
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x1c], r8d
mov dword [rbp - 0x14], r9d
test rdx, rdx
je 0x14003fa06
mov qword [rsp + 0x30], rbx
mov r11d, 4
cmp rsi, r11
cmovb r11d, esi
xor eax, eax
test r11d, r11d
jle 0x14003f94d
cmp r11d, 0x40
jb 0x14003f94d
lea ecx, [r11 - 1]
movsxd rdx, ecx
lea r8, [rbp - 0x20]
add r8, rdx
lea rcx, [rdx + rdi]
lea rdx, [rbp - 0x20]
cmp rdx, rcx
ja 0x14003f8a6
cmp r8, rdi
jae 0x14003f94d
mov edx, r11d
and edx, 0x8000003f
jge 0x14003f8b8
dec edx
or edx, 0xffffffc0
inc edx
mov ecx, r11d
lea r8, [rbp - 0x10]
sub ecx, edx
lea rdx, [rbp - 0x20]
sub rdx, rdi
movsxd r9, ecx
sub r8, rdi
lea rcx, [rdi + 0x20]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rdx + rcx - 0x20]
add rax, 0x40
movdqu xmm1, xmmword [rcx - 0x20]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rdx + rcx - 0x60], xmm1
movdqu xmm0, xmmword [r8 + rcx - 0x60]
movdqu xmm1, xmmword [rcx - 0x50]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rcx - 0x40]
movdqu xmmword [r8 + rcx - 0x60], xmm1
movdqu xmm1, xmmword [rcx + rdx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx + rdx - 0x40], xmm1
movdqu xmm0, xmmword [rcx + r8 - 0x40]
movdqu xmm1, xmmword [rcx - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rcx + r8 - 0x40], xmm1
cmp rax, r9
jl 0x14003f8e0
mov r9d, dword [rbp - 0x14]
mov r10d, dword [rbp - 0x1c]
movsxd rbx, r11d
cmp rax, rbx
jge 0x14003f97e
lea rcx, [rbp - 0x20]
mov r8, rdi
sub r8, rcx
nop
lea rdx, [rbp - 0x20]
add rdx, rax
inc rax
movzx ecx, byte [r8 + rdx]
xor byte [rdx], cl
cmp rax, rbx
jl 0x14003f960
mov r9d, dword [rbp - 0x14]
mov r10d, dword [rbp - 0x1c]
mov edx, dword [rbp - 0x20]
add rdi, rbx
mov ecx, dword [rbp - 0x18]
add edx, r10d
add ecx, r9d
rol r10d, 5
xor r10d, edx
rol r9d, 8
xor r9d, ecx
rol edx, 0x10
lea eax, [rdx + r9]
rol r9d, 0xd
xor r9d, eax
lea edx, [r10 + rcx]
rol r10d, 7
xor r10d, edx
rol edx, 0x10
lea r8d, [r10 + rax]
rol r10d, 5
lea ecx, [rdx + r9]
xor r10d, r8d
rol r9d, 8
xor r9d, ecx
rol r8d, 0x10
lea eax, [r8 + r9]
rol r9d, 0xd
xor r9d, eax
mov dword [rbp - 0x20], eax
lea eax, [r10 + rcx]
mov dword [rbp - 0x14], r9d
rol r10d, 7
xor r10d, eax
rol eax, 0x10
mov dword [rbp - 0x1c], r10d
mov dword [rbp - 0x18], eax
sub rsi, rbx
jne 0x14003f860
mov rbx, qword [rsp + 0x30]
movsxd rax, r11d
xor byte [rbp + rax - 0x20], 0x1f
xor byte [rbp - 0x1d], 0x80
mov r10d, dword [rbp - 0x1c]
mov edx, dword [rbp - 0x20]
mov r9d, dword [rbp - 0x14]
add edx, r10d
mov ecx, dword [rbp - 0x18]
add ecx, r9d
rol r10d, 5
xor r10d, edx
rol r9d, 8
xor r9d, ecx
rol edx, 0x10
lea eax, [rdx + r9]
rol r9d, 0xd
lea edx, [r10 + rcx]
xor r9d, eax
rol r10d, 7
xor r10d, edx
rol edx, 0x10
lea r8d, [r10 + rax]
rol r10d, 5
lea ecx, [rdx + r9]
xor r10d, r8d
rol r9d, 8
xor r9d, ecx
rol r8d, 0x10
lea edx, [rcx + r10]
rol r10d, 7
xor r10d, edx
rol edx, 0x10
lea eax, [r8 + r9]
rol r9d, 0xd
xor r9d, eax
lea r8d, [r10 + rax]
rol r10d, 5
xor r10d, r8d
rol r8d, 0x10
lea ecx, [rdx + r9]
rol r9d, 8
xor r9d, ecx
lea edx, [rcx + r10]
rol r10d, 7
xor r10d, edx
rol edx, 0x10
lea eax, [r8 + r9]
rol r9d, 0xd
xor r9d, eax
lea ecx, [r10 + rax]
rol r10d, 5
xor r10d, ecx
rol ecx, 0x10
lea eax, [rdx + r9]
rol r9d, 8
xor r9d, eax
add eax, r10d
add r9d, ecx
mov ecx, r10d
rol ecx, 7
xor ecx, eax
mov dword [rbp - 0x20], r9d
mov dword [rbp - 0x1c], ecx
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400a3640
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret