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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14016e080]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx eax, byte [0x14037f464]
test al, al
jne 0x140064664
cmp qword [0x14033f820], 0xffffffffffffffff
je 0x1400648d0
xorps xmm0, xmm0
lea rdx, str.km.press_f6__r_n
xorps xmm1, xmm1
lea rcx, [rsp + 0x38]
mov r8d, reloc.WS2_32.dll_recv
movups xmmword [rsp + 0x38], xmm0
movdqu xmmword [rsp + 0x48], xmm1
call fcn.14000c2b0
cmp qword [rsp + 0x50], 0xf
lea rdx, [rsp + 0x38]
mov r8d, dword [rsp + 0x48]
cmova rdx, qword [rsp + 0x38]
xor ebx, ebx
mov rcx, qword [0x14033f820]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x38]
call fcn.14000bc30
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140114480
add rsp, 0x60
pop rbx
ret
cmp al, 1
jne 0x1400648d0
mov qword [rsp + 0x70], rbp
xor ebx, ebx
mov qword [rsp + 0x78], rsi
mov eax, ebx
mov qword [rsp + 0x80], rdi
lea rsi, [0x140340048]
nop dword [rax]
cmp byte [rax + rsi + 2], 0x3f
je 0x1400646e5
inc rax
cmp rax, 0xa
jl 0x140064690
mov ecx, ebx
mov rax, rbx
cmp byte [rax + rsi + 2], bl
je 0x1400646dd
inc ecx
inc rax
cmp rax, 0xa
jl 0x1400646a5
movzx eax, word [0x140340053]
movsd xmm0, qword [0x14034004b]
mov word [0x140340052], ax
mov byte [0x140340053], 0x3f
movsd qword [0x14034004a], xmm0
jmp 0x1400646e5
movsxd rax, ecx
mov byte [rax + rsi + 2], 0x3f
mov rdi, qword [0x140341290]
lea rbp, [0x140340c18]
test rdi, rdi
je 0x1400647b8
inc dword [0x14033fb58]
mov dword [0x14033fb5c], 0x123c2c2f
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsd xmm0, qword [0x140340049]
lea rdx, [0x14033fb50]
mov rcx, qword [0x140341290]
xor r9d, r9d
mov dword [0x14033fb54], eax
movzx eax, byte [0x140340048]
mov byte [0x14033fb60], al
movzx eax, word [0x140340051]
lea r8d, [r9 + 0x1c]
mov word [0x14033fb69], ax
movzx eax, byte [0x140340053]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov byte [0x14033fb6b], al
movsd qword [0x14033fb61], xmm0
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140341290]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140340400]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rdi, qword [0x140341290]
mov rax, rbx
nop dword [rax + rax]
cmp byte [rax + rsi + 2], 0x3f
lea ecx, [rbx + 1]
je 0x1400647d7
inc rax
mov ebx, ecx
cmp rax, 0xa
jl 0x1400647c0
jmp 0x140064800
movsxd rdx, ecx
mov eax, 0xa
sub eax, ebx
movsxd rcx, ebx
movsxd r8, eax
lea rax, [0x14034004a]
add rdx, rax
add rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [0x140340053], 0
mov rsi, qword [rsp + 0x78]
test rdi, rdi
mov rdi, qword [rsp + 0x80]
je 0x1400648cb
inc dword [0x14033fb58]
mov dword [0x14033fb5c], 0x123c2c2f
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsd xmm0, qword [0x140340049]
lea rdx, [0x14033fb50]
mov rcx, qword [0x140341290]
xor r9d, r9d
mov dword [0x14033fb54], eax
movzx eax, byte [0x140340048]
mov byte [0x14033fb60], al
movzx eax, word [0x140340051]
lea r8d, [r9 + 0x1c]
mov word [0x14033fb69], ax
movzx eax, byte [0x140340053]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov byte [0x14033fb6b], al
movsd qword [0x14033fb61], xmm0
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140341290]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140340400]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rbp, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140114480
add rsp, 0x60
pop rbx
ret