Function at 0x140006380
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
or rsi, 0xffffffffffffffff
mov r15d, r8d
mov rdi, rsi
mov r14d, edx
mov rbp, rcx
nop dword [rax + rax]
inc rdi
cmp byte [rdi + rcx], 0
jne 0x1400012a0
add edi, 0x1e
cmp dword [0x140028b10], 0
je 0x1400012b8
add edi, 8
mov edx, r8d
mov ecx, edi
call fcn.1400062e0
mov rbx, rax
mov r8, rsi
mov rax, qword [rax]
mov byte [rax], 3
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], 0
mov eax, edi
mov rcx, qword [rbx]
sar eax, 8
inc rcx
mov qword [rbx], rcx
mov byte [rcx], al
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], dil
sub dil, 5
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], dil
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], 0xe0
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], 0
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], 0
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], 0
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], 0
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], 0
mov rcx, qword [rbx]
inc rcx
mov qword [rbx], rcx
movups xmm0, xmmword [str.Cookie:_mstshash]
movups xmmword [rcx], xmm0
movzx eax, byte [0x140023f70]
mov byte [rcx + 0x10], al
mov rcx, qword [rbx]
add rcx, 0x11
mov qword [rbx], rcx
inc r8
cmp byte [r8 + rbp], 0
jne 0x140001375
mov rdx, rbp
call fcn.140009130
inc rsi
cmp byte [rsi + rbp], 0
jne 0x140001387
add rsi, qword [rbx]
mov qword [rbx], rsi
mov byte [rsi], 0xd
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], 0xa
mov rax, qword [rbx]
inc rax
cmp dword [0x140028b10], 0
mov qword [rbx], rax
je 0x14000141f
mov byte [rax], 1
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], 0
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], 8
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], 0
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], r14b
mov eax, r14d
mov rcx, qword [rbx]
shr eax, 8
inc rcx
mov qword [rbx], rcx
mov byte [rcx], al
mov eax, r14d
mov rcx, qword [rbx]
shr eax, 0x10
inc rcx
mov qword [rbx], rcx
shr r14d, 0x18
mov byte [rcx], al
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
mov byte [rax], r14b
inc qword [rbx]
mov rax, qword [rbx]
mov edx, r15d
mov rcx, rbx
mov qword [rbx + 8], rax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
jmp 0x140006380
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebp, dword [rcx + 8]
lea rsi, [0x140000000]
sub ebp, dword [rcx + 0x10]
lea r12, [rsi + 0x2a270]
xor r13d, r13d
movsxd r14, edx
cmp dword [r12 + r14*4], 1
lea r12, [r12 + r14*4]
mov r15, rcx
mov edi, r13d
je 0x1400065aa
test ebp, ebp
jle 0x1400065aa
mov qword [rsp + 0x2c0], rbx
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rsi + r14*8 + 0x2a350]
mov r8d, ebp
movsxd rdx, edi
sub r8d, edi
add rdx, qword [r15 + 0x10]
test rcx, rcx
je 0x14000645b
call qword [sym.imp.libssl_1_1_x64.dll_SSL_write]
mov ebx, eax
test eax, eax
jg 0x1400064cd
mov rcx, qword [rsi + r14*8 + 0x2a350]
mov edx, eax
call qword [sym.imp.libssl_1_1_x64.dll_SSL_get_error]
mov esi, eax
test ebx, ebx
jns 0x1400064dc
lea ecx, [rax - 2]
cmp ecx, 1
ja 0x1400064dc
lea rsi, [0x140000000]
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x44], 0x186a0
lea rax, [rsp + 0x40]
jmp 0x14000649e
movsxd rcx, dword [rsi + r14*4 + 0x2b820]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test eax, eax
jg 0x1400064cd
cmp eax, 0xffffffff
jne 0x140006537
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140006537
mov dword [rsp + 0x48], r13d
lea rax, [rsp + 0x48]
mov dword [rsp + 0x4c], 0x186a0
movsxd rcx, dword [rsi + r14*4 + 0x2b820]
lea r8, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x58], rcx
xor edx, edx
mov qword [rsp + 0x20], rax
inc ecx
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_select]
mov ebx, r13d
add edi, ebx
cmp edi, ebp
jl 0x1400063f0
jmp 0x1400065a2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp qword [0x14002a588], r13
mov ebx, eax
jne 0x1400064f4
xor ecx, ecx
call fcn.14000da14
lea rcx, [0x14002a588]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov r9d, 0x400
mov qword [rsp + 0x20], rcx
mov r8d, ebx
mov ecx, 0x1300
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, qword [0x14002a588]
lea rcx, str.SSL_write:__d___s__n
mov edx, esi
call fcn.140008260
jmp 0x14000659a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp qword [0x14002a588], r13
mov ebx, eax
jne 0x14000654f
xor ecx, ecx
call fcn.14000da14
lea rcx, [0x14002a588]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov r9d, 0x400
mov qword [rsp + 0x20], rcx
mov r8d, ebx
mov ecx, 0x1300
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov rdx, qword [0x14002a588]
lea rcx, str.send:__s_n
call fcn.140008260
lea rcx, str.UNKNOWN___RDP_protocol_error___connection_reset_r_n
call fcn.140007ea0
mov dword [r12], 1
mov rbx, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400083c0
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret