Function at 0x180001540
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 [0x18000e010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, qword [0x18000eab8]
test edx, edx
je 0x180001916
sub edx, 1
je 0x180001695
sub edx, 3
je 0x18000165c
cmp edx, 1
jne 0x18000183c
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 0x180001979
add edi, eax
cmp edi, 4
jl 0x1800015a0
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 0x180001625
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 0x180001979
add ebx, eax
cmp ebx, edi
jl 0x1800015f0
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.180008000
test al, al
jne 0x18000183c
jmp 0x18000183e
xor ebx, ebx
mov dword [rsi + 0x20], ebx
add rsi, 0x140
lea rcx, [rsi + 8]
call fcn.1800034e0
test rax, rax
jne 0x18000183c
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 0x18000183c
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
xor ebx, ebx
mov qword [rbp + 0x2f], rbx
mov qword [rbp + 0x37], recv
mov byte [rbp + 0x1f], bl
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.1800081b0
test al, al
jne 0x180001707
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x180001979
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001974
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000190f
call fcn.1800083bc
xor al, al
jmp 0x18000183e
xorps xmm0, xmm0
mov qword [rbp - 0x19], rbx
movups xmmword [rbp - 0x29], xmm0
cmp qword [0x18000eac8], 0
je 0x180001867
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 0x180001ad5
mov qword [rbp - 0x11], recv
cmp rsi, 0x10
jae 0x180001768
mov qword [rbp - 0x19], rsi
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x29], xmm0
jmp 0x1800017f7
mov rax, rsi
or rax, 0xf
cmp rax, rdi
jbe 0x18000179d
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.180008380
test rax, rax
je 0x1800017c8
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1800017dc
mov rdi, rax
mov ecx, socket
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x1800017cf
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180001ac9
jmp 0x180001782
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1800017dc
call fcn.180008380
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.180004660
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x18000183c
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001837
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000190f
call fcn.1800083bc
mov al, 1
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.180008360
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], recv
mov ecx, 0x20
call fcn.180008380
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 [0x18000a6a0]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x18000a6a8]
mov dword [rax + 0x18], ecx
movzx eax, byte [0x18000a6ac]
mov byte [rdx + 0x1c], al
mov byte [rdx + 0x1d], 0
mov r8d, 2
lea rdx, [rbp - 0x29]
mov rcx, rsi
call fcn.180008080
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x18000183c
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001837
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180001837
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], recv
mov byte [rbp + 0x1f], bl
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call fcn.1800081b0
test al, al
jne 0x180001980
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x180001979
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001974
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001abc
call fcn.1800083bc
xor al, al
jmp 0x18000183e
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 0x180001ac3
mov qword [rbp - 0x11], recv
cmp r14, 0x10
jae 0x1800019d3
mov qword [rbp - 0x19], r14
movups xmm0, xmmword [r15]
movups xmmword [rbp - 0x29], xmm0
jmp 0x180001a62
mov rax, r14
or rax, 0xf
cmp rax, rdi
jbe 0x180001a08
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.180008380
test rax, rax
je 0x180001a33
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x180001a47
mov rdi, rax
mov ecx, socket
cmp rax, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x180001a3a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180001acf
jmp 0x1800019ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x180001a47
call fcn.180008380
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.180005eb0
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.180008080
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x18000183c
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001837
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180001837
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.180001460
nop
call fcn.1800013c0
nop
call fcn.1800013c0
nop
call fcn.180001460
int3