Function at 0x18003ef80
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x18005a080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov r14, rcx
xor r15d, r15d
mov rsi, qword [0x180060188]
test rsi, rsi
jne 0x18003f267
movups xmm0, xmmword [0x1800513c0]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [0x1800513d0]
movups xmmword [rbp - 0x21], xmm1
movsd xmm0, qword [0x1800513e0]
movsd qword [rbp - 0x11], xmm0
mov eax, dword [0x1800513e8]
mov dword [rbp - 9], eax
movzx eax, byte [0x1800513ec]
mov byte [rbp - 5], al
mov ecx, r15d
cmp dword [0x18005a0d0], 2
jl 0x18003f14a
movdqa xmm5, xmmword [0x180051840]
movdqa xmm4, xmmword [0x180051ae0]
movdqa xmm6, xmmword [0x1800518c0]
movdqa xmm0, xmmword [0x1800518f0]
movdqa xmmword [rbp + 7], xmm0
lea rdx, [rbp - 0x2d]
mov r8d, dword [rbp + 7]
nop dword [rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800518d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800518d0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x28
jl 0x18003f040
cmp ecx, 0x2d
jge 0x18003f18e
movsxd rax, ecx
lea r8, [rbp - 0x31]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x8d3dcb09
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
sub al, dl
add al, 0x34
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x2d
jl 0x18003f160
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
lea rax, [rbp - 0x31]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], r15b
jne 0x18003f1b0
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x59]
call fcn.180004930
nop
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 0xf
cmova rcx, qword [rbp - 0x59]
call fcn.1800137d0
mov rdi, rax
mov r9, rax
mov rcx, qword [0x18005f918]
call fcn.18000ef00
mov rsi, rax
mov edx, 2
mov rcx, rdi
call fcn.18004c45c
mov qword [0x180060188], rsi
mov rdx, qword [rbp - 0x41]
cmp rdx, 0xf
jbe 0x18003f248
inc rdx
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003f23c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003f23c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18004c45c
mov rsi, qword [0x180060188]
movdqa xmm0, xmmword [0x180051830]
movdqu xmmword [rbp - 0x49], xmm0
mov byte [rbp - 0x59], 0
test rsi, rsi
jne 0x18003f267
mov qword [r14], r15
mov qword [r14 + 8], r15
jmp 0x18003f2c6
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
mov qword [rbp + 7], rbx
call fcn.1800235e0
test rax, rax
je 0x18003f2be
lea rcx, [rax - 0x100000]
movabs rdx, 0x7fffffeffffe
cmp rcx, rdx
ja 0x18003f2be
mov ecx, dword [rax + 8]
shr ecx, 0x1d
not ecx
bt ecx, 0
jae 0x18003f2be
lea r9, [rbp + 7]
mov r8, rsi
mov rdx, rax
mov rcx, qword [0x18005f910]
call fcn.18000f1b0
movups xmm0, xmmword [rbp + 0xf]
movups xmmword [r14], xmm0
mov rax, r14
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18004c400
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret