Function at 0x140107b40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
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 - 0x138]
sub rsp, 0x1f8
movaps xmmword [rax - 0x58], xmm6
mov r14, r8
mov r12, rdx
mov rsi, rcx
xor edi, edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], edi
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], di
lea rax, [rbp - 0x40]
mov qword [rbp + 0x158], rax
mov rdx, r8
lea rcx, [rbp - 0x40]
call fcn.140089b60
mov rbx, rax
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.140089b60
nop
xor r9d, r9d
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x88]
call fcn.1401055a0
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140100400
lea rcx, [rbp + 0xa8]
call fcn.140095940
lea rcx, [rbp + 0x88]
call fcn.140100c80
cmp dword [rsp + 0x78], edi
je 0x140107f9d
movups xmm0, xmmword [0x1403289b8]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [0x1403289c8]
movups xmmword [rbp - 0x30], xmm1
mov eax, dword [0x1403289d8]
mov dword [rbp - 0x20], eax
movzx eax, word [0x1403289dc]
mov word [rbp - 0x1c], ax
movzx eax, byte [0x1403289de]
mov byte [rbp - 0x1a], al
mov ecx, edi
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140107d82
movdqa xmm5, xmmword [0x1402d9220]
movdqa xmm4, xmmword [0x140328a10]
movdqa xmm6, xmmword [str.4444]
movdqa xmm0, xmmword [str.3333333333333333R]
movdqa xmmword [rbp + 0xd0], xmm0
lea rdx, [rbp - 0x3c]
mov r8d, dword [rbp + 0xd0]
nop
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 0x140107c80
cmp ecx, 0x27
jge 0x140107dbc
movsxd rax, ecx
lea r8, [rbp - 0x40]
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 0x140107d90
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.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]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rbp - 0x80]
mov r8, qword [rbp - 0x70]
cmp qword [rbp - 0x68], 7
jbe 0x140107df6
mov rdx, qword [rbp - 0x80]
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 eax, dword [str.vFGYE8]
mov dword [rbp + 0x158], eax
movzx eax, word [0x1403289e4]
mov word [rbp + 0x15c], ax
mov byte [rbp + 0x158], 0x45
xor byte [rbp + 0x159], 0x34
xor byte [rbp + 0x15a], 0x35
xor byte [rbp + 0x15b], 0x36
xor byte [rbp + 0x15c], 0x37
xor byte [rbp + 0x15d], 0x38
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rdi
lea rax, [rbp + 0x158]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140107e70
lea rdx, [rbp + 0x158]
mov rcx, rsi
call fcn.1400658e0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140107eca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140107ec5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140107f7b
call fcn.1402c1be4
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], di
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14010859c
mov rdi, qword [rsp + 0x68]
xor r15d, r15d
cmp rbx, rdi
je 0x140107f4e
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140107f30
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140107f2b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140107f7b
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 0x140107ef5
mov rbx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x140107f82
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140107f82
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 + 0x60], xmm0
mov qword [rsp + 0x70], r15
jmp 0x14010859c
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
movzx eax, word [0x1403289e8]
mov word [rbp + 0x158], ax
cmp byte [0x1403289e9], 0
je 0x140107fdd
mov byte [rbp + 0x158], 0xa
xor byte [rbp + 0x159], 0x34
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
lea rax, [rbp + 0x158]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140108000
lea rdx, [rbp + 0x158]
lea rcx, [rbp - 0x60]
call fcn.1400658e0
nop
mov r15, qword [rsp + 0x60]
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x10], rax
mov r13, qword [rbp - 0x60]
cmp r15, rax
je 0x1401084be
movzx ebx, byte [rbp + 0x158]
lea r14, vtable.std::codecvt_utf8_wchar_t__1114111__0_.0
lea rcx, 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], rcx
mov cl, 1
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_
mov qword [rbp + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x20], 0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], di
mov word [rbp + 0x68], 0
mov byte [rbp + 0x6a], 0
mov ecx, 0x40
call fcn.1402c215c
mov rsi, rax
mov qword [rbp + 0xd0], rax
test rax, rax
je 0x1401080b8
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], r14
jmp 0x1401080bb
mov rsi, rdi
mov qword [rbp + 0x60], rdi
mov qword [rbp + 8], rsi
mov rcx, qword [rbp + 0x18]
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 0x140108107
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__]
xor esi, esi
mov dword [rdi + 0x20], esi
lea rcx, [rdi + 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 + 0x18]
cmp rcx, rdi
je 0x140108139
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x14010812c
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
mov qword [rbp + 0x18], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
test rdi, rdi
je 0x14010815d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x14010815d
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
mov qword [rbp + 0x70], rsi
mov r8, r15
cmp qword [r15 + 0x18], 7
jbe 0x14010816e
mov r8, qword [r15]
mov rax, qword [r15 + 0x10]
lea r9, [r8 + rax*2]
lea rdx, [rbp - 0x40]
lea rcx, [rbp]
call fcn.140108fd0
nop
movabs r8, 0x7fffffffffffffff
mov rax, r8
mov r14, qword [rbp - 0x30]
sub rax, r14
mov rdx, qword [rbp - 0x50]
cmp rax, rdx
jb 0x1401085cc
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 0xf
seta byte [rbp + 0x158]
mov r12, qword [rbp - 0x40]
cmova rax, r12
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rcx, r13
mov qword [rsp + 0x50], rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0x88], xmm0
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rsi
lea r13, [rdx + r14]
mov edi, reloc.WS2_32.dll_ntohs
lea rsi, [rbp + 0x88]
cmp r13, rdi
jbe 0x140108289
mov rdi, r13
or rdi, 0xf
cmp rdi, r8
jbe 0x140108223
mov rdi, r8
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x14010824a
cmp rdi, 0x16
mov ecx, reloc.WLDAP32.dll_Ordinal_22
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14010826d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1401085d2
mov rcx, rax
call fcn.1402c215c
test rax, rax
je 0x140108518
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
mov rax, qword [rbp - 0x18]
jmp 0x140108282
test rcx, rcx
je 0x140108280
call fcn.1402c215c
mov rsi, rax
mov rax, qword [rbp - 0x18]
jmp 0x140108282
xor esi, esi
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x98], r13
mov qword [rbp + 0xa0], rdi
mov r8, r14
mov rdx, rax
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [r14 + rsi]
mov r8, qword [rbp - 0x50]
mov rdx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + r13], 0
lea r9, [rbp + 0x88]
mov rsi, qword [rbp + 0x88]
mov r13, qword [rbp + 0xa0]
cmp r13, 0xf
cmova r9, rsi
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
mov r14, qword [rbp + 0x98]
cmp r14, rax
ja 0x14010832f
lea rax, [rcx + r14]
mov qword [rsp + 0x40], rax
lea rdi, [rsp + 0x30]
cmp rdx, 0xf
cmova rdi, qword [rsp + 0x30]
add rcx, rdi
mov r8, r14
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [r14 + rdi]
mov rcx, qword [rsp + 0x50]
mov byte [rax + rcx], 0
jmp 0x140108353
mov qword [rsp + 0x20], r14
movzx r8d, bl
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14007a470
mov r13, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0x88]
cmp r13, 0xf
jbe 0x14010838b
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140108382
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140108518
mov rcx, rsi
call fcn.1402c1be4
nop
cmp byte [rbp + 0x158], 0
je 0x1401083ca
mov rdx, qword [rbp - 0x28]
inc rdx
mov rax, r12
cmp rdx, 0x1000
jb 0x1401083c1
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14010851f
mov rcx, r12
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], rax
mov rdx, qword [rbp + 0x58]
cmp rdx, 7
jbe 0x140108415
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140108410
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140108526
call fcn.1402c1be4
xor edi, edi
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], di
mov rdx, qword [rbp + 0x38]
cmp rdx, 0xf
jbe 0x140108462
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010845d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140108526
call fcn.1402c1be4
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x20], dil
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140108497
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x140108497
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
add r15, 0x20
mov r13, qword [rbp - 0x60]
cmp r15, qword [rbp - 0x10]
jne 0x14010803d
mov rsi, qword [rbp + 0x140]
mov r14, qword [rbp + 0x150]
mov r12, qword [rbp + 0x148]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0x40], rdi
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], rdx
mov byte [rsp + 0x30], 0
mov rax, qword [rbp - 0x48]
cmp rax, rdx
jbe 0x14010853a
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x14010852d
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010852d
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]
nop
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]
nop
mov rcx, r13
call fcn.1402c1be4
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140108575
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140108570
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140108570
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402c1be4
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
lea rcx, [rbp - 0x80]
call fcn.140095940
lea rcx, [rsp + 0x60]
call fcn.140100c80
nop
mov rcx, r12
call fcn.140095940
nop
mov rcx, r14
call fcn.140095940
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x1e0]
add rsp, 0x1f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14006d930
nop
call fcn.14006d8f0
int3