Function at 0x140107350
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
movaps xmmword [rax - 0x48], xmm6
mov rsi, r8
mov r14, rdx
mov r12, rcx
xor r15d, r15d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r15w
lea rax, [rbp + 0x20]
mov qword [rbp + 0xd8], rax
mov rdx, r8
lea rcx, [rbp + 0x20]
call fcn.14009e200
mov rbx, rax
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.14009e200
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1401022d0
mov rdi, rax
lea rax, [rsp + 0x40]
cmp rax, rdi
je 0x1401074e1
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1401074bc
mov rsi, qword [rsp + 0x48]
cmp rbx, rsi
je 0x14010746e
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140107450
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14010744b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140107533
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, rsi
jne 0x140107411
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x14010749f
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107533
mov rcx, rbx
call fcn.1402502b0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov rsi, qword [rbp + 0xd0]
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x50], rax
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x58], eax
add rdi, 0x20
lea rax, [rsp + 0x60]
cmp rax, rdi
je 0x140107574
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x14010753f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010753a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010753a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402502b0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r15w
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
lea rcx, [rbp - 0x40]
call fcn.1400aa310
lea rcx, [rbp - 0x60]
call fcn.1400ff800
cmp dword [rsp + 0x58], 0
je 0x140107954
movups xmm0, xmmword [0x1402afc48]
movups xmmword [rbp + 0x40], xmm0
movups xmm1, xmmword [0x1402afc58]
movups xmmword [rbp + 0x50], xmm1
mov eax, dword [0x1402afc68]
mov dword [rbp + 0x60], eax
movzx eax, word [0x1402afc6c]
mov word [rbp + 0x64], ax
movzx eax, byte [0x1402afc6e]
mov byte [rbp + 0x66], al
mov ecx, r15d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14010771a
movdqa xmm5, xmmword [0x1402650d0]
movdqa xmm4, xmmword [0x1402afce0]
movdqa xmm6, xmmword [str.8888]
movdqa xmm0, xmmword [0x1402af1f0]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rbp + 0x44]
mov r8d, dword [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
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 0x140107610
cmp ecx, 0x27
jge 0x14010775e
movsxd rax, ecx
lea r8, [rbp + 0x40]
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 0x140107730
lea rdx, [rbp + 0x40]
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]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rsp + 0x60]
mov r8, qword [rsp + 0x70]
cmp qword [rsp + 0x78], 7
jbe 0x14010779c
mov rdx, qword [rsp + 0x60]
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 eax, dword [0x1402afc70]
mov dword [rbp + 0xd8], eax
movzx eax, word [0x1402afc74]
mov word [rbp + 0xdc], ax
mov byte [rbp + 0xd8], 0x45
xor byte [rbp + 0xd9], 0x34
xor byte [rbp + 0xda], 0x35
xor byte [rbp + 0xdb], 0x36
xor byte [rbp + 0xdc], 0x37
xor byte [rbp + 0xdd], 0x38
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], r15
mov qword [r12 + 0x18], r15
lea rax, [rbp + 0xd8]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140107815
lea rdx, [rbp + 0xd8]
mov rcx, r12
call fcn.14007ad70
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140107871
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010786c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107926
call fcn.1402502b0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r15w
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140107943
mov rdi, qword [rsp + 0x48]
cmp rbx, rdi
je 0x1401078f9
nop dword [rax]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x1401078db
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1401078d6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140107926
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 0x1401078a0
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x14010792d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010792d
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 + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov rcx, r14
call fcn.1400aa310
nop
mov rcx, rsi
jmp 0x140107d17
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x80], 0
mov r14, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rbp + 0xd8], rax
cmp r14, rax
je 0x140107c64
movzx ebx, byte [rbp + 0xd8]
lea rdi, vtable.std::codecvt_utf8_wchar_t__1114111__0_.0
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 - 0x60], rax
mov cl, 1
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_
mov qword [rbp - 0x48], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x40], 0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r15w
mov word [rbp + 8], 0
mov byte [rbp + 0xa], 0
mov ecx, 0x40
call fcn.14025082c
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140107a06
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]
mov qword [rsi], rdi
jmp 0x140107a09
mov rsi, r15
mov qword [rbp], r15
mov qword [rbp - 0x58], rsi
mov rcx, qword [rbp - 0x48]
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 rdi, rax
test rsi, rsi
je 0x140107a54
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, rsi
mov rcx, rdi
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 [rdi + 0x20], r15d
lea rcx, [rdi + 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 - 0x48]
cmp rcx, rdi
je 0x140107a86
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x140107a79
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
mov qword [rbp - 0x48], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
test rdi, rdi
je 0x140107aaa
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x140107aaa
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
mov qword [rbp + 0x10], r15
mov r8, r14
cmp qword [r14 + 0x18], 7
jbe 0x140107abb
mov r8, qword [r14]
mov rax, qword [r14 + 0x10]
lea r9, [r8 + rax*2]
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x60]
call fcn.140107d50
nop
lea r9, [rbp + 0x20]
mov rsi, qword [rbp + 0x20]
mov r13, qword [rbp + 0x38]
cmp r13, 0xf
cmova r9, rsi
mov rcx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x68]
mov rax, rdx
sub rax, rcx
mov r15, qword [rbp + 0x30]
cmp r15, rax
ja 0x140107b29
lea rax, [r15 + rcx]
mov qword [rbp - 0x70], rax
lea rdi, [rbp - 0x80]
cmp rdx, 0xf
cmova rdi, qword [rbp - 0x80]
add rdi, rcx
mov r8, r15
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + r15], 0
jmp 0x140107b46
mov qword [rsp + 0x20], r15
movzx r8d, bl
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.14008ebc0
mov r13, qword [rbp + 0x38]
mov rsi, qword [rbp + 0x20]
cmp r13, 0xf
jbe 0x140107b7e
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140107b75
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107d42
mov rcx, rsi
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 - 0x60], rax
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140107bc9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107bc4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107d49
call fcn.1402502b0
xor r15d, r15d
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r15w
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140107c18
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107c13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107d49
call fcn.1402502b0
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x40], r15b
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140107c4d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x140107c4d
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
add r14, 0x20
cmp r14, qword [rbp + 0xd8]
jne 0x14010798c
cmp qword [rbp - 0x70], r15
jne 0x140107ccb
movsd xmm0, qword [str.w_FWUT_]
movsd qword [rsp + 0x30], xmm0
movzx eax, byte [0x1402afc80]
mov byte [rsp + 0x30], 0x44
xor byte [rsp + 0x31], 0x34
xor byte [rsp + 0x32], 0x35
xor byte [rsp + 0x33], 0x36
xor byte [rsp + 0x34], 0x37
xor byte [rsp + 0x35], 0x38
xor byte [rsp + 0x36], 0x39
xor byte [rsp + 0x37], 0x3a
xor al, 0x3b
mov byte [rsp + 0x38], al
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140107cb3
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.1400ac1a0
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [r12 + 0x10], xmm1
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x80], 0
lea rcx, [rsp + 0x60]
call fcn.1400aa310
lea rcx, [rsp + 0x40]
call fcn.1400ff800
nop
mov rcx, qword [rbp + 0xc8]
call fcn.1400aa310
nop
mov rcx, qword [rbp + 0xd0]
call fcn.1400aa310
mov rax, r12
mov rbx, qword [rsp + 0x1c0]
movaps xmm6, xmmword [rsp + 0x170]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
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