Function at 0x140040460
Capabilities:
Encode data using xor
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
lea rbp, [rax - 0xf8]
sub rsp, 0x1f0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
mov rax, qword [0x14010a718]
xor rax, rsp
mov qword [rbp + 0xa0], rax
lea r8, [0x14010c640]
lea rdx, [rbp - 0x20]
lea rcx, [0x14010c700]
call fcn.140037700
movups xmm9, xmmword [rax + 8]
movups xmmword [rbp + 0x60], xmm9
movups xmm7, xmmword [rax + 0x18]
movups xmmword [rbp + 0x70], xmm7
xor ebx, ebx
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rax + 8], bl
lea rcx, [rbp - 0x20]
call fcn.14003d6c0
movq rax, xmm7
test rax, rax
jne 0x14004063c
movzx eax, word [0x1400f39c4]
mov word [rsp + 0x20], ax
cmp byte [0x1400f39c5], bl
je 0x140040508
mov byte [rsp + 0x20], Ordinal_50
xor byte [rsp + 0x21], 0x3a
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x140040525
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14000b700
nop
lea r9, [rsp + 0x28]
lea r8, [0x14010c640]
lea rdx, [rsp + 0x60]
lea rcx, [0x14010c700]
call fcn.140035a20
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140040592
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004058d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400405de
call fcn.1400bd9dc
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], 0
lea rcx, [rbp - 0x78]
call fcn.140021940
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400405ea
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400405e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400405e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd9dc
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14004063c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040637
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040637
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd9dc
lea r8, [0x14010c660]
lea rdx, [rsp + 0x60]
lea rcx, [0x14010c700]
call fcn.140037700
movups xmm8, xmmword [rax + 8]
movups xmmword [rbp + 0x80], xmm8
movups xmm6, xmmword [rax + 0x18]
movups xmmword [rbp + 0x90], xmm6
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rax + 8], 0
lea rcx, [rsp + 0x60]
call fcn.14003d6c0
movq rax, xmm6
test rax, rax
je 0x140040759
call fcn.1400508a0
nop
psrldq xmm6, 8
movq rdx, xmm6
cmp rdx, 0x10
jb 0x1400406e0
inc rdx
movq rcx, xmm8
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400406da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400406da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd9dc
nop
psrldq xmm7, 8
movq rdx, xmm7
cmp rdx, 0x10
jb 0x140040725
inc rdx
movq rcx, xmm9
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040720
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040720
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bd9dc
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400bd610
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x10]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop rbp
ret
mov r10, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x28]
call fcn.140040940
mov r9, rax
cmp byte [rax + 0x12], 0
je 0x14004090b
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400408d0
movdqa xmm5, xmmword [0x1400f7330]
movdqa xmm4, xmmword [0x1400f7480]
mov eax, 1
movd xmm6, eax
movdqa xmm7, xmmword [0x1400f73b0]
mov eax, Ordinal_33
movd xmm8, eax
movdqa xmm0, xmmword [0x1400f74b0]
movdqa xmmword [rsp + 0x50], xmm0
mov rcx, r9
mov edx, dword [rsp + 0x50]
nop dword [rax]
nop dword [rax + rax]
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
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f7470]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], 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
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400f7470]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm2, xmm0
movd dword [rcx + 4], xmm2
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x10
jl 0x1400407d0
cmp eax, 0x13
jge 0x14004090b
movsxd r8, ebx
add r8, r9
nop word [rax + rax]
mov eax, 0x94f2095
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, bl
sub al, dl
add al, 0x39
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x13
jl 0x1400408e0
mov rdx, r9
mov rcx, r10
call fcn.14000b490
mov dword [rsp + 0x20], 0x5dc
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14000b2f0
mov rcx, rax
call fcn.14000b300
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3