Function at 0x1400a4897
Capabilities:
Encrypt data via sspi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
mov qword [rdx + 0x138], r8
lea rbx, [rbp - 0x38]
mov rcx, rbx
mov qword [rbp + 8], rdx
call fcn.1400a4bd2
mov eax, dword [rbp - 0x38]
cmp eax, 2
je 0x1400a4afc
test eax, eax
mov r14, qword [rbp + 8]
je 0x1400a4aad
mov rax, qword [r14 + 0x1b8]
cmp rax, qword [r14 + 0x1b0]
jne 0x1400a4ae9
mov rdx, qword [rbp + 0x80]
mov r14d, dword [rbp - 0x34]
mov r13, qword [rbp - 0x30]
mov r15, r13
shr r15, 0x20
cmp rdx, r15
mov r8, r15
cmovb r8, rdx
lea r9, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, rdi
mov qword [rbp - 0x40], r8
call fcn.140073e05
mov qword [rbp - 0x48], rax
mov r12, rdx
cmp rdx, r15
ja 0x1400a4b7a
lea r15, [r12 + r14]
mov eax, r13d
add rax, r15
mov rcx, qword [rbp + 8]
lea rdi, [rcx + 0x1a0]
mov rdx, qword [rcx + 0x1b0]
cmp rdx, rax
jae 0x1400a497d
mov rcx, rdi
mov rdx, rax
call fcn.14002a25d
mov rax, qword [rbp + 8]
mov rdx, qword [rax + 0x1b0]
mov rcx, qword [rdi]
lea rax, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov qword [rsp + 0x20], rax
mov r8, r14
mov r9, r15
call fcn.1400a3a3f
lea rcx, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, qword [rbp - 0x48]
mov r9, r12
call fcn.1400e6e7f
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x1a0]
mov rdx, qword [rax + 0x1b0]
lea r9, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov r8, r14
call fcn.1400a3a56
mov r12, rax
mov r13, rdx
xor eax, eax
test r12, r12
cmove r13d, eax
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x1a0]
mov rdx, qword [rax + 0x1b0]
lea rax, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov qword [rsp + 0x20], rax
mov r8, r14
mov r9, r15
call fcn.1400a3a3f
mov r14, rax
mov rdi, rdx
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x1a0]
mov rdx, qword [rax + 0x1b0]
lea r9, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov r8, r15
call fcn.1400a3a67
xor ecx, ecx
test r14, r14
cmove edi, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
mov dword [rbp - 0x38], r13d
mov dword [rbp - 0x34], 7
mov qword [rbp - 0x30], r12
mov dword [rbp - 0x28], edi
mov dword [rbp - 0x24], 1
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x18], edx
mov dword [rbp - 0x14], 6
mov qword [rbp - 0x10], rax
movabs rax, 0x400000000
lea r8, [rbp - 0x58]
mov qword [r8], rax
mov qword [r8 + 8], rbx
mov rax, qword [rbp + 8]
lea rcx, [rax + 0x1c0]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
mov edi, eax
test eax, eax
je 0x1400a4ab9
shl rdi, 0x20
or rdi, 2
jmp 0x1400a4b00
movabs rdi, 0x8009031700000002
jmp 0x1400a4b04
mov eax, dword [rbp - 0x28]
add eax, dword [rbp - 0x38]
add eax, dword [rbp - 0x18]
mov r14, qword [rbp + 8]
cmp qword [r14 + 0x1b0], rax
jb 0x1400a4ad6
mov qword [r14 + 0x1b0], rax
and qword [r14 + 0x1b8], 0
mov rax, qword [rbp - 0x40]
mov qword [r14 + 0x200], rax
lea rcx, [rbp - 0x38]
mov rdx, r14
call fcn.1400a5e2b
cmp qword [rbp - 0x38], 0
je 0x1400a4b5d
mov rdi, qword [rbp - 0x30]
mov r14, qword [rbp + 8]
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x38], 1
mov rcx, rdi
call fcn.140109384
cmp al, 0xd
jne 0x1400a4b36
lea rcx, [rbp - 0x30]
mov qword [rsi], 2
and qword [r14 + 0x138], 0
call fcn.14005c926
jmp 0x1400a4b49
mov qword [rsi], 1
mov qword [rsi + 8], rdi
and qword [r14 + 0x138], 0
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp + 8]
mov rax, qword [rcx + 0x200]
and qword [rsi], 0
mov qword [rsi + 8], rax
and qword [rcx + 0x138], 0
jmp 0x1400a4b49
lea rcx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
lea r8, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
push 0x3e
pop rdx
call fcn.14015cc80
ud2