Function at 0x140001070
Capabilities:
Create directory
Create tcp socket
Download and write a file
Initialize winsock library
Receive and write data from server to client
Receive data
Receive data on socket
Resolve dns
Start tcp server
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push r14
push r15
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov ecx, 0x202
lea rdx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 1
mov r8d, 6
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
xorps xmm0, xmm0
mov dword [rsp + 0x7c], 2
xorps xmm1, xmm1
mov dword [rbp - 0x80], 1
xor r15d, r15d
mov dword [rbp - 0x7c], 6
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], r15
lea r8, [rsp + 0x78]
mov dword [rsp + 0x78], 1
lea rdx, str.8126
xor ecx, ecx
movdqu xmmword [rbp - 0x78], xmm0
mov r14, rax
movdqu xmmword [rbp - 0x68], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rdx, qword [rsp + 0x40]
mov r8d, 0x30
mov rcx, r14
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
mov edx, 5
mov rcx, r14
call qword [sym.imp.WS2_32.dll_listen]
lea rcx, str.waiting_for_connection..._n
mov dword [rsp + 0x5c], reloc.WS2_32.dll_recv
call fcn.140001010
lea r8, [rsp + 0x5c]
mov rcx, r14
lea rdx, [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_accept]
mov ecx, dword [rsp + 0x4c]
mov rsi, rax
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, str.connection_from__s_accepted__n
call fcn.140001010
xorps xmm0, xmm0
lea rcx, [rbp + 0x150]
xor eax, eax
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x70], rax
movups xmmword [rsp + 0x60], xmm0
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x60]
mov r8d, 0x18
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x18
jne 0x140001322
mov qword [rsp + 0x380], rbx
mov qword [rsp + 0x388], rdi
nop dword [rax]
mov r8d, dword [rsp + 0x74]
lea rdx, [rbp + 0x150]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, dword [rsp + 0x74]
jne 0x1400012cf
mov r8, qword [rsp + 0x6c]
lea rdx, [rbp + 0x150]
lea rcx, str.Recieving__s___i_bytes_..._n
call fcn.140001010
cmp byte [rbp + 0x151], 0x3a
jne 0x14000121a
mov byte [rbp + 0x151], 0x78
test byte [rsp + 0x60], 0x10
lea rcx, [rbp + 0x150]
je 0x140001235
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x1400012cf
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdx, qword [rsp + 0x6c]
mov rbx, r15
mov dword [rsp + 0x58], r15d
mov rdi, rax
test rdx, rdx
je 0x1400012c6
mov rcx, rdx
mov r8d, 0x1000000
sub edx, ebx
sub rcx, rbx
cmp rcx, r8
mov rcx, rsi
cmovb r8d, edx
xor r9d, r9d
lea rdx, [0x140005670]
call qword [sym.imp.WS2_32.dll_recv]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r15
mov r8d, eax
lea rdx, [0x140005670]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x6c]
add rbx, rax
cmp rbx, rdx
jb 0x140001270
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea rcx, [rbp + 0x150]
xor eax, eax
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x70], rax
movups xmmword [rsp + 0x60], xmm0
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x60]
mov r8d, 0x18
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0x18
je 0x1400011d0
mov rdi, qword [rsp + 0x388]
mov rbx, qword [rsp + 0x380]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140001370
mov rsi, qword [rsp + 0x390]
add rsp, 0x360
pop r15
pop r14
pop rbp
ret