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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x2860
call fcn.14002b060
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140041008]
xor rax, rsp
mov qword [rsp + 0x2850], rax
mov r15d, r8d
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rdx + 0x10]
cmp r14d, r8d
jg 0x14000b86b
test r8d, r8d
js 0x14000b86b
mov rax, qword [rcx + 0x10]
xor r12d, r12d
cmp byte [rax + 0x118], r12b
je 0x14000b61d
lea rbx, [rax + 0xf8]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000c360
nop
mov rcx, qword [rdi + 0x18]
add rcx, 0x20
cmp rcx, rax
je 0x14000b5f4
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.1400020c0
nop
lea rcx, [rsp + 0x30]
call fcn.140001e00
mov ecx, 0x38
call fcn.14000f1e4
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rax
call fcn.14000d550
mov rbx, rax
jmp 0x14000b64d
mov ecx, 0x38
call fcn.14000f1e4
mov rbx, rax
mov qword [rsp + 0x20], rax
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rax + 0x10], r12
mov byte [rax], r12b
mov byte [rax + 0x20], r12b
mov qword [rax + 0x28], r12
mov dword [rax + 0x30], 0x19000
xor bpl, bpl
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
jb 0x14000b65e
mov rsi, qword [rsi]
mov r8d, eax
mov rdx, rsi
mov rcx, rbx
call fcn.14000d6b0
test al, al
je 0x14000b804
mov esi, r15d
sub esi, r14d
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14000b68f
mov rax, qword [rcx]
mov r8d, r15d
mov edx, r14d
call qword [rax + htons]
xor edx, edx
mov r8d, 0x2800
lea rcx, [rsp + 0x50]
call fcn.140012ac0
test esi, esi
jle 0x14000b7d0
mov rax, qword [rdi]
movzx r14d, byte [rax + 0x50]
test r14b, r14b
je 0x14000b784
movsxd rcx, dword [rax + 0x4c]
xor r9d, r9d
mov r8d, 0x2800
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbp, eax
test eax, eax
jle 0x14000b784
test r14b, r14b
je 0x14000b784
cmp byte [rbx + 0x20], 0
jne 0x14000b6fe
mov r8, rbp
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002f40
jmp 0x14000b759
mov r14, rbp
mov r9, qword [rbx + 0x28]
cmp byte [r9 + 0x20], 0
je 0x14000b77b
mov r9, qword [r9 + 0x28]
mov r8, rbp
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.14001b000
cmp rbp, rax
sete al
test al, al
je 0x14000b77b
movzx eax, al
mov ecx, dword [0x1400434fc]
add ecx, eax
mov dword [0x1400434fc], ecx
mov eax, dword [rbx + 0x30]
cmp ecx, eax
jl 0x14000b759
sub ecx, eax
mov dword [0x1400434fc], ecx
mov rcx, qword [rbx + 0x28]
mov rcx, qword [rcx + 0x28]
call fcn.14001c450
sub esi, ebp
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14000b6a1
mov rax, qword [rcx]
mov edx, r15d
sub edx, esi
mov r8d, r15d
call qword [rax + htons]
jmp 0x14000b6a1
mov dword [rdi + 8], 4
jmp 0x14000b78b
mov dword [rdi + 8], 3
mov rbp, qword [rdi]
add rbp, 0x28
cmp byte [rbp + 0x28], 0
jne 0x14000b7a0
mov eax, dword [rbp + 0x24]
cmp eax, 0xffffffff
je 0x14000b7ad
movsxd rax, dword [rbp + 0x24]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov byte [rbp + 0x28], 0
xor r8d, r8d
lea rdx, [0x14003899f]
mov rcx, rbp
call fcn.140001f90
mov dword [rbp + 0x20], r12d
mov dword [rbp + 0x24], 0xffffffff
test esi, esi
sete bpl
test bpl, bpl
je 0x14000b84b
mov rax, qword [rdi + 0x10]
cmp byte [rax + 0x118], 0
jne 0x14000b84b
mov rcx, qword [rdi + 0x18]
add rcx, 0x20
cmp rcx, rbx
je 0x14000b84b
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
call fcn.1400020c0
jmp 0x14000b84b
mov dword [rdi + 8], 4
mov rdi, qword [rdi]
cmp byte [rdi + 0x50], 0
jne 0x14000b81c
mov eax, dword [rdi + 0x4c]
cmp eax, 0xffffffff
je 0x14000b829
movsxd rax, dword [rdi + 0x4c]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov byte [rdi + 0x50], 0
xor r8d, r8d
lea rdx, [0x14003899f]
lea rcx, [rdi + 0x28]
call fcn.140001f90
mov dword [rdi + 0x48], r12d
mov dword [rdi + 0x4c], 0xffffffff
test rbx, rbx
je 0x14000b865
mov rcx, rbx
call fcn.14000d620
mov edx, 0x38
mov rcx, rbx
call fcn.14000f5b0
movzx eax, bpl
jmp 0x14000b8b7
mov dword [rcx + 8], 3
mov rbx, qword [rcx]
cmp byte [rbx + 0x50], 0
jne 0x14000b883
mov eax, dword [rbx + 0x4c]
cmp eax, 0xffffffff
je 0x14000b890
movsxd rax, dword [rbx + 0x4c]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov byte [rbx + 0x50], 0
xor r8d, r8d
lea rdx, [0x14003899f]
lea rcx, [rbx + 0x28]
call fcn.140001f90
xor r12d, r12d
mov dword [rbx + 0x48], r12d
mov dword [rbx + 0x4c], 0xffffffff
xor al, al
mov rcx, qword [rsp + 0x2850]
xor rcx, rsp
call fcn.14000f1c0
add rsp, 0x2860
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret