Function at 0x140020f40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2b8]
sub rsp, 0x390
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rax - 0x88], xmm11
mov rax, qword [0x1401eb7c0]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r14, rcx
mov qword [rbp - 0x68], rcx
mov dword [rsp + 0x40], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r13d, r13d
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov dword [rsp + 0x40], 1
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], r13
xor r8d, r8d
lea rdx, [0x140103a86]
lea rcx, [rbp + 8]
call fcn.14006d460
nop
movzx eax, word [0x1401d6b48]
mov word [rsp + 0x30], ax
movups xmm0, xmmword [str.E_V]
movups xmm1, xmmword [0x1401d92b8]
mov eax, dword [0x1401d92d8]
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm1
mov dword [rbp - 0x70], eax
movups xmm0, xmmword [0x1401d92c8]
movups xmmword [rbp - 0x80], xmm0
cmp byte [0x1401d6b49], r13b
je 0x14002102c
mov byte [rsp + 0x30], WSAStartup
xor byte [rsp + 0x31], 0x33
mov r8d, r13d
movdqa xmm9, xmmword [0x1401d9da0]
movdqa xmm8, xmmword [0x1401d9d20]
movdqa xmm11, xmmword [0x1401d9e10]
movdqa xmm10, xmmword [0x1401d9d40]
movdqa xmm7, xmmword [0x1401d9f10]
mov r12d, dword [reloc.WS2_32.dll_accept]
cmp r12d, 2
jl 0x140021175
movdqa xmmword [rsp + 0x50], xmm11
lea rcx, [rsp + 0x64]
mov edx, dword [rsp + 0x50]
nop dword [rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm8
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm7
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm7
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm8
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm7
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm7
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
psubd xmm2, xmm0
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x30
jl 0x140021080
cmp r8d, 0x34
jge 0x1400211b3
movsxd rax, r8d
lea r9, [rsp + 0x60]
add r9, rax
mov eax, 0x92492493
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x38
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x34
jl 0x140021180
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rbx, rax
test rax, rax
jne 0x14002125c
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x14002120b
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021205
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021c79
call fcn.1400e6550
nop
mov rax, r14
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400e6530
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r8, rbx
mov edx, 0x100
lea rcx, [rbp + 0x120]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x1400212c4
nop word [rax + rax]
lea rax, [rbp + 0x120]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140021290
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 8]
call fcn.140065cc0
mov r8, rbx
mov edx, 0x100
lea rcx, [rbp + 0x120]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140021280
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp + 0x30]
call fcn.1400e773e
lea rax, [0x1401d90e8]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0xc0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov r15d, 9
mov dword [rsp + 0x40], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x30], rbx
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x2c], edx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x40], rax
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 0xf
cmova rdx, qword [rbp + 8]
mov r9d, 2
mov r8, qword [rbp + 0x18]
lea rcx, [rbp + 0x40]
call fcn.140069720
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x58], 0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r13
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x18], 0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x38], 0
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x30]
call fcn.140073b90
mov rdx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x140021b0a
movdqa xmm6, xmmword [0x1401d9d30]
nop dword [rax + rax]
lea rdi, [rbp - 0x58]
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
cmova rdi, r8
add rdi, qword [rbp - 0x48]
lea rbx, [rbp - 0x58]
cmp rdx, 0xf
cmova rbx, r8
add rbx, qword [rbp - 0x48]
lea rcx, [rbp - 0x58]
cmp rdx, 0xf
cmova rcx, r8
mov r8b, 0xa
mov rdx, rbx
call fcn.140084990
mov r8, rax
cmp rax, rbx
je 0x140021476
inc rax
cmp rax, rbx
je 0x140021476
nop
movzx ecx, byte [rax]
cmp cl, 0xa
je 0x14002146e
mov byte [r8], cl
inc r8
inc rax
cmp rax, rbx
jne 0x140021460
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rax, qword [rbp - 0x58]
mov r9, r8
sub r9, rax
sub rdi, r8
mov rbx, qword [rbp - 0x48]
mov rax, rbx
sub rax, r9
cmp rax, rdi
cmovb rdi, rax
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rcx, qword [rbp - 0x58]
add rcx, r9
sub rbx, rdi
mov r8, rbx
sub r8, r9
inc r8
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x48], rbx
lea rdi, [rbp - 0x58]
mov r8, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
cmova rdi, r8
add rdi, rbx
lea rax, [rbp - 0x58]
cmp rdx, 0xf
cmova rax, r8
add rbx, rax
lea rcx, [rbp - 0x58]
cmp rdx, 0xf
cmova rcx, r8
mov r8b, reloc.WS2_32.dll_listen
mov rdx, rbx
call fcn.140084990
mov r8, rax
cmp rax, rbx
je 0x14002152b
inc rax
cmp rax, rbx
je 0x14002152b
movzx ecx, byte [rax]
cmp cl, 0xd
je 0x140021523
mov byte [r8], cl
inc r8
inc rax
cmp rax, rbx
jne 0x140021515
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rax, qword [rbp - 0x58]
mov r9, r8
sub r9, rax
sub rdi, r8
mov rbx, qword [rbp - 0x48]
mov rax, rbx
sub rax, r9
cmp rax, rdi
cmovb rdi, rax
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rcx, qword [rbp - 0x58]
add rcx, r9
sub rbx, rdi
mov r8, rbx
sub r8, r9
inc r8
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x48], rbx
mov eax, dword [0x1401d82fc]
mov dword [rsp + 0x38], eax
movzx ecx, word [0x1401d8300]
mov word [rsp + 0x3c], cx
movzx eax, byte [0x1401d8302]
mov byte [rsp + 0x38], Ordinal_79
xor byte [rsp + 0x39], 0x33
xor byte [rsp + 0x3a], 0x34
xor byte [rsp + 0x3b], 0x35
xor cl, 0x36
mov byte [rsp + 0x3c], cl
xor byte [rsp + 0x3d], 0x37
xor al, 0x38
mov byte [rsp + 0x3e], al
lea rcx, [rsp + 0x38]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400215d0
lea rcx, [rbp - 0x58]
mov rdi, qword [rbp - 0x58]
mov rsi, qword [rbp - 0x40]
cmp rsi, 0xf
cmova rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov rdx, rbx
call fcn.14006d0c0
test rax, rax
jne 0x140021777
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
cmp rbx, 6
jb 0x140021c80
lea rax, [rbx - 6]
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp - 0x58]
cmp rsi, 0xf
cmova rdx, rdi
add rdx, 6
lea rcx, [rsp + 0x60]
call fcn.14006d460
or r15d, 4
mov dword [rsp + 0x40], r15d
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x140021694
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002168f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021b43
call fcn.1400e6550
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x18], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp - 8], xmm1
lea rdi, [rbp - 0x18]
movq r8, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rdx, xmm0
cmp rdx, 0xf
cmova rdi, r8
movq rcx, xmm1
add rdi, rcx
lea rbx, [rbp - 0x18]
cmp rdx, 0xf
cmova rbx, r8
add rbx, rcx
lea rcx, [rbp - 0x18]
cmp rdx, 0xf
cmova rcx, r8
mov r8b, reloc.WLDAP32.dll_Ordinal_32
mov rdx, rbx
call fcn.140084990
mov r8, rax
cmp rax, rbx
je 0x140021719
inc rax
cmp rax, rbx
je 0x140021719
movzx ecx, byte [rax]
cmp cl, 0x20
je 0x140021711
mov byte [r8], cl
inc r8
inc rax
cmp rax, rbx
jne 0x140021703
lea rax, [rbp - 0x18]
cmp qword [rbp], 0xf
cmova rax, qword [rbp - 0x18]
mov r9, r8
sub r9, rax
sub rdi, r8
mov rbx, qword [rbp - 8]
mov rax, rbx
sub rax, r9
cmp rax, rdi
cmovb rdi, rax
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0xf
cmova rcx, qword [rbp - 0x18]
add rcx, r9
sub rbx, rdi
mov r8, rbx
sub r8, r9
inc r8
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 8], rbx
mov rsi, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x58]
movsd xmm0, qword [str.aVFW_vLWYYO]
movsd qword [rsp + 0x50], xmm0
mov eax, dword [0x1401d92a0]
mov dword [rsp + 0x58], eax
movzx eax, word [0x1401d92a4]
mov word [rsp + 0x5c], ax
cmp byte [0x1401d92a5], 0
je 0x1400218ce
mov ecx, r13d
cmp r12d, 2
jl 0x140021891
movdqa xmm1, xmm8
punpckldq xmm1, xmm8
pmuldq xmm1, xmm7
movdqa xmm0, xmm8
punpckhdq xmm0, xmm8
pmuldq xmm0, xmm7
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm8
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
movdqa xmm1, xmm8
psubd xmm1, xmm0
andps xmm1, xmm9
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd eax, xmm11
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, dword [str.aVFW_vLWYYO]
xorps xmm1, xmm0
movd dword [rsp + 0x50], xmm1
movdqa xmm1, xmm6
punpckldq xmm1, xmm6
pmuldq xmm1, xmm7
movdqa xmm0, xmm6
punpckhdq xmm0, xmm6
pmuldq xmm0, xmm7
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm6
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm10
movdqa xmm2, xmm6
psubd xmm2, xmm0
andps xmm2, xmm9
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x54]
xorps xmm2, xmm1
movd dword [rsp + 0x54], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop dword [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, 0x32
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xe
jl 0x1400218a0
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400218e0
lea rcx, [rbp - 0x58]
cmp rsi, 0xf
cmova rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov rdx, rbx
call fcn.14006d0c0
test rax, rax
jne 0x140021ac0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
cmp rbx, 0xd
jb 0x140021c80
lea rax, [rbx - 0xd]
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp - 0x58]
cmp rsi, 0xf
cmova rdx, rdi
add rdx, 0xd
lea rcx, [rsp + 0x60]
call fcn.14006d460
or r15d, 2
mov dword [rsp + 0x40], r15d
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x14002199c
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021997
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021b43
call fcn.1400e6550
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x28], xmm1
lea rdi, [rbp - 0x38]
movq r8, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rdx, xmm0
cmp rdx, 0xf
cmova rdi, r8
movq rcx, xmm1
add rdi, rcx
lea rbx, [rbp - 0x38]
cmp rdx, 0xf
cmova rbx, r8
add rbx, rcx
lea rcx, [rbp - 0x38]
cmp rdx, 0xf
cmova rcx, r8
mov r8b, reloc.WLDAP32.dll_Ordinal_32
mov rdx, rbx
call fcn.140084990
mov r8, rax
cmp rax, rbx
je 0x140021a26
inc rax
cmp rax, rbx
je 0x140021a26
nop dword [rax + rax]
movzx ecx, byte [rax]
cmp cl, 0x20
je 0x140021a1e
mov byte [r8], cl
inc r8
inc rax
cmp rax, rbx
jne 0x140021a10
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rax, qword [rbp - 0x38]
mov r9, r8
sub r9, rax
sub rdi, r8
mov rbx, qword [rbp - 0x28]
mov rax, rbx
sub rax, r9
cmp rax, rdi
cmovb rdi, rax
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova rcx, qword [rbp - 0x38]
add rcx, r9
sub rbx, rdi
mov r8, rbx
sub r8, r9
inc r8
lea rdx, [rcx + rdi]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x28], rbx
test rbx, rbx
je 0x140021ac0
mov rbx, qword [r14 + 8]
cmp rbx, qword [r14 + 0x10]
je 0x140021aad
mov qword [rbp - 0x60], rbx
lea rdx, [rbp - 0x18]
mov rcx, rbx
call fcn.140065f10
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp - 0x38]
call fcn.140065f10
nop
add qword [r14 + 8], 0x40
jmp 0x140021ac0
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x18]
mov rdx, rbx
mov rcx, r14
call fcn.140073ef0
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x30]
call fcn.140073b90
mov rdx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x140021410
lea rbx, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x140021b4f
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021b4a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021b4a
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 fcn.1400e6550
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x140021b9d
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021b98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021b98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6550
mov qword [rbp - 8], r13
mov qword [rbp], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x140021beb
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021be6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021be6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6550
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x58], 0
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rbx
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x40]
call fcn.140065bb0
lea rcx, [rbp + 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xc0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x14002120b
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021205
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140021205
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400699c0
int3