Function at 0x1400f4541
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r13, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0x138], r8
lea r14, [rsp + 0x28]
mov rcx, r14
call sym.schannel::tls_stream::TlsStream_S_::initialize::h54e44bd73ba72b08
mov eax, dword [rsp + 0x28]
cmp eax, 2
je 0x1400f46df
test eax, eax
je 0x1400f4690
mov r15, qword [rsi + 0x198]
cmp r15, qword [rsi + 0x190]
jne 0x1400f46ca
mov rax, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0x30]
mov edx, ebx
shr rbx, 0x20
cmp rax, rbx
cmovb rbx, rax
mov ebp, dword [rsp + 0x2c]
lea r12, [rbx + rbp]
add rdx, r12
cmp r15, rdx
jae 0x1400f45d4
lea rcx, [rsi + 0x180]
call sym.alloc::vec::Vec_T_A_::resize::h86409aa0eb3681f5
mov r15, qword [rsi + 0x190]
cmp r15, r12
jb 0x1400f474c
mov rcx, qword [rsi + 0x188]
add rcx, rbp
mov rdx, r13
mov r8, rbx
call sym.memcpy
cmp r15, rbp
jb 0x1400f4755
mov r15, qword [rsi + 0x190]
cmp r15, r12
jb 0x1400f4761
mov rax, qword [rsi + 0x188]
lea rcx, [rax + rbp]
sub r15d, r12d
add r12, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x2c], 7
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x4c], 6
mov qword [rsp + 0x50], r12
movabs rax, 0x400000000
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov qword [r8 + 8], r14
lea rcx, [rsi + 0x1f0]
xor edx, edx
xor r9d, r9d
call sub.secur32.dll_EncryptMessage
mov r14d, eax
test eax, eax
je 0x1400f469c
shl r14, 0x20
or r14, 2
jmp 0x1400f46e4
movabs r14, 0x8009031700000002
jmp 0x1400f46e4
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0x190], rax
jb 0x1400f46b8
mov qword [rsi + 0x190], rax
mov qword [rsi + 0x198], 0
mov qword [rsi + 0x218], rbx
lea rcx, [rsp + 0x28]
mov rdx, rsi
call sym.schannel::tls_stream::TlsStream_S_::write_out::ha76062e68d998b61
cmp qword [rsp + 0x28], 0
je 0x1400f4733
mov r14, qword [rsp + 0x30]
mov rcx, r14
call sym._ZN3std2io5error5Error4kind17ha4bba0dd38156312E.10921
cmp al, 0xd
jne 0x1400f470c
mov qword [rdi], 2
mov qword [rsi + 0x138], 0
mov rcx, r14
call sym.core::ptr::drop_in_place_std::io::error::Error_::h1f4daee6a98f4d2e
jmp 0x1400f4722
mov qword [rdi], 1
mov qword [rdi + 8], r14
mov qword [rsi + 0x138], 0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x218]
xor ecx, ecx
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov qword [rsi + 0x138], rcx
jmp 0x1400f4722
lea r8, str.C:Users_soras.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64P
jmp 0x1400f4768
lea r8, str.C:Users_soras.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64P
mov r12, rbp
jmp 0x1400f4768
lea r8, str.C:Users_soras.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64P
mov rcx, r12
mov rdx, r15
call dbg.slice_end_index_len_fail
ud2