Function at 0x140087d90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140660880]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
mov qword [rbp - 0x30], rcx
xor edi, edi
mov qword [rbp - 0x30], rdi
add rdx, 0xab0
mov r9d, 8
lea r8, [rbp - 0x30]
lea rcx, [0x140662cc8]
call fcn.140083250
mov rbx, qword [rbp - 0x30]
mov dword [rbp - 0x38], edi
lea rdx, [rbx + 0x10]
mov r9d, 4
lea r8, [rbp - 0x38]
lea rcx, [0x140662cc8]
call fcn.140083250
movsxd r15, dword [rbp - 0x38]
mov r14, r15
test r15d, r15d
jne 0x140087f8d
mov rax, qword [0x140252740]
mov qword [rbp - 0x38], rax
cmp byte [0x140252747], dil
je 0x140087f52
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140087f0d
movdqa xmm4, xmmword [0x1402527a0]
movdqa xmm2, xmmword [0x140251780]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140252770]
psubd xmm2, xmm0
andps xmm2, xmmword [0x140252780]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140252790]
movd xmm0, dword [rbp - 0x38]
xorps xmm2, xmm0
movd dword [rbp - 0x38], xmm2
movdqa xmm2, xmmword [0x140252760]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140252770]
psubd xmm2, xmm0
andps xmm2, xmmword [0x140252780]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140252790]
movd xmm0, dword [rbp - 0x34]
xorps xmm2, xmm0
movd dword [rbp - 0x34], xmm2
jmp 0x140087f52
lea r9, [rbp - 0x38]
mov r8d, edi
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x31
add cl, r8b
xor byte [r9], cl
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x140087f20
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
lea rax, [rbp - 0x38]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], dil
jne 0x140087f70
mov r8, rbx
lea rdx, [rbp - 0x38]
mov rcx, rsi
call fcn.140087070
jmp 0x1400880ba
mov qword [rbp - 0x38], rdi
lea rdx, [rbx + 8]
mov r9d, 8
lea r8, [rbp - 0x38]
lea rcx, [0x140662cc8]
call fcn.140083250
mov eax, 2
mul r14
mov rbx, 0xffffffffffffffff
cmovb rax, rbx
mov rcx, rax
call fcn.140233d0c
mov r14, rax
lea r9d, [r15 + r15]
mov r8, rax
mov rdx, qword [rbp - 0x38]
lea rcx, [0x140662cc8]
call fcn.140083250
mov rdx, r14
lea ecx, [r15 - 1]
mov r8d, edi
movzx ecx, cl
test r15d, r15d
cmovne r8d, ecx
and r8d, 3
lea eax, [r15 - 1]
mov ecx, edi
test r15d, r15d
cmovne ecx, eax
cmp edi, ecx
jge 0x14008801f
add r8d, 3
inc edi
movzx eax, r8w
and ax, 7
add word [rdx], ax
add rdx, 2
jmp 0x140088004
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
nop
inc rbx
cmp word [r14 + rbx*2], 0
jne 0x140088030
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x28]
call fcn.140087170
nop
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x28]
cmova rdx, qword [rbp - 0x28]
lea r9, [rbp - 0x40]
mov rcx, rsi
call fcn.140086f40
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x1400880ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400880b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400880b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140233268
mov rax, rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140233310
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret