Function at 0x140001570
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, qword [0x14000cab8]
test edx, edx
je 0x140001946
sub edx, 1
je 0x1400016c5
sub edx, 3
je 0x14000168c
cmp edx, 1
jne 0x14000186c
xor ebx, ebx
mov edi, ebx
nop dword [rax]
mov r8d, 4
sub r8d, edi
movsxd rax, edi
lea rdx, [rbp + 0x17]
add rdx, rax
xor r9d, r9d
mov rcx, qword [rsi + 0x2248]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400019a9
add edi, eax
cmp edi, 4
jl 0x1400015d0
mov ecx, dword [rbp + 0x17]
call qword [sym.imp.WS2_32.dll_ntohl]
mov edi, eax
mov dword [rbp + 0x17], eax
test eax, eax
jle 0x140001655
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
movsxd rdx, ebx
add rdx, 0x248
add rdx, rsi
xor r9d, r9d
mov rcx, qword [rsi + 0x2248]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400019a9
add ebx, eax
cmp ebx, edi
jl 0x140001620
mov edi, dword [rbp + 0x17]
movsxd r8, edi
lea rdx, [rsi + 0x248]
lea rcx, [rsi + 0x140]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov eax, dword [rbp + 0x17]
add dword [rsi + 0x20], eax
mov edx, 6
mov rcx, rsi
call fcn.140005cf0
test al, al
jne 0x14000186c
jmp 0x14000186e
xor ebx, ebx
mov dword [rsi + 0x20], ebx
add rsi, 0x140
lea rcx, [rsi + 8]
call fcn.140003230
test rax, rax
jne 0x14000186c
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
xor r8d, r8d
lea edx, [rbx + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
jmp 0x14000186c
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
xor ebx, ebx
mov qword [rbp + 0x2f], rbx
mov qword [rbp + 0x37], send
mov byte [rbp + 0x1f], bl
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.140005ea0
test al, al
jne 0x140001737
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x1400019a9
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000193f
call fcn.1400060ac
xor al, al
jmp 0x14000186e
xorps xmm0, xmm0
mov qword [rbp - 0x19], rbx
movups xmmword [rbp - 0x29], xmm0
cmp qword [0x14000cac8], 0
je 0x140001897
mov qword [rbp - 0x11], rbx
lea r14, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0x10
cmovae r14, qword [rbp + 0x1f]
mov rsi, qword [rbp + 0x2f]
movabs rdi, 0x7fffffffffffffff
cmp rsi, rdi
ja 0x140001b05
mov qword [rbp - 0x11], send
cmp rsi, 0x10
jae 0x140001798
mov qword [rbp - 0x19], rsi
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x29], xmm0
jmp 0x140001827
mov rax, rsi
or rax, 0xf
cmp rax, rdi
jbe 0x1400017cd
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140006070
test rax, rax
je 0x1400017f8
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000180c
mov rdi, rax
mov ecx, socket
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x1400017ff
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001af9
jmp 0x1400017b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14000180c
call fcn.140006070
mov rbx, rax
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], rdi
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp - 0x29]
call fcn.140003d40
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x14000186c
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001867
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000193f
call fcn.1400060ac
mov al, 1
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140006050
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov qword [rbp - 0x11], send
mov ecx, 0x20
call fcn.140006070
mov rdx, rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x19], 0x1d
mov qword [rbp - 0x11], 0x1f
movups xmm0, xmmword [str.Initiate_a_CMD_session_first.]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140008658]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x140008660]
mov dword [rax + 0x18], ecx
movzx eax, byte [0x140008664]
mov byte [rdx + 0x1c], al
mov byte [rdx + 0x1d], 0
mov r8d, 2
lea rdx, [rbp - 0x29]
mov rcx, rsi
call fcn.140005d70
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x14000186c
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001867
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001867
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
xor ebx, ebx
mov qword [rbp + 0x2f], rbx
mov qword [rbp + 0x37], send
mov byte [rbp + 0x1f], bl
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.140005ea0
test al, al
jne 0x1400019b0
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x1400019a9
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001aec
call fcn.1400060ac
xor al, al
jmp 0x14000186e
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], rbx
lea r15, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0x10
cmovae r15, qword [rbp + 0x1f]
mov r14, qword [rbp + 0x2f]
movabs rdi, 0x7fffffffffffffff
cmp r14, rdi
ja 0x140001af3
mov qword [rbp - 0x11], send
cmp r14, 0x10
jae 0x140001a03
mov qword [rbp - 0x19], r14
movups xmm0, xmmword [r15]
movups xmmword [rbp - 0x29], xmm0
jmp 0x140001a92
mov rax, r14
or rax, 0xf
cmp rax, rdi
jbe 0x140001a38
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140006070
test rax, rax
je 0x140001a63
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140001a77
mov rdi, rax
mov ecx, socket
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140001a6a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001aff
jmp 0x140001a1d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001a77
call fcn.140006070
mov rbx, rax
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], rdi
lea r8, [r14 + 1]
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.140005280
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.140005d70
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x14000186c
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001867
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001867
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400014c0
nop
call fcn.140001420
nop
call fcn.140001420
nop
call fcn.1400014c0
int3