Function at 0x140058750
Capabilities:
Encode data using xor
Execute command

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x80
mov eax, dword [str.Q_G5]
xor ebx, ebx
cmp byte [0x140104dcb], bl
mov edi, dword [reloc.WS2_32.dll_accept]
movaps xmmword [rsp + 0x70], xmm6
movdqa xmm6, xmmword [0x1401d9da0]
mov dword [r11 + 8], eax
je 0x140058844
cmp edi, 2
jl 0x140058802
movdqa xmm3, xmmword [0x1401d9d20]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1401d9f10]
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1401d9f10]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
psrad xmm2, 5
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x1401d9d40]
psubd xmm3, xmm0
movd xmm0, eax
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x1401d9e10]
xorps xmm3, xmm0
movd dword [r11 + 8], xmm3
jmp 0x140058844
lea r9, [rsp + 0x90]
mov r8d, ebx
nop dword [rax]
mov eax, 0x92492493
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 4
jl 0x140058810
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.e_31m
call fcn.14006bc50
mov rcx, rax
movzx eax, word [0x1401d87e8]
mov word [rsp + 0x60], ax
movups xmm0, xmmword [0x1401d87b8]
movups xmm1, xmmword [0x1401d87c8]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x1401d87d8]
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm0
cmp edi, 2
jl 0x1400589f7
movdqa xmm0, xmmword [0x1401d9e10]
lea rdx, [rsp + 0x34]
movdqa xmm4, xmmword [0x1401d9d20]
movdqa xmm3, xmmword [0x1401d9f10]
movdqa xmm5, xmmword [0x1401d9d40]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ebx, 0x30
jl 0x1400588e0
cmp ebx, 0x32
jl 0x1400589f7
lea rdx, [rsp + 0x30]
call fcn.14006bc50
lea rcx, [rsp + 0x90]
call fcn.14000ff30
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x90], rax
jmp 0x140058a5e
movsxd rax, ebx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x92492493
lea r8, [r8 + 1]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, bl
inc ebx
sub al, dl
add al, 0x32
xor byte [r8 - 1], al
cmp ebx, 0x32
jl 0x140058a10
lea rdx, [rsp + 0x30]
call fcn.14006bc50
lea rcx, [rsp + 0x90]
call fcn.14000ff30
mov rax, qword [rsp + 0x90]
movabs r8, 0x7fffffffa697d0ff
cmp rax, r8
je 0x140058a86
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x140058a86
add rax, 0x59682f00
jmp 0x140058a90
movabs rax, 0x7fffffffffffffff
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
call fcn.1400740d0
mov rbx, qword [rsp + 0x98]
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rdi
ret