Function at 0x1400a4040
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
movsd xmm0, qword [0x14037b878]
movsd qword [rbp - 0x50], xmm0
mov ecx, dword [0x14037b880]
mov dword [rbp - 0x48], ecx
movzx eax, byte [0x14037b884]
mov byte [rbp - 0x44], al
xor r8d, r8d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1400a41d8
movdqa xmm5, xmmword [0x14037baf0]
movdqa xmm2, xmmword [0x140379a20]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.9999]
psubd xmm2, xmm0
movdqa xmm4, xmmword [0x14037bad0]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14037bae0]
movd xmm0, dword [0x14037b878]
xorps xmm2, xmm0
movd dword [rbp - 0x50], xmm2
movdqa xmm2, xmmword [0x14037ba80]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.9999]
psubd xmm2, xmm0
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14037bae0]
movd xmm0, dword [rbp - 0x4c]
xorps xmm2, xmm0
movd dword [rbp - 0x4c], xmm2
movdqa xmm3, xmmword [0x14037ba90]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.9999]
psubd xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x14037bae0]
movd xmm0, ecx
xorps xmm3, xmm0
movd dword [rbp - 0x48], xmm3
mov r8d, listen
mov eax, r8d
lea r9, [rbp - 0x50]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x36
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xd
jl 0x1400a41f0
lea r8, [0x1408a5ac8]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1400a2920
movsd xmm0, qword [0x14037b888]
movsd qword [rbp - 0x50], xmm0
movzx eax, word [0x14037b890]
mov word [rbp - 0x48], ax
lea r8, [0x1408a5ae8]
lea rdx, [rbp - 0x50]
mov rcx, rbx
cmp byte [0x14037b891], 0
je 0x1400a428d
mov byte [rbp - 0x50], WSAGetLastError
xor byte [rbp - 0x4f], 0x37
xor byte [rbp - 0x4e], 0x38
xor byte [rbp - 0x4d], 0x39
xor byte [rbp - 0x4c], 0x3a
xor byte [rbp - 0x4b], 0x3b
xor byte [rbp - 0x4a], 0x3c
xor byte [rbp - 0x49], 0x3d
xor byte [rbp - 0x48], 0x3e
xor byte [rbp - 0x47], 0x3f
call fcn.1400a2920
movzx eax, word [0x14037b8a0]
mov word [rbp - 0x48], ax
movsd xmm0, qword [0x14037b898]
movzx eax, byte [0x14037b8a2]
movsd qword [rbp - 0x50], xmm0
mov byte [rbp - 0x50], WSAGetLastError
xor byte [rbp - 0x4f], 0x37
xor byte [rbp - 0x4e], 0x38
xor byte [rbp - 0x4d], 0x39
xor byte [rbp - 0x4c], 0x3a
xor byte [rbp - 0x4b], 0x3b
xor byte [rbp - 0x4a], 0x3c
xor byte [rbp - 0x49], 0x3d
xor byte [rbp - 0x48], 0x3e
xor byte [rbp - 0x47], 0x3f
xor al, 0x40
mov byte [rbp - 0x46], al
lea r8, [0x1408a5b28]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1400a2920
mov eax, dword [0x14037b8b4]
mov dword [rbp + 0x18], eax
movzx ecx, word [0x14037b8b8]
mov word [rbp + 0x1c], cx
movzx eax, byte [0x14037b8ba]
mov byte [rbp + 0x18], WSAGetLastError
xor byte [rbp + 0x19], 0x37
xor byte [rbp + 0x1a], 0x38
xor byte [rbp + 0x1b], 0x39
xor cl, 0x3a
mov byte [rbp + 0x1c], cl
xor byte [rbp + 0x1d], 0x3b
xor al, 0x3c
mov byte [rbp + 0x1e], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
lea rax, [rbp + 0x18]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400a4350
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x20]
call fcn.14006d8c0
nop
movsd xmm0, qword [0x14037b8a8]
movsd qword [rbp - 0x50], xmm0
movzx ecx, word [0x14037b8b0]
mov word [rbp - 0x48], cx
movzx eax, byte [0x14037b8b2]
mov byte [rbp - 0x50], WSAGetLastError
xor byte [rbp - 0x4f], 0x37
xor byte [rbp - 0x4e], 0x38
xor byte [rbp - 0x4d], 0x39
xor byte [rbp - 0x4c], 0x3a
xor byte [rbp - 0x4b], 0x3b
xor byte [rbp - 0x4a], 0x3c
xor byte [rbp - 0x49], 0x3d
xor cl, 0x3e
mov byte [rbp - 0x48], cl
xor byte [rbp - 0x47], 0x3f
xor al, 0x40
mov byte [rbp - 0x46], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
lea rax, [rbp - 0x50]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400a43d0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call fcn.14006d8c0
nop
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400a440d
mov qword [0], 0x99
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400a4435
mov qword [0], 0x99
mov r8d, 0x20
lea rdx, [0x1408a5ac8]
lea rcx, [0x1408a5a48]
call rax
mov edi, eax
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x1400a448b
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a4486
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a4486
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140224898
movdqa xmm0, xmmword [0x14037a260]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1400a44da
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a44d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a44d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140224898
test edi, edi
je 0x1400a44ea
mov qword [0], 0x99
mov eax, dword [0x14037b8cc]
mov dword [rbp + 0x18], eax
movzx ecx, word [0x14037b8d0]
mov word [rbp + 0x1c], cx
movzx eax, byte [0x14037b8d2]
mov byte [rbp + 0x18], WSAGetLastError
xor byte [rbp + 0x19], 0x37
xor byte [rbp + 0x1a], 0x38
xor byte [rbp + 0x1b], 0x39
xor cl, 0x3a
mov byte [rbp + 0x1c], cl
xor byte [rbp + 0x1d], 0x3b
xor al, 0x3c
mov byte [rbp + 0x1e], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
lea rax, [rbp + 0x18]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400a4540
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x20]
call fcn.14006d8c0
nop
movsd xmm0, qword [0x14037b8c0]
movsd qword [rbp - 0x50], xmm0
movzx ecx, word [0x14037b8c8]
mov word [rbp - 0x48], cx
movzx eax, byte [0x14037b8ca]
mov byte [rbp - 0x50], WSAGetLastError
xor byte [rbp - 0x4f], 0x37
xor byte [rbp - 0x4e], 0x38
xor byte [rbp - 0x4d], 0x39
xor byte [rbp - 0x4c], 0x3a
xor byte [rbp - 0x4b], 0x3b
xor byte [rbp - 0x4a], 0x3c
xor byte [rbp - 0x49], 0x3d
xor cl, 0x3e
mov byte [rbp - 0x48], cl
xor byte [rbp - 0x47], 0x3f
xor al, 0x40
mov byte [rbp - 0x46], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
lea rax, [rbp - 0x50]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400a45c0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call fcn.14006d8c0
nop
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400a45fd
mov qword [0], 0x99
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400a4625
mov qword [0], 0x99
mov r8d, 0x20
lea rdx, [0x1408a5ae8]
lea rcx, [0x1408a5a68]
call rax
mov edi, eax
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x1400a467b
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a4676
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a4676
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140224898
movdqa xmm0, xmmword [0x14037a260]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1400a46ca
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a46c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a46c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140224898
test edi, edi
je 0x1400a46da
mov qword [0], 0x99
mov eax, dword [str._RUZWK_]
mov dword [rbp + 0x18], eax
movzx ecx, word [0x14037b8e8]
mov word [rbp + 0x1c], cx
movzx eax, byte [0x14037b8ea]
mov byte [rbp + 0x18], WSAGetLastError
xor byte [rbp + 0x19], 0x37
xor byte [rbp + 0x1a], 0x38
xor byte [rbp + 0x1b], 0x39
xor cl, 0x3a
mov byte [rbp + 0x1c], cl
xor byte [rbp + 0x1d], 0x3b
xor al, 0x3c
mov byte [rbp + 0x1e], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
lea rax, [rbp + 0x18]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400a4730
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x20]
call fcn.14006d8c0
nop
movsd xmm0, qword [str._DNZHO]
movsd qword [rbp - 0x50], xmm0
movzx ecx, word [0x14037b8e0]
mov word [rbp - 0x48], cx
movzx eax, byte [0x14037b8e2]
mov byte [rbp - 0x50], WSAGetLastError
xor byte [rbp - 0x4f], 0x37
xor byte [rbp - 0x4e], 0x38
xor byte [rbp - 0x4d], 0x39
xor byte [rbp - 0x4c], 0x3a
xor byte [rbp - 0x4b], 0x3b
xor byte [rbp - 0x4a], 0x3c
xor byte [rbp - 0x49], 0x3d
xor cl, 0x3e
mov byte [rbp - 0x48], cl
xor byte [rbp - 0x47], 0x3f
xor al, 0x40
mov byte [rbp - 0x46], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
lea rax, [rbp - 0x50]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400a47b0
mov r8, rbx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x40]
call fcn.14006d8c0
nop
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400a47ef
mov qword [0], 0x99
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400a4817
mov qword [0], 0x99
mov r8d, 0x20
lea rdx, [0x1408a5b28]
lea rcx, [0x1408a5aa8]
call rax
mov ebx, eax
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x1400a486d
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a4868
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a4868
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140224898
movdqa xmm0, xmmword [0x14037a260]
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1400a48bc
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a48b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a48b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140224898
test ebx, ebx
je 0x1400a48cc
mov qword [0], 0x99
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret