Function at 0x140047e20
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:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x14018f040]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, edx
mov ebx, ecx
xor r15d, r15d
cmp byte [0x14019014d], r15b
je 0x14004840e
cmp byte [0x14019014e], r15b
je 0x140047f58
cmp qword [0x1401909e0], r15
jbe 0x14004840e
inc dword [0x140190198]
mov dword [0x14019019c], 0xaede7345
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [0x140190194], eax
movsx eax, bx
mov dword [0x14019015c], eax
movsx eax, di
mov dword [0x140190160], eax
movups xmm0, xmmword [0x140190158]
movaps xmmword [0x1401901a0], xmm0
movups xmm1, xmmword [0x140190168]
movaps xmmword [0x1401901b0], xmm1
movups xmm0, xmmword [0x140190178]
movaps xmmword [0x1401901c0], xmm0
movsd xmm1, qword [0x140190188]
movsd qword [0x1401901d0], xmm1
mov dword [rsp + 0x28], sendto
lea rax, [0x1401909d0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x48
lea rdx, [0x140190190]
mov rcx, qword [0x1401909e0]
call qword [sym.imp.WS2_32.dll_sendto]
mov qword [0x14019015c], r15
mov dword [rbp - 0x50], sendto
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x400
lea rdx, [0x1401905b0]
mov rcx, qword [0x1401909e0]
call qword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x14004840e
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
movdqa xmm1, xmmword [0x140182c50]
movdqu xmmword [rbp - 0x38], xmm1
mov byte [rbp - 0x48], r15b
lea r9, [rbp - 0x13]
test edi, edi
jns 0x140047fc0
neg edi
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [r9], dil
mov edi, edx
test edx, edx
jne 0x140047f80
dec r9
mov byte [r9], 0x2d
jmp 0x140047fe8
dec r9
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [r9], dil
mov edi, edx
test edx, edx
jne 0x140047fc0
lea r8, [rbp - 0x13]
mov rdx, r9
lea rcx, [rbp - 0x70]
call fcn.140063630
nop
lea r9, [rbp - 0x13]
test ebx, ebx
jns 0x140048040
neg ebx
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r9], bl
mov ebx, edx
test edx, edx
jne 0x140048010
dec r9
mov byte [r9], 0x2d
jmp 0x140048066
dec r9
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [r9], bl
mov ebx, edx
test edx, edx
jne 0x140048040
lea r8, [rbp - 0x13]
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.140063630
nop
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
sub rax, r8
mov r14d, 8
lea rsi, str.km.move_
cmp rax, r14
jb 0x140048116
lea rax, [r8 + 8]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x30]
lea rax, [0x140181338]
cmp rax, rbx
jbe 0x1400480d9
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x1400480d9
cmp rbx, rsi
ja 0x1400480d1
mov rdi, r15
jmp 0x1400480dc
mov rdi, rbx
sub rdi, rsi
jmp 0x1400480dc
mov rdi, r14
lea rcx, [rbx + 8]
inc r8
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rdi]
sub r14, rdi
lea rdx, [rsi + 8]
add rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x30]
jmp 0x14004812d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.140064890
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
mov r8d, 1
lea rdx, [0x140181328]
lea rcx, [rsp + 0x50]
call fcn.1400600d0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x18], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x28]
lea rcx, [rsp + 0x70]
call fcn.140062eb0
nop
mov r8d, 3
lea rdx, [0x140181324]
lea rcx, [rsp + 0x70]
call fcn.1400600d0
movups xmm6, xmmword [rax]
movups xmm7, xmmword [rax + 0x10]
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], sendto
mov byte [rax], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x140048211
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004820c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004820c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d790
movups xmmword [rbp - 0x48], xmm6
movups xmmword [rbp - 0x38], xmm7
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140048258
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048253
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048253
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d790
movdqa xmm0, xmmword [0x140182c50]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x1400482b0
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400482a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400482a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d790
movdqa xmm0, xmmword [0x140182c50]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400482f8
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400482eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400482eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d790
movdqa xmm0, xmmword [0x140182c50]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14004834b
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004833e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004833e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d790
movdqa xmm0, xmmword [0x140182c50]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140048394
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004838f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004838f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d790
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400483b0
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rcx, qword [0x140191868]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x14004840e
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048409
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048409
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d790
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14006d0a0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret