Function at 0x1400aed86
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r12, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0x138], r8
lea rbx, [rsp + 0x38]
mov rcx, rbx
call sym.schannel::tls_stream::TlsStream_S_::initialize::h8bc2369cf284b2f6
mov eax, dword [rsp + 0x38]
cmp eax, 2
je 0x1400aef98
test eax, eax
je 0x1400aef4c
mov rdx, qword [rsi + 0x198]
cmp rdx, qword [rsi + 0x190]
jne 0x1400aef83
mov rcx, qword [rsp + 0xf0]
mov r14, qword [rsp + 0x40]
mov eax, r14d
shr r14, 0x20
cmp rcx, r14
cmovb r14, rcx
mov r13d, dword [rsp + 0x3c]
lea r15, [r14 + r13]
add rax, r15
cmp rdx, rax
jae 0x1400aee21
lea rcx, [rsi + 0x180]
mov rdx, rax
call sym.alloc::vec::Vec_T_A_::resize::h2aa6d1fb8d8f1050
mov rdx, qword [rsi + 0x190]
mov rcx, qword [rsi + 0x188]
lea rax, str.C:Users_soras.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov qword [rsp + 0x20], rax
mov r8, r13
mov r9, r15
call sym.__alloc::vec::Vec_T_A__as_core::ops::index::IndexMut_I__::index_mut::h200e67b898296ba1
mov rcx, rax
mov r8, r12
mov r9, r14
call sym.core::slice::__impl__T__::clone_from_slice::h1f869c9859b98e11
mov rcx, qword [rsi + 0x188]
mov rdx, qword [rsi + 0x190]
lea r9, str.C:Users_soras.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov r8, r13
call sym.__alloc::vec::Vec_T_A__as_core::ops::index::IndexMut_I__::index_mut::hf97965ecc46fe141
mov qword [rsp + 0x30], rax
mov rbp, rdx
xor eax, eax
cmp qword [rsp + 0x30], 0
cmove ebp, eax
mov rcx, qword [rsi + 0x188]
mov rdx, qword [rsi + 0x190]
lea rax, str.C:Users_soras.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov qword [rsp + 0x20], rax
mov r8, r13
mov r9, r15
call sym.__alloc::vec::Vec_T_A__as_core::ops::index::IndexMut_I__::index_mut::h200e67b898296ba1
mov r13, rax
mov r12, rdx
mov rcx, qword [rsi + 0x188]
mov rdx, qword [rsi + 0x190]
lea r9, str.C:Users_soras.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov r8, r15
call sym.__alloc::vec::Vec_T_A__as_core::ops::index::IndexMut_I__::index_mut::h241513038fb8e850
xor ecx, ecx
test r13, r13
cmove r12d, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x3c], 7
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x4c], 1
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x5c], 6
mov qword [rsp + 0x60], rax
movabs rax, 0x400000000
lea r8, [rsp + 0x78]
mov qword [r8], rax
mov qword [r8 + 8], rbx
lea rcx, [rsi + 0x1f0]
xor edx, edx
xor r9d, r9d
call sub.secur32.dll_EncryptMessage
mov ebx, eax
test eax, eax
je 0x1400aef58
shl rbx, 0x20
or rbx, 2
jmp 0x1400aef9d
movabs rbx, 0x8009031700000002
jmp 0x1400aef9d
mov eax, dword [rsp + 0x48]
add eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x58]
cmp qword [rsi + 0x190], rax
jb 0x1400aef74
mov qword [rsi + 0x190], rax
and qword [rsi + 0x198], 0
mov qword [rsi + 0x218], r14
lea rcx, [rsp + 0x38]
mov rdx, rsi
call sym.schannel::tls_stream::TlsStream_S_::write_out::hc91273fca37e5ecd
cmp qword [rsp + 0x38], 0
je 0x1400aeff9
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], 1
mov rcx, rbx
call sym._ZN3std2io5error5Error4kind17ha4bba0dd38156312E.2801
cmp al, 0xd
jne 0x1400aefd2
lea rcx, [rsp + 0x40]
mov qword [rdi], 2
and qword [rsi + 0x138], 0
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h0d0d9b47d5d10a81E.7232
jmp 0x1400aefe5
mov qword [rdi], 1
mov qword [rdi + 8], rbx
and qword [rsi + 0x138], 0
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x218]
and qword [rdi], 0
mov qword [rdi + 8], rax
jmp 0x1400aefdd