Function at 0x140021ad0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rsi, rcx
xor ebx, ebx
movsd xmm0, qword [0x1401f8d00]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x1401f8d08]
mov dword [rsp + 0x48], eax
mov edi, dword [reloc.WS2_32.dll_accept]
movdqa xmm7, xmmword [0x1401ff6c0]
cmp byte [0x1401f8d0b], bl
je 0x140021c50
mov r8d, ebx
cmp edi, 2
jl 0x140021c14
movdqa xmm3, xmmword [0x1401ffab0]
movdqa xmm2, xmmword [0x1401ff610]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401ff650]
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401ff750]
movd xmm0, dword [0x1401f8d00]
xorps xmm2, xmm0
movd dword [rsp + 0x40], xmm2
movdqa xmm2, xmmword [0x1401ff630]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401ff650]
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401ff750]
movd xmm0, dword [rsp + 0x44]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x37
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xc
jl 0x140021c20
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x140021c70
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140008100
nop
mov byte [rsp + 0x70], 0
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.140025ae0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [reloc.WS2_32.dll_closesocket]
movdqu xmmword [rsp + 0x60], xmm1
mov eax, dword [0x1401f76d8]
mov word [rsp + 0x50], ax
movzx eax, byte [0x1401f76da]
mov byte [rsp + 0x52], al
mov byte [rsp + 0x53], 0
lea r8, [rsi + 0x88]
mov rcx, qword [r8 + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
mov rdx, qword [rbp - 0x50]
cmp rax, rdx
jb 0x140022098
mov r9, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x140021cfd
mov r9, qword [r8]
lea rax, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rax, qword [rbp - 0x60]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
movzx edx, byte [rbp + 0x38]
lea rcx, [rbp - 0x80]
call fcn.1400084e0
nop
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.14001fd30
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140021d7c
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021d77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002209e
call fcn.14015d5e8
movdqa xmm0, xmmword [0x1401ff430]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140021dca
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021dc5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400220a4
call fcn.14015d5e8
lea rcx, [rsp + 0x40]
call fcn.140027220
lea rcx, [rsp + 0x40]
test al, al
je 0x140021f72
lea rdx, str.error
call fcn.140026ee0
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.140027310
mov r10, rax
lea rdx, [rsp + 0x50]
call fcn.1400220b0
mov r9, rax
cmp byte [rax + 0x1b], 0
je 0x140022040
cmp edi, 2
jl 0x140021f38
movdqa xmm5, xmmword [0x1401ff610]
movdqa xmm4, xmmword [0x1401ffab0]
movdqa xmm6, xmmword [0x1401ff650]
movdqa xmm0, xmmword [0x1401ff750]
movdqa xmmword [rbp - 0x80], xmm0
mov rcx, rax
mov edx, dword [rbp - 0x80]
nop word [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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, edx
paddb xmm3, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm3, xmm0
movd dword [rcx + 4], xmm3
add ebx, 8
mov eax, ebx
lea rcx, [rcx + 8]
cmp ebx, 0x18
jl 0x140021e50
cmp eax, 0x1c
jge 0x140022040
movsxd r8, ebx
add r8, r9
nop
mov eax, 0x51eb851f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
sub al, cl
add al, 0x37
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x1c
jge 0x140022040
jmp 0x140021f40
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 9
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.userCount]
movsd qword [rsp + 0x50], xmm0
movzx eax, byte [reloc.WS2_32.dll_WSACleanup]
mov byte [rsp + 0x58], al
mov byte [rsp + 0x59], 0
lea rdx, [rsp + 0x50]
call fcn.140029790
mov rcx, rax
call fcn.140026f30
mov ebx, eax
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140026360
nop
movzx edx, byte [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.140026360
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140022015
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022010
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002203a
call fcn.14015d5e8
mov eax, ebx
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140170074
nop
mov r8, r10
mov rdx, r9
lea rcx, [rbp - 0x40]
call fcn.1400273c0
nop
lea rcx, [rbp - 0x20]
call fcn.1400073c0
lea rcx, [rbp - 0x40]
call fcn.1400073b0
mov rdx, rax
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.14000a570
lea rdx, [0x140220f80]
lea rcx, [rbp - 0x80]
call fcn.140163b70
nop
call fcn.1400053f0
nop
call fcn.140170074
nop
call fcn.140170074
int3