Function at 0x14008cf5f
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 rdi, r9
mov r13, rdx
mov rsi, rcx
mov qword [rdx + 0x78], r8
lea r15, [rsp + 0x28]
mov rcx, r15
call fcn.14008bc12
mov rbp, qword [r15 + 0x10]
mov rbx, qword [r15 + 8]
cmp dword [r15], 1
jne 0x14008cfa9
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
jmp 0x14008d1cd
cmp dword [rsp + 0x2c], 0
je 0x14008d133
mov rax, qword [r13 + 0xe0]
cmp rax, qword [r13 + 0xd8]
jne 0x14008d1a3
mov qword [rsp + 0x68], rsi
mov rdx, qword [rsp + 0xf0]
mov r12d, ebp
cmp r12, rdx
mov r8, rdx
cmovb r8, r12
lea r9, str.C:Usersyyy.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.19_src_tls_stream.rs
mov rcx, rdi
mov qword [rsp + 0x70], r8
call fcn.140036ee7
cmp rdx, r12
ja 0x14008d242
mov r14, rdx
mov qword [rsp + 0x20], rax
shld rbp, rbx, 0x20
mov esi, ebx
mov rdi, rdx
add rdi, rsi
mov edx, ebp
add rdx, rdi
lea r12, [r13 + 0xc8]
cmp qword [r13 + 0xd8], rdx
jae 0x14008d031
mov rcx, r12
call fcn.14008cd30
lea r9, str.C:Usersyyy.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.19_src_tls_stream.rs
mov rcx, r12
mov rdx, rsi
mov r8, rdi
call fcn.14008d25c
mov rcx, rax
mov r8, qword [rsp + 0x20]
mov r9, r14
call fcn.14004ace8
lea r8, str.C:Usersyyy.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.19_src_tls_stream.rs
mov rcx, r12
mov rdx, rsi
call fcn.14008cc45
mov qword [rsp + 0x20], rax
test rax, rax
mov ecx, edx
cmove rcx, rax
movabs r14, 0x700000000
or r14, rcx
lea r9, str.C:Usersyyy.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.19_src_tls_stream.rs
mov rcx, r12
mov rdx, rsi
mov r8, rdi
call fcn.14008d25c
mov rbp, rax
test rax, rax
mov ebx, edx
cmove rbx, rax
bts rbx, 0x20
lea r8, str.C:Usersyyy.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.19_src_tls_stream.rs
mov rcx, r12
mov rdx, rdi
call fcn.14008cd8a
test rax, rax
mov ecx, edx
cmove rcx, rax
movabs rdx, 0x600000000
or rdx, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
lea r8, [rsp + 0x78]
mov qword [r8 + 8], r15
movabs rax, 0x400000000
mov qword [r8], rax
lea rcx, [r13 + 8]
xor edx, edx
xor r9d, r9d
call sub.Secur32.dll_EncryptMessage
test eax, eax
je 0x14008d14d
mov ecx, eax
shl rcx, 0x18
xor edx, edx
mov rsi, qword [rsp + 0x68]
jmp 0x14008d178
movabs rax, 0x8009031700000000
mov qword [rsp + 0x30], rax
and qword [rsp + 0x38], 0
jmp 0x14008d1cd
mov ecx, dword [rsp + 0x38]
add ecx, dword [rsp + 0x28]
add ecx, dword [rsp + 0x48]
cmp qword [r13 + 0xd8], rcx
mov rsi, qword [rsp + 0x68]
jb 0x14008d16e
mov qword [r13 + 0xd8], rcx
and qword [r13 + 0xe0], 0
mov dl, 3
test eax, eax
je 0x14008d197
movzx eax, dl
shld rdx, rcx, 8
shl rcx, 8
or rcx, rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rcx
jmp 0x14008d1cd
mov rax, qword [rsp + 0x70]
mov qword [r13 + 0xe8], rax
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, r13
call fcn.14008cd9f
cmp qword [rdi], 1
jne 0x14008d226
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 1
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.1400b4ef0
cmp al, 0xa
jne 0x14008d1ff
mov qword [rsi], 2
and qword [r13 + 0x78], 0
lea rcx, [rsp + 0x30]
call fcn.140002629
jmp 0x14008d212
movups xmm0, xmmword [rdi]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 1
and qword [r13 + 0x78], 0
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [r13 + 0xe8]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsi], 0
mov qword [rsi + 8], rax
jmp 0x14008d20d
lea rcx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
lea r8, str.C:Usersyyy.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.19_src_tls_stream.rs
mov edx, 0x3e
call fcn.1400ea240
ud2