Function at 0x140001270
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
or rsi, 0xffffffffffffffff
movsxd r15, r8d
mov rdi, rsi
mov r14d, edx
mov rbp, rcx
nop
inc rdi
cmp byte [rdi + rcx], 0
jne 0x1400012a0
lea rcx, [0x140030b10]
add edi, 0x1e
cmp dword [rcx + r15*4], 0
lea r12, [rcx + r15*4]
je 0x1400012c1
add edi, 8
mov edx, r15d
mov ecx, edi
call fcn.1400088a0
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 [0x14002c4e8]
mov byte [rcx + 0x10], al
mov rcx, qword [rbx]
add rcx, 0x11
mov qword [rbx], rcx
nop
inc r8
cmp byte [r8 + rbp], 0
jne 0x140001380
mov rdx, rbp
call fcn.14000b280
inc rsi
cmp byte [rsi + rbp], 0
jne 0x140001392
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 [r12], 0
mov qword [rbx], rax
je 0x140001428
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]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
jmp 0x140008910
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov ebp, dword [rcx + 8]
lea r13, [0x140000000]
sub ebp, dword [rcx + 0x10]
xor edi, edi
movsxd r14, edx
mov r15, rcx
lea r12, [r14*4 + 0x32150]
cmp dword [r12 + r13], 1
je 0x140008a42
test ebp, ebp
jle 0x140008a42
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
nop dword [rax]
mov rcx, qword [r13 + r14*8 + 0x32320]
mov r8d, ebp
movsxd rdx, edi
sub r8d, edi
add rdx, qword [r15 + 0x10]
test rcx, rcx
je 0x1400089c4
call qword [sym.imp.libssl_1_1_x64.dll_SSL_write]
mov ebx, eax
test eax, eax
jg 0x1400089fc
mov rcx, qword [r13 + r14*8 + 0x32320]
mov edx, eax
call qword [sym.imp.libssl_1_1_x64.dll_SSL_get_error]
mov esi, eax
test ebx, ebx
jns 0x1400089a4
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x1400089ed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14000a360
mov r8, rax
lea rcx, str.SSL_write:__d___s__n
mov edx, esi
call fcn.14000a330
jmp 0x140008a30
movsxd rcx, dword [r13 + r14*4 + 0x32b50]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test eax, eax
jg 0x1400089fc
cmp eax, 0xffffffff
jne 0x140008a08
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140008a08
mov ecx, dword [r13 + r14*4 + 0x32b50]
call fcn.1400087a0
xor ebx, ebx
add edi, ebx
cmp edi, ebp
jl 0x140008960
jmp 0x140008a38
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14000a360
mov rdx, rax
lea rcx, str.send:__s_n
call fcn.14000a330
lea rcx, str.RDP_protocol_error___connection_reset_r_n
call fcn.14000a030
mov dword [r12 + r13], 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret