Function at 0x140105f50
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.14009e200
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400ffe60
mov rdi, rax
lea rax, [rsp + 0x20]
cmp rax, rdi
je 0x1401060c0
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x14010609b
mov r14, qword [rsp + 0x28]
cmp rbx, r14
je 0x14010604e
xor eax, eax
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140106031
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14010602a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140106112
mov rcx, r8
call fcn.1402502b0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
add rbx, 0x20
cmp rbx, r14
jne 0x140105ff0
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x14010607f
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140106112
mov rcx, rbx
call fcn.1402502b0
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 0x140106151
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14010611e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140106119
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140106119
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402502b0
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.1400aa310
lea rcx, [rbp - 0x80]
call fcn.1400ff800
cmp dword [rsp + 0x38], 0
je 0x140106590
movups xmm0, xmmword [0x1402afb78]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [0x1402afb88]
movups xmmword [rbp - 0x70], xmm1
mov eax, dword [0x1402afb98]
mov dword [rbp - 0x60], eax
movzx eax, word [0x1402afb9c]
mov word [rbp - 0x5c], ax
movzx eax, byte [0x1402afb9e]
mov byte [rbp - 0x5a], al
mov ecx, ebx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x1401062ea
movdqa xmm5, xmmword [0x1402650d0]
movdqa xmm4, xmmword [0x1402afce0]
movdqa xmm6, xmmword [str.8888]
movdqa xmm0, xmmword [0x1402af1f0]
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x1402af080]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x1402af080]
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 0x1401061e0
cmp ecx, 0x27
jge 0x14010632e
movsxd rax, ecx
lea r8, [rbp - 0x80]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x38
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x27
jl 0x140106300
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.140086c30
lea rdx, [0x140095930]
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.1400fe310
lea rdx, [0x140095930]
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 [0x1402afba0]
mov dword [rbp + 0x78], eax
movzx eax, word [0x1402afba4]
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 + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1401063e0
lea rdx, [rbp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.14007ad70
nop
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x140106426
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 0x140106438
lea r8, [rsp + 0x60]
mov rcx, rsi
call fcn.1400fdf20
mov r15, qword [rsp + 0x78]
cmp r15, 0xf
jbe 0x140106475
lea rdx, [r15 + 1]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010646f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010646f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402502b0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1401064b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401064b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010656b
call fcn.1402502b0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], bx
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x140106588
mov rdi, qword [rsp + 0x28]
xor r15d, r15d
cmp rbx, rdi
je 0x14010653e
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140106520
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14010651b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14010656b
mov rcx, r8
call fcn.1402502b0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
add rbx, 0x20
cmp rbx, rdi
jne 0x1401064e5
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140106572
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140106572
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1402502b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r15
mov rcx, r14
jmp 0x140106863
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 0x14010684a
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.14025082c
mov rdi, rax
mov qword [rbp + 0x78], rax
test rax, rax
je 0x140106631
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 0x140106634
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 0x140106682
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, [0x1402af218]
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 0x1401066b4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x1401066a7
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 0x1401066d8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x1401066d8
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 0x1401066eb
mov r8, qword [r14]
mov rax, qword [r14 + 0x10]
lea r9, [r8 + rax*2]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.140107d50
or r12d, 4
mov dword [rbp + 0x70], r12d
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x140106727
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14009dd70
add qword [rsi + 8], 0x20
jmp 0x140106738
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, rsi
call fcn.1400fdd90
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140106776
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140106770
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140106887
call fcn.1402502b0
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 0x1401067c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401067bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010688e
call fcn.1402502b0
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x14010680c
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140106807
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010688e
call fcn.1402502b0
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], r15
mov byte [rbp - 0x60], 0
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14010683d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x14010683d
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
add r14, 0x20
cmp r14, r13
jne 0x1401065bd
lea rcx, [rsp + 0x40]
call fcn.1400aa310
lea rcx, [rsp + 0x20]
call fcn.1400ff800
nop
mov rcx, qword [rbp + 0x68]
call fcn.1400aa310
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