Function at 0x140087990
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
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov eax, dword [0x140171c48]
xor esi, esi
movsd xmm0, qword [0x140171c40]
mov rdi, rcx
mov ebx, dword [0x14018e0d8]
mov r8d, esi
mov dword [rbp + 0xf], eax
movzx eax, word [0x140171c4c]
mov word [rbp + 0x13], ax
movzx eax, byte [0x140171c4e]
mov byte [rbp + 0x15], al
movsd qword [rbp + 7], xmm0
cmp ebx, 2
jl 0x140087af8
movdqa xmm2, xmmword [0x1401781d0]
mov r8d, 8
movdqa xmm4, xmmword [0x140178510]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1401781f0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140178200]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [0x140171c40]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140178340]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401783b0]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp + 7], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140178200]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp + 0xb]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140178340]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401783b0]
xorps xmm2, xmm0
movd dword [rbp + 0xb], xmm2
movsxd rax, r8d
lea r9, [rbp + 7]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x38
xor byte [r9 - 1], al
cmp r8d, 0xf
jl 0x140087b10
lea rcx, [rbp + 7]
call qword [0x140151ab0]
movzx eax, byte [0x1401715b0]
mov ecx, esi
mov byte [rbp + 0x27], al
movups xmm0, xmmword [0x1401715a0]
movups xmmword [rbp + 0x17], xmm0
cmp ebx, 2
jl 0x140087ca4
movdqa xmm0, xmmword [0x1401783b0]
lea rdx, [rbp + 0x1b]
movdqa xmm5, xmmword [0x1401781d0]
movdqa xmm4, xmmword [0x140178510]
movdqa xmm6, xmmword [0x140178200]
movdqa xmmword [rbp + 7], xmm0
mov r8d, dword [rbp + 7]
nop dword [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140178340]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140178340]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x140087ba0
cmp ecx, 0x11
jge 0x140087cdd
movsxd rax, ecx
lea r8, [rbp + 0x17]
add r8, rax
nop
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
inc ecx
sub al, dl
add al, 0x38
xor byte [r8 - 1], al
cmp ecx, 0x11
jl 0x140087cb0
mov eax, dword [0x1401712e0]
lea rcx, [rbp - 9]
mov dword [rbp - 9], eax
movzx eax, word [0x1401712e4]
xor byte [rbp - 8], 0x39
xor byte [rbp - 7], 0x3a
xor byte [rbp - 6], 0x3b
mov word [rbp - 5], ax
xor byte [rbp - 5], 0x3c
xor byte [rbp - 4], 0x3d
mov byte [rbp - 9], 0x6e
call qword [0x140151430]
mov rcx, rax
lea rdx, [rbp + 0x17]
call qword [0x1401513f8]
mov rbx, rax
call qword [0x140151390]
mov qword [rsp + 0x50], rsi
lea rcx, [rbp + 0x2f]
mov qword [rsp + 0x48], rsi
mov r9, rax
mov qword [rsp + 0x40], rsi
xor r8d, r8d
mov qword [rsp + 0x38], rsi
mov edx, 0x2000000
mov dword [rsp + 0x30], 0x40
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
call rbx
mov rcx, qword [rbp + 0x2f]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x11]
call qword [0x1401520b8]
call qword [0x140151ab8]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140148480
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret