Function at 0x140107200
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x118
movaps xmmword [rax - 0x58], xmm6
mov r14, rdx
mov rsi, rcx
mov dword [rbp + 0x70], 1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], ebx
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], bx
lea rcx, [rsp + 0x60]
call fcn.140089b60
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1401012e0
mov rdi, rax
lea rax, [rsp + 0x20]
cmp rax, rdi
je 0x140107370
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x14010734b
mov r14, qword [rsp + 0x28]
cmp rbx, r14
je 0x1401072fe
xor eax, eax
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1401072e1
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1401072da
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1401073c2
mov rcx, r8
call fcn.1402c1be4
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
add rbx, 0x20
cmp rbx, r14
jne 0x1401072a0
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x14010732f
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401073c2
mov rcx, rbx
call fcn.1402c1be4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov r14, qword [rbp + 0x68]
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x30], rax
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x38], eax
add rdi, 0x20
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x140107401
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1401073ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401073c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401073c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402c1be4
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], bx
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
lea rcx, [rbp - 0x60]
call fcn.140095940
lea rcx, [rbp - 0x80]
call fcn.140100c80
cmp dword [rsp + 0x38], 0
je 0x140107830
movups xmm0, xmmword [0x1403288a8]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [0x1403288b8]
movups xmmword [rbp - 0x70], xmm1
mov eax, dword [0x1403288c8]
mov dword [rbp - 0x60], eax
movzx eax, word [0x1403288cc]
mov word [rbp - 0x5c], ax
movzx eax, byte [0x1403288ce]
mov byte [rbp - 0x5a], al
mov ecx, ebx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140107592
movdqa xmm5, xmmword [0x1402d9220]
movdqa xmm4, xmmword [0x140328a10]
movdqa xmm6, xmmword [str.4444]
movdqa xmm0, xmmword [str.3333333333333333R]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rbp - 0x7c]
mov r8d, dword [rsp + 0x60]
movd xmm2, ecx
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
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140327dc0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 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
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140327dc0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x20
jl 0x140107490
cmp ecx, 0x27
jge 0x1401075cc
movsxd rax, ecx
lea r8, [rbp - 0x80]
add r8, rax
nop dword [rax]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x27
jl 0x1401075a0
lea rdx, [rbp - 0x80]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140072630
lea rdx, [0x140081270]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400ff790
lea rdx, [0x140081270]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov dword [rbp + 0x70], 1
mov eax, dword [0x1403288d0]
mov dword [rbp + 0x78], eax
movzx eax, word [0x1403288d4]
mov word [rbp + 0x7c], ax
mov byte [rbp + 0x78], 0x45
xor byte [rbp + 0x79], 0x34
xor byte [rbp + 0x7a], 0x35
xor byte [rbp + 0x7b], 0x36
xor al, 0x37
mov byte [rbp + 0x7c], al
xor byte [rbp + 0x7d], 0x38
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp + 0x78]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140107680
lea rdx, [rbp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.1400658e0
nop
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x1401076c6
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rdx + 0x10], xmm1
mov r15d, reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
add qword [rsi + 8], 0x20
jmp 0x1401076d8
lea r8, [rsp + 0x60]
mov rcx, rsi
call fcn.1400ff3a0
mov r15, qword [rsp + 0x78]
cmp r15, 0xf
jbe 0x140107715
lea rdx, [r15 + 1]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010770f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010770f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402c1be4
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140107757
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107752
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010780b
call fcn.1402c1be4
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], bx
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x140107828
mov rdi, qword [rsp + 0x28]
xor r15d, r15d
cmp rbx, rdi
je 0x1401077de
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1401077c0
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1401077bb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14010780b
mov rcx, r8
call fcn.1402c1be4
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
add rbx, 0x20
cmp rbx, rdi
jne 0x140107785
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140107812
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140107812
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1402c1be4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r15
mov rcx, r14
jmp 0x140107b03
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov r12d, 3
mov dword [rbp + 0x70], r12d
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
cmp r14, r13
je 0x140107aea
lea r15d, [r12 + 0xc]
lea rax, vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
mov qword [rbp - 0x80], rax
mov cl, 1
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_
mov qword [rbp - 0x68], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], r15
mov byte [rbp - 0x60], 0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov word [rbp - 0x18], 0
mov byte [rbp - 0x16], 0
mov ecx, 0x40
call fcn.1402c215c
mov rdi, rax
mov qword [rbp + 0x78], rax
test rax, rax
je 0x1401078d1
xor edx, edx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::constructor_unsigned_long_long_unsigned___int64_____ptr64]
lea rax, vtable.std::codecvt_utf8_wchar_t__1114111__0_.0
mov qword [rdi], rax
jmp 0x1401078d4
mov rdi, rbx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x78], rdi
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Locimp::_New_Locimp_class_std::locale::_Locimp_const____ptr64_]
mov rbx, rax
test rdi, rdi
je 0x140107922
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::locale::id_std::codecvt_wchar_t__char__struct__Mbstatet_::id]
call qword [sym.imp.MSVCP140.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::locale::id::operator_unsigned_long_long_unsigned___int64__void____ptr64]
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_private:_static_void___cdecl_std::locale::_Locimp::_Locimp_Addfac_class_std::locale::_Locimp____ptr64__class_std::locale::facet____ptr64__unsigned_long_long_unsigned___int64__]
mov dword [rbx + 0x20], 0
lea rcx, [rbx + 0x28]
lea rdx, [0x140327f48]
call qword [sym.imp.MSVCP140.dll_public:_class_std::_Yarn_char_____ptr64___cdecl_std::_Yarn_char_::operator_char_const____ptr64____ptr64]
mov rcx, qword [rbp - 0x68]
cmp rcx, rbx
je 0x140107954
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x140107947
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
mov qword [rbp - 0x68], rbx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test rbx, rbx
je 0x140107978
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x140107978
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
xor ebx, ebx
mov qword [rbp - 0x10], rbx
mov r8, r14
cmp qword [r14 + 0x18], 7
jbe 0x14010798b
mov r8, qword [r14]
mov rax, qword [r14 + 0x10]
lea r9, [r8 + rax*2]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140108fd0
or r12d, 4
mov dword [rbp + 0x70], r12d
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x1401079c7
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1400896b0
add qword [rsi + 8], 0x20
jmp 0x1401079d8
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, rsi
call fcn.1400ff210
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140107a16
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107a10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107b27
call fcn.1402c1be4
nop
lea rax, vtable.std::wstring_convert_class_std::codecvt_utf8_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
mov qword [rbp - 0x80], rax
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140107a61
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107a5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107b2e
call fcn.1402c1be4
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140107aac
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107aa7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107b2e
call fcn.1402c1be4
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], r15
mov byte [rbp - 0x60], 0
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140107add
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x140107add
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
add r14, 0x20
cmp r14, r13
jne 0x14010785d
lea rcx, [rsp + 0x40]
call fcn.140095940
lea rcx, [rsp + 0x20]
call fcn.140100c80
nop
mov rcx, qword [rbp + 0x68]
call fcn.140095940
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3