Function at 0x140058d20
Capabilities:
Encode data using xor
Set console window title

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0xa0
xor ebx, ebx
movaps xmmword [rax - 0x28], xmm7
cmp byte [0x140108f45], bl
jne 0x140058d6c
mov qword [rax + 8], 0x5dc
nop word [rax + rax]
lea rcx, [rsp + 0xb0]
call fcn.1400500e0
movzx eax, byte [0x140108f45]
cmp al, 1
je 0x140058d6c
test al, al
je 0x140058d50
cmp byte [0x1400cef09], bl
movups xmm3, xmmword [str.KLT__DD]
movzx eax, word [0x1400cef08]
movsd xmm0, qword [0x1400cef00]
mov edi, dword [reloc.WS2_32.dll_accept]
movdqa xmm7, xmmword [0x1400cf4b0]
movups xmmword [rsp + 0x30], xmm3
mov word [rsp + 0x48], ax
movaps xmmword [rsp + 0x90], xmm6
movsd qword [rsp + 0x40], xmm0
je 0x140059061
mov r8d, ebx
cmp edi, 2
jl 0x14005901a
movdqa xmm4, xmmword [0x1400cf8d0]
movdqa xmm2, xmmword [0x1400cf420]
movdqa xmm5, xmmword [str.1111]
movdqa xmm1, xmm2
movdqa xmm6, xmmword [0x1400cf520]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd eax, xmm3
movdqa xmm3, xmmword [0x1400cf460]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
movdqa xmm2, xmmword [0x1400cf450]
movdqa xmm1, xmm2
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
movdqa xmm1, xmm3
pmulld xmm0, xmm5
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x34]
andps xmm2, xmm7
pmuldq xmm1, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x34], xmm2
movdqa xmm2, xmmword [0x1400cf470]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm5
psubd xmm3, xmm0
punpckldq xmm1, xmm2
movd xmm0, dword [rsp + 0x38]
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
pmuldq xmm1, xmm4
paddb xmm3, xmm6
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movd dword [rsp + 0x38], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movdqa xmm3, xmmword [0x1400cf480]
andps xmm2, xmm7
movd xmm0, dword [rsp + 0x3c]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
mov r8d, Ordinal_27
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
pmuldq xmm1, xmm4
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x3c], xmm2
movdqa xmm2, xmmword [0x1400cf490]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm5
psubd xmm3, xmm0
punpckldq xmm1, xmm2
movd xmm0, dword [rsp + 0x40]
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
pmuldq xmm1, xmm4
paddb xmm3, xmm6
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movd dword [rsp + 0x40], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, dword [rsp + 0x44]
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
mov eax, r8d
lea r9, [rsp + 0x30]
add r9, 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, 0x1a
jl 0x140059030
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.140052750
test al, al
jne 0x14005938f
lea rdx, [rsp + 0x20]
call fcn.140059410
mov r10, rax
cmp byte [rax + 0xd], bl
je 0x140059221
mov r8d, ebx
cmp edi, 2
jl 0x1400591de
movdqa xmm4, xmmword [0x1400cf8d0]
mov r8d, ntohs
movdqa xmm3, xmmword [0x1400cf420]
movdqa xmm2, xmmword [0x1400cf450]
movdqa xmm1, xmm3
movdqa xmm5, xmmword [str.1111]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
mov eax, dword [0x1400cf520]
punpckldq xmm1, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm5
psubd xmm3, xmm0
punpckldq xmm1, xmm2
andps xmm3, xmm7
pmuldq xmm1, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [r10]
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
movd dword [r10], xmm3
movdqa xmm3, xmmword [0x1400cf460]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmm5
psubd xmm2, xmm0
punpckldq xmm1, xmm3
andps xmm2, xmm7
movd xmm0, eax
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
pmuldq xmm1, xmm4
movd xmm0, dword [r10 + 4]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [r10 + 4], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm3, xmm0
movd xmm0, eax
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
movd xmm0, dword [r10 + 8]
xorps xmm3, xmm0
movd dword [r10 + 8], xmm3
mov r9d, r8d
add r9, r10
nop dword [rax]
nop dword [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, 0xe
jl 0x1400591f0
lea rdx, [rsp + 0x50]
call fcn.1400593d0
mov r9, rax
cmp byte [rax + 0x29], bl
je 0x1400593b9
cmp edi, 2
jl 0x140059354
movdqa xmm0, xmmword [0x1400cf520]
mov rcx, rax
movdqa xmm5, xmmword [0x1400cf420]
movdqa xmm4, xmmword [0x1400cf8d0]
movdqa xmm6, xmmword [str.1111]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
nop dword [rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
paddd xmm3, xmm5
movdqa xmm0, xmm2
pmuldq xmm1, xmm4
punpckhdq xmm0, xmm2
add ebx, 8
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
pmulld xmm0, xmm6
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 8], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
movd xmm0, edx
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm3, xmm0
movd dword [rcx - 4], xmm3
cmp ebx, 0x28
jl 0x140059270
cmp ebx, 0x2a
jge 0x1400593b9
movsxd r8, ebx
add r8, r9
nop word [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, bl
inc ebx
sub al, cl
add al, 0x38
xor byte [r8 - 1], al
cmp ebx, 0x2a
jge 0x1400593b9
jmp 0x140059360
movaps xmm6, xmmword [rsp + 0x90]
mov al, 1
mov rbx, qword [rsp + 0xb8]
movaps xmm7, xmmword [rsp + 0x80]
mov byte [0x1401083b9], 1
add rsp, 0xa0
pop rdi
ret
mov rdx, r10
mov rcx, r9
call fcn.140058d00
int3