Function at 0x140058ac0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
call fcn.140046ee0
test al, al
jne 0x140058c19
mov byte [0x1401b54d8], al
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0xed0
mov eax, dword [rdx + rcx]
mov ebx, 0xbb8
add rbx, rcx
test al, 1
jne 0x140058b1c
or eax, 1
mov dword [rdx + rcx], eax
mov word [rbx + 5], 0x1ab
mov dword [rbx], 0x9c79bb2e
mov byte [rbx + 4], 9
lea rcx, [0x1400f0e30]
call fcn.1400e75cc
nop
cmp byte [rbx + 6], 0
je 0x140058bd1
xor r8d, r8d
cmp dword [reloc.WS2_32.dll_accept], 5
jl 0x140058ba0
movdqa xmm2, xmmword [0x140111430]
movdqa xmm3, xmmword [reloc.WS2_32.dll_getsockopt]
movdqa xmm4, xmmword [0x1401117e0]
movdqa xmm5, xmmword [0x140111590]
nop dword [rax]
nop word [rax + rax]
movq xmm0, r8
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
pshufb xmm1, xmm5
movzx eax, word [rbx + r8]
movd xmm0, eax
xorps xmm1, xmm0
movd eax, xmm1
mov word [rbx + r8], ax
add r8, 2
cmp r8, 6
jb 0x140058b60
jmp 0x140058bcd
movabs r9, 0x1bddab7bf30bc96b
nop word [rax + rax]
movzx ecx, r8b
and cl, 7
shl cl, 3
mov rdx, r9
shr rdx, cl
xor byte [rbx + r8], dl
inc r8
cmp r8, 6
jb 0x140058bb0
mov byte [rbx + 6], 0
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140058be0
mov rdx, rbx
lea rcx, [0x1401b3b90]
call fcn.140071f10
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x140058dc1
mov edx, 0x1f4
mov ecx, edx
add rsp, 0x50
pop rbx
jmp qword [sym.imp.KERNEL32.dll_Beep]
cmp byte [0x1401b536a], 0
sete al
mov byte [0x1401b536a], al
test al, al
je 0x140058cd2
mov byte [0x1401b54d8], 1
lea rdx, [0x1401b5738]
lea rcx, [rsp + 0x20]
call fcn.14006c690
mov rdx, rax
call fcn.1400474c0
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0x398
mov eax, dword [rdx + rcx]
mov ebx, 0xb88
add rbx, rcx
test al, 1
jne 0x140058c9b
or eax, 1
mov dword [rdx + rcx], eax
mov word [rbx + 9], reloc.WLDAP32.dll_Ordinal_301
mov dword [rbx], 0x7c534efa
mov dword [rbx + 4], 0x5845c431
mov byte [rbx + 8], 0xdf
lea rcx, [0x1400f0e00]
call fcn.1400e75cc
nop
cmp byte [rbx + 0xa], 0
je 0x140058cbc
mov edx, 0xa
movabs r8, 0x3d31a54715272dbb
mov rcx, rbx
call fcn.140046a30
mov byte [rbx + 0xa], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140058cc3
jmp 0x140058dad
mov byte [0x1401b54d8], 0
mov dword [rsp + 0x20], 1
xor r8d, r8d
mov qword [rsp + 0x28], WSAStartup
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x38], r8
mov r8d, Ordinal_45
lea rdx, [rsp + 0x20]
mov ecx, 1
call qword [sym.imp.USER32.dll_SendInput]
mov dword [rsp + 0x2c], 2
mov r8d, Ordinal_45
lea rdx, [rsp + 0x20]
mov ecx, 1
call qword [sym.imp.USER32.dll_SendInput]
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0xed4
mov eax, dword [rdx + rcx]
mov ebx, 0x8c8
add rbx, rcx
test al, 1
jne 0x140058d7b
or eax, 1
mov dword [rdx + rcx], eax
mov word [rbx + 0xb], 0x1a7
mov dword [rbx], 0xc492f0cd
mov dword [rbx + 4], 0x26772cf
mov word [rbx + 8], 0xf0fd
mov byte [rbx + 0xa], reloc.WS2_32.dll___WSAFDIsSet
lea rcx, [0x1400f0de0]
call fcn.1400e75cc
nop
cmp byte [rbx + 0xc], 0
je 0x140058d9c
mov edx, ntohl
movabs r8, 0x63111bbba7f39589
mov rcx, rbx
call fcn.140046a30
mov byte [rbx + 0xc], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140058da3
mov rdx, rbx
lea rcx, [0x1401b3b90]
add rsp, 0x50
pop rbx
jmp fcn.140071f10
add rsp, 0x50
pop rbx
ret