Function at 0x140787a00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
mov qword [rsp + 0x70], rbx
mov ecx, 0xfffffff5
mov qword [rsp + 0x78], rbp
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov edx, 7
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp qword [rdi + 0x18], 7
mov r10, rdi
jbe 0x140787a40
mov r10, qword [rdi]
movups xmm1, xmmword [0x140827160]
mov ebp, dword [reloc.WS2_32.dll_accept]
xor ebx, ebx
movups xmm0, xmmword [0x140827150]
pextrw eax, xmm1, 7
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm7
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm1
test ax, ax
je 0x140787be8
cmp ebp, 2
jl 0x140787ba1
movdqa xmm5, xmmword [0x14083c9b0]
lea rcx, [rsp + 0x20]
movdqa xmm4, xmmword [0x14083ca40]
mov edx, ebx
movdqa xmm6, xmmword [0x14083c9f0]
movdqa xmm7, xmmword [0x14083ca00]
nop dword [rax + rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add edx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, 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
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, 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
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp edx, 0x10
jl 0x140787ab0
jmp 0x140787be8
lea r9, [rsp + 0x20]
mov r8d, ebx
nop dword [rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x30
xor word [r9 - 2], ax
cmp r8d, 0x10
jl 0x140787bb0
mov rdx, r10
lea rcx, [rsp + 0x20]
call fcn.14077f910
mov edx, ntohl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
lea rdx, [0x14084b110]
mov r8, qword [0x14084b120]
cmova rdx, qword [0x14084b110]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14079a730
mov rcx, rax
mov dl, reloc.WLDAP32.dll_Ordinal_32
call fcn.1407981b0
mov edx, 7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp qword [rdi + 0x18], 7
mov eax, dword [0x1408269a8]
movups xmm7, xmmword [0x140826990]
mov dword [rsp + 0x38], eax
movzx eax, word [0x1408269ac]
movsd xmm0, qword [0x1408269a0]
mov word [rsp + 0x3c], ax
movups xmmword [rsp + 0x20], xmm7
movsd qword [rsp + 0x30], xmm0
jbe 0x140787c7f
mov rdi, qword [rdi]
cmp ebp, 2
mov rbp, qword [rsp + 0x78]
jl 0x140787d7e
movdqa xmm2, xmmword [0x14083c9b0]
mov ebx, 8
movdqa xmm4, xmmword [0x14083ca40]
movdqa xmm1, xmm2
movdqa xmm6, xmmword [0x14083ca00]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14083c9f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm6
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm1, xmm7
paddw xmm3, xmm2
movdqa xmm2, xmmword [0x14083c9c0]
xorps xmm3, xmm1
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movq qword [rsp + 0x20], xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14083c9f0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movq xmm2, xmm6
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x28]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rsp + 0x28], xmm3
movaps xmm7, xmmword [rsp + 0x40]
lea r8, [rsp + 0x20]
movaps xmm6, xmmword [rsp + 0x50]
movsxd rax, ebx
lea r8, [r8 + rax*2]
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x8d3dcb09
lea r8, [r8 + 2]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x30
xor word [r8 - 2], ax
cmp ebx, 0xf
jl 0x140787da0
mov rbx, qword [rsp + 0x70]
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14077f910
mov edx, ntohl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp qword [0x14084d3c0], 0xf
lea rdx, [0x14084d3a8]
mov r8, qword [0x14084d3b8]
cmova rdx, qword [0x14084d3a8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14079a730
mov rcx, rax
mov dl, reloc.WLDAP32.dll_Ordinal_32
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
jmp fcn.1407981b0