Function at 0x140003670
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rbp, rdx
xor ebx, ebx
mov r14d, 4
mov rax, qword gs:[0x58]
add r14, qword [rax]
mov eax, dword [r14]
cmp dword [0x140025c70], eax
jle 0x1400036de
lea rcx, [0x140025c70]
call fcn.1400128f0
cmp dword [0x140025c70], 0xffffffff
jne 0x1400036de
movups xmm0, xmmword [str._MU_v_]
movups xmmword [0x140025d88], xmm0
lea rcx, [0x140025c70]
call fcn.140012884
lea rsi, [0x140025d8c]
lea rdi, [0x140025d88]
mov r15d, dword [0x140025088]
mov eax, dword [r14]
cmp dword [0x140025c90], eax
jle 0x1400038e1
lea rcx, [0x140025c90]
call fcn.1400128f0
cmp dword [0x140025c90], 0xffffffff
jne 0x1400038e1
mov qword [0x140025b98], rbx
cmp byte [0x140025d97], 0
je 0x1400038b5
cmp r15d, 2
jl 0x140003877
movdqa xmm5, xmmword [0x1400205c0]
mov edx, ebx
movdqa xmm4, xmmword [0x140020640]
movdqa xmm6, xmmword [0x1400205f0]
movdqa xmm0, xmmword [0x140020620]
movdqa xmmword [rsp + 0x30], xmm0
mov rcx, rsi
mov r8d, dword [rsp + 0x30]
nop dword [rax]
movd xmm2, edx
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 [0x140020600]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 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 [0x140020600]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x10
jl 0x140003770
jmp 0x1400038b5
mov r9, rdi
mov r8d, ebx
nop dword [rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul edx, eax, 0x39
add dl, r8b
xor byte [r9], dl
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x10
jl 0x140003880
mov qword [0x140025b90], rdi
lea rcx, [0x140025b90]
call fcn.1400012c0
lea rcx, [0x140014390]
call fcn.140012e68
nop
lea rcx, [0x140025c90]
call fcn.140012884
cmp byte [0x140025d97], 0
jne 0x140003a60
cmp r15d, 2
jl 0x140003a30
movdqa xmm5, xmmword [0x1400205c0]
movdqa xmm4, xmmword [0x140020640]
movdqa xmm6, xmmword [0x1400205f0]
movdqa xmm0, xmmword [0x140020620]
movdqa xmmword [rsp + 0x30], xmm0
mov ecx, dword [rsp + 0x30]
movd xmm2, ebx
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 [0x140020600]
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm0, dword [rsi - 4]
xorps xmm2, xmm0
movd dword [rsi - 4], xmm2
lea eax, [rbx + 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 [0x140020600]
packuswb xmm2, xmm2
movd xmm0, ecx
paddb xmm2, xmm0
movd xmm0, dword [rsi]
xorps xmm2, xmm0
movd dword [rsi], xmm2
add ebx, 8
lea rsi, [rsi + 8]
cmp ebx, 0x10
jl 0x140003922
jmp 0x140003a60
mov eax, 0x8fb823ef
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x39
add cl, bl
xor byte [rdi], cl
inc ebx
lea rdi, [rdi + 1]
cmp ebx, 0x10
jl 0x140003a30
nop
xorps xmm0, xmm0
movdqu xmmword [0x140025d88], xmm0
movups xmm0, xmmword [0x140025b90]
movups xmmword [rbp], xmm0
mov rax, rbp
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret