Function at 0x140005bd0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rcx, [0x1400ae760]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140005bf6
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x1400ae7ac], 0x7fffffff
jne 0x140005c18
mov ecx, 6
mov dword [0x1400ae7ac], 0x7ffffffe
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov qword [rsp + 0x70], rbx
xor ebx, ebx
cmp qword [0x1400e0148], rbx
mov qword [rsp + 0x78], rdi
mov edi, dword [reloc.WS2_32.dll_accept]
movaps xmmword [rsp + 0x50], xmm6
jne 0x140005dce
cmp qword [0x1400dff18], rbx
je 0x140005f59
cmp byte [0x140091555], bl
mov eax, dword [0x140091550]
movsd xmm0, qword [str.sp__l_eqstp_]
mov dword [rbp - 0x38], eax
movzx eax, word [0x140091554]
mov word [rbp - 0x34], ax
movsd qword [rbp - 0x40], xmm0
je 0x140005dc0
mov r8d, ebx
cmp edi, 2
jl 0x140005d7b
movdqa xmm2, xmmword [0x14009bd90]
mov r8d, 8
movdqa xmm4, xmmword [0x14009be00]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x14009bda0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14009bdc0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [str.sp__l_eqstp_]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14009bdf0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14009be10]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rbp - 0x40], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14009bdc0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rbp - 0x3c]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009bdf0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14009be10]
xorps xmm2, xmm0
movd dword [rbp - 0x3c], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x40]
add r9, rax
nop word [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0xe
jl 0x140005d90
lea rcx, [rbp - 0x40]
call fcn.140005210
jmp 0x140005f59
cmp qword [0x1400dff18], rbx
jne 0x140005f59
cmp byte [0x140091555], bl
mov eax, dword [0x140091550]
movsd xmm0, qword [str.sp__l_eqstp_]
mov dword [rbp - 0x38], eax
movzx eax, word [0x140091554]
mov word [rbp - 0x34], ax
movsd qword [rbp - 0x40], xmm0
je 0x140005f50
mov r8d, ebx
cmp edi, 2
jl 0x140005f13
movdqa xmm2, xmmword [0x14009bd90]
mov r8d, 8
movdqa xmm4, xmmword [0x14009be00]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x14009bda0]
movdqa xmm0, xmm2
mov eax, dword [0x14009be10]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14009bdc0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14009bdf0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.sp__l_eqstp_]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rbp - 0x40], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14009bdc0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009bdf0]
movd xmm1, dword [rbp - 0x3c]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp - 0x3c], xmm2
movsxd rax, r8d
lea r9, [rbp - 0x40]
add r9, rax
nop dword [rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0xe
jl 0x140005f20
lea rcx, [rbp - 0x40]
call fcn.1400052a0
cmp qword [0x1400e0150], rbx
jne 0x14000612e
cmp qword [0x1400dff20], rbx
je 0x1400062f9
cmp byte [0x140091541], bl
movups xmm0, xmmword [str.sp__l_ehlxk]
movzx eax, word [0x140091540]
mov word [rbp - 0x20], ax
movups xmmword [rbp - 0x30], xmm0
je 0x140006120
mov r8d, ebx
cmp edi, 2
jl 0x1400060d7
movdqa xmm0, xmmword [0x14009be10]
lea rcx, [rbp - 0x2c]
movdqa xmm5, xmmword [0x14009bd90]
movdqa xmm4, xmmword [0x14009be00]
movdqa xmm6, xmmword [0x14009bdc0]
movdqa xmmword [rbp - 0x40], xmm0
mov edx, dword [rbp - 0x40]
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 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
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14009bdf0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009bdf0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x140005fd0
cmp r8d, 0x12
jge 0x140006120
movsxd rax, r8d
lea r9, [rbp - 0x30]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0x12
jl 0x1400060f0
lea rcx, [rbp - 0x30]
call fcn.140005210
jmp 0x1400062f9
cmp qword [0x1400dff20], rbx
jne 0x1400062f9
cmp byte [0x140091541], bl
movups xmm0, xmmword [str.sp__l_ehlxk]
movzx eax, word [0x140091540]
mov word [rbp - 0x20], ax
movups xmmword [rbp - 0x30], xmm0
je 0x1400062f0
mov r8d, ebx
cmp edi, 2
jl 0x1400062a7
movdqa xmm0, xmmword [0x14009be10]
lea rcx, [rbp - 0x2c]
movdqa xmm5, xmmword [0x14009bd90]
movdqa xmm4, xmmword [0x14009be00]
movdqa xmm6, xmmword [0x14009bdc0]
movdqa xmmword [rbp - 0x40], xmm0
mov edx, dword [rbp - 0x40]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 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
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14009bdf0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009bdf0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x1400061a0
cmp r8d, 0x12
jge 0x1400062f0
movsxd rax, r8d
lea r9, [rbp - 0x30]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0x12
jl 0x1400062c0
lea rcx, [rbp - 0x30]
call fcn.1400052a0
cmp qword [0x1400e0158], rbx
jne 0x1400064ca
cmp qword [0x1400dff28], rbx
je 0x140006685
cmp byte [0x140091515], bl
mov eax, dword [0x140091510]
movups xmm0, xmmword [0x140091500]
mov dword [rbp - 0x20], eax
movzx eax, word [0x140091514]
movups xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x1c], ax
je 0x1400064bc
cmp edi, 2
jl 0x140006482
movdqa xmm0, xmmword [0x14009be10]
lea rcx, [rbp - 0x2c]
movdqa xmm5, xmmword [0x14009bd90]
movdqa xmm4, xmmword [0x14009be00]
movdqa xmm6, xmmword [0x14009bdc0]
movdqa xmmword [rbp - 0x40], xmm0
mov edx, dword [rbp - 0x40]
nop dword [rax]
nop word [rax + 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
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14009bdf0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009bdf0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x140006380
cmp ebx, 0x16
jge 0x1400064bc
movsxd rax, ebx
lea r8, [rbp - 0x30]
add r8, rax
nop dword [rax]
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
inc ebx
sub al, cl
add al, 0x32
xor byte [r8 - 1], al
cmp ebx, 0x16
jl 0x140006490
lea rcx, [rbp - 0x30]
call fcn.140005210
jmp 0x140006685
cmp qword [0x1400dff28], rbx
jne 0x140006685
cmp byte [0x140091515], bl
mov eax, dword [0x140091510]
movups xmm0, xmmword [0x140091500]
mov dword [rbp - 0x20], eax
movzx eax, word [0x140091514]
movups xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x1c], ax
je 0x14000667c
cmp edi, 2
jl 0x140006642
movdqa xmm0, xmmword [0x14009be10]
lea rcx, [rbp - 0x2c]
movdqa xmm5, xmmword [0x14009bd90]
movdqa xmm4, xmmword [0x14009be00]
movdqa xmm6, xmmword [0x14009bdc0]
movdqa xmmword [rbp - 0x40], xmm0
mov edx, dword [rbp - 0x40]
nop word [rax + 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
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14009bdf0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14009bdf0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x140006540
cmp ebx, 0x16
jge 0x14000667c
movsxd rax, ebx
lea r8, [rbp - 0x30]
add r8, rax
nop dword [rax]
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
inc ebx
sub al, cl
add al, 0x32
xor byte [r8 - 1], al
cmp ebx, 0x16
jl 0x140006650
lea rcx, [rbp - 0x30]
call fcn.1400052a0
movups xmm0, xmmword [0x1400dff00]
lea rcx, [0x1400ae760]
movups xmm1, xmmword [0x1400dff10]
movups xmmword [0x1400e0130], xmm0
movups xmm0, xmmword [0x1400dff20]
movups xmmword [0x1400e0140], xmm1
movups xmmword [0x1400e0150], xmm0
movaps xmm6, xmmword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rbp
jmp qword [sym.imp.MSVCP140.dll__Mtx_unlock]