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

Disassembly:
test r9, r9
je 0x180003e7c
push rbx
push rsi
push r14
sub rsp, 0x40
mov rax, qword [0x180007008]
xor rax, rsp
mov qword [rsp + 0x10], rax
mov qword [rsp + 0x60], rbp
lea rax, [rdx + 0xf]
mov qword [rsp + 0x38], rdi
mov rbx, r9
mov qword [rsp + 0x30], r12
mov edi, 1
mov qword [rsp + 0x28], r13
sub rdi, rdx
mov qword [rsp + 0x20], r15
mov r10, r8
mov rsi, rdx
mov r14, rcx
lea rcx, [rsp]
cmp rcx, rax
ja 0x180003bdd
lea rax, [rsp + 0xf]
cmp rax, rsi
jb 0x180003bdd
movups xmm0, xmmword [rsi]
movups xmmword [rsp], xmm0
jmp 0x180003bf0
movups xmm0, xmmword [rsi]
movups xmmword [rsp], xmm0
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rsp]
mov r13d, 4
mov r8d, dword [rsp + 4]
mov eax, dword [rsp + 8]
mov r11d, dword [r14]
xor ecx, r11d
mov ebp, dword [r14 + 4]
xor r8d, ebp
mov r15d, dword [r14 + 8]
xor eax, r15d
mov r9d, dword [rsp + 0xc]
mov r12d, dword [r14 + 0xc]
xor r9d, r12d
add eax, r9d
add ecx, r8d
rol r8d, 5
xor r8d, ecx
rol r9d, 8
xor r9d, eax
rol ecx, 0x10
lea edx, [rax + r8]
rol r8d, 7
lea eax, [rcx + r9]
xor r8d, edx
rol r9d, 0xd
xor r9d, eax
rol edx, 0x10
lea ecx, [r8 + rax]
rol r8d, 5
xor r8d, ecx
rol ecx, 0x10
lea eax, [rdx + r9]
rol r9d, 8
xor r9d, eax
lea edx, [rax + r8]
rol r8d, 7
xor r8d, edx
rol edx, 0x10
lea eax, [rcx + r9]
rol r9d, 0xd
xor r9d, eax
lea ecx, [r8 + rax]
rol r8d, 5
xor r8d, ecx
rol ecx, 0x10
lea eax, [rdx + r9]
rol r9d, 8
xor r9d, eax
lea edx, [rax + r8]
rol r8d, 7
xor r8d, edx
rol edx, 0x10
lea eax, [rcx + r9]
rol r9d, 0xd
xor r9d, eax
lea ecx, [r8 + rax]
rol r8d, 5
xor r8d, ecx
rol ecx, 0x10
lea eax, [rdx + r9]
rol r9d, 8
xor r9d, eax
add eax, r8d
add ecx, r9d
rol r8d, 7
rol r9d, 0xd
xor r8d, eax
xor r9d, ecx
rol eax, 0x10
sub r13, 1
jne 0x180003c22
xor r8d, ebp
xor eax, r15d
xor ecx, r11d
mov dword [rsp + 4], r8d
xor r9d, r12d
mov dword [rsp + 8], eax
cmp rbx, 0x10
mov dword [rsp], ecx
mov r8d, ebx
mov dword [rsp + 0xc], r9d
mov eax, 0x10
cmova r8d, eax
xor edx, edx
test r8d, r8d
jle 0x180003dee
cmp r8d, 0x40
jb 0x180003dee
lea eax, [r8 - 1]
movsxd rcx, eax
lea rax, [rsp]
add rax, rcx
lea r9, [rcx + r10]
cmp r10, rax
ja 0x180003d56
lea rax, [rsp]
cmp r9, rax
jae 0x180003dee
mov ecx, r8d
and ecx, 0x8000003f
jge 0x180003d68
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, r8d
lea r9, [rsp + 0x10]
sub eax, ecx
lea rcx, [rsp]
sub rcx, r10
movsxd r11, eax
sub r9, r10
lea rax, [r10 + 0x20]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
add rdx, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x20]
movdqu xmm2, xmmword [rax + rcx]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
movdqu xmm1, xmmword [r9 + rax - 0x60]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rax + r9 - 0x40]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rdx, r11
jl 0x180003d90
movsxd r11, r8d
cmp rdx, r11
jge 0x180003e21
lea r9, [rsp]
mov r8, r11
sub r9, r10
lea rcx, [rdx + r10]
sub r8, rdx
nop word [rax + rax]
movzx eax, byte [rcx + r9]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x180003e10
sub rbx, r11
lea rcx, [rsi + 0xf]
add r10, r11
nop dword [rax + rax]
add byte [rcx], 1
jne 0x180003e41
dec rcx
lea rax, [rdi + rcx]
test rax, rax
jg 0x180003e30
lea rax, [rsi + 0xf]
test rbx, rbx
jne 0x180003bc1
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.180001010
add rsp, 0x40
pop r14
pop rsi
pop rbx
ret