Function at 0x14008ec97
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 + 0x180], r8
lea r15, [rsp + 0x28]
mov rcx, r15
call fcn.14008da39
mov rbp, qword [r15 + 0x10]
mov rbx, qword [r15 + 8]
cmp dword [r15], 1
jne 0x14008ece4
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
jmp 0x14008ef08
cmp dword [rsp + 0x2c], 0
je 0x14008ee6e
mov rax, qword [r13 + 0x1e8]
cmp rax, qword [r13 + 0x1e0]
jne 0x14008eede
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 0x14008ef83
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 + 0x1d0]
cmp qword [r13 + 0x1e0], rdx
jae 0x14008ed6c
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 0x14008ee88
mov ecx, eax
shl rcx, 0x18
xor edx, edx
mov rsi, qword [rsp + 0x68]
jmp 0x14008eeb3
movabs rax, 0x8009031700000000
mov qword [rsp + 0x30], rax
and qword [rsp + 0x38], 0
jmp 0x14008ef08
mov ecx, dword [rsp + 0x38]
add ecx, dword [rsp + 0x28]
add ecx, dword [rsp + 0x48]
cmp qword [r13 + 0x1e0], rcx
mov rsi, qword [rsp + 0x68]
jb 0x14008eea9
mov qword [r13 + 0x1e0], rcx
and qword [r13 + 0x1e8], 0
mov dl, 3
test eax, eax
je 0x14008eed2
movzx eax, dl
shld rdx, rcx, 8
shl rcx, 8
or rcx, rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rcx
jmp 0x14008ef08
mov rax, qword [rsp + 0x70]
mov qword [r13 + 0x1f0], rax
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, r13
call fcn.14008eb11
cmp qword [rdi], 1
jne 0x14008ef67
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 0x14008ef3d
mov qword [rsi], 2
and qword [r13 + 0x180], 0
lea rcx, [rsp + 0x30]
call fcn.140002629
jmp 0x14008ef53
movups xmm0, xmmword [rdi]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 1
and qword [r13 + 0x180], 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 + 0x1f0]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsi], 0
mov qword [rsi + 8], rax
jmp 0x14008ef4b
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