Function at 0x1400ec040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x350
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x14018d080]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor ebx, ebx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x120]
call fcn.140149be4
mov eax, dword [0x1401714b8]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x50]
cmp word [reloc.WS2_32.dll_gethostbyname], bx
je 0x1400ec0b0
mov eax, WSAStartup
mov word [rsp + 0x20], ax
xor word [rsp + 0x22], 0x34
lea rax, str.C_BSEKQ_WP
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
movups xmm0, xmmword [rax + 0x70]
lea rdx, [rdx + 0x80]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmmword [rdx], xmm1
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm1
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm0
mov rcx, qword [rax + 0x40]
mov qword [rdx + 0x40], rcx
mov ecx, dword [rax + 0x48]
mov dword [rdx + 0x48], ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400ec253
movdqa xmm5, xmmword [0x140176ee0]
movdqa xmm4, xmmword [0x140177200]
movdqa xmm6, xmmword [0x140176f60]
movdqa xmm7, xmmword [str.333333335555555599999999]
lea rcx, [rsp + 0x50]
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 xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [rbx + 4]
movd xmm2, eax
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 xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add ebx, 8
lea rcx, [rcx + 0x10]
cmp ebx, 0x60
jl 0x1400ec161
cmp ebx, 0x66
jge 0x1400ec292
movsxd rax, ebx
lea r8, [rsp + 0x50]
lea r8, [r8 + rax*2]
nop
mov eax, 0x8d3dcb09
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
sub ax, cx
add ax, 0x33
xor word [r8], ax
inc ebx
lea r8, [r8 + 2]
cmp ebx, 0x66
jl 0x1400ec260
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wpopen]
mov rbx, rax
test rax, rax
je 0x1400ec2df
mov r8, rax
mov edx, 0x100
lea rcx, [rsp + 0x120]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
mov r8, rbx
mov edx, 0x100
lea rcx, [rsp + 0x120]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetws]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0x120]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400ec300
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x30]
call fcn.140089c80
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400e9340
nop
lea rcx, [rsp + 0x30]
call fcn.1400894f0
mov rax, rdi
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1401482c0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rdi
ret