Function at 0x1400c9bd0
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 r12, r9
mov r15, r8
mov rsi, rcx
mov qword [rcx + 0x38], rdx
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.1400c6690
mov eax, dword [rsp + 0x28]
cmp eax, 2
jne 0x1400c9c10
mov r14, qword [rsp + 0x30]
jmp 0x1400c9e21
test eax, eax
je 0x1400c9d62
mov rdx, qword [rsi + 0x90]
mov rdi, qword [rsi + 0x98]
cmp rdi, rdx
jne 0x1400c9da7
mov rbx, qword [rsp + 0x30]
mov ebp, ebx
shr rbx, 0x20
cmp r12, rbx
cmovb rbx, r12
mov r13d, dword [rsp + 0x2c]
lea r12, [rbx + r13]
add rbp, r12
sub rbp, rdi
jbe 0x1400c9c9f
mov rax, qword [rsi + 0x80]
sub rax, rdi
cmp rax, rbp
jb 0x1400c9eb4
mov r14, qword [rsi + 0x88]
lea rcx, [r14 + rdi]
cmp rbp, 2
jb 0x1400c9c8d
lea r8, [rbp - 1]
xor edx, edx
call fcn.14011a8b0
add rdi, rbp
dec rdi
add r14, rdi
mov rcx, r14
lea r14, [rsp + 0x28]
mov byte [rcx], 0
inc rdi
mov qword [rsi + 0x90], rdi
cmp r12, rdi
ja 0x1400c9f0e
mov rcx, qword [rsi + 0x88]
add rcx, r13
mov rdx, r15
mov r8, rbx
call fcn.14011a210
mov rdx, qword [rsi + 0x90]
cmp rdx, r13
jb 0x1400c9f20
cmp rdx, r12
jb 0x1400c9f2f
mov rax, qword [rsi + 0x88]
lea rcx, [rax + r13]
sub edx, r12d
add r12, rax
mov dword [rsp + 0x28], r13d
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], edx
mov dword [rsp + 0x4c], 6
mov qword [rsp + 0x50], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movabs rax, 0x400000000
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r14
lea rcx, [rsi + 0xf0]
lea r8, [rsp + 0x68]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x1400c9d71
mov r14d, eax
shl r14, 0x20
or r14, 2
jmp 0x1400c9e21
movabs r14, 0x8009031700000002
jmp 0x1400c9e21
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
mov rdx, qword [rsi + 0x90]
cmp rdx, rax
jb 0x1400c9d93
mov qword [rsi + 0x90], rax
mov rdx, rax
mov qword [rsi + 0x98], 0
mov qword [rsi + 0x118], rbx
xor edi, edi
cmp rdi, rdx
je 0x1400c9df9
lea rbx, [rsi + 0x10]
mov r9, rdx
sub r9, rdi
jb 0x1400c9eff
mov rdx, qword [rsi + 0x38]
test rdx, rdx
je 0x1400c9ee7
mov r8, qword [rsi + 0x88]
add r8, rdi
mov rcx, rbx
call case.0x14001efb4.4364
mov r14, rdx
test rax, rax
jne 0x1400c9e0f
add rdi, r14
mov qword [rsi + 0x98], rdi
mov rdx, qword [rsi + 0x90]
cmp rdi, rdx
jne 0x1400c9db0
mov r14, qword [rsi + 0x118]
mov qword [rsi + 0x38], 0
xor eax, eax
jmp 0x1400c9ea0
cmp rax, 2
movabs rax, 0xd00000003
cmove r14, rax
mov rcx, r14
call fcn.1400c76a0
mov qword [rsi + 0x38], 0
cmp al, 0xd
jne 0x1400c9e9b
mov ecx, r14d
and ecx, 3
mov eax, 2
cmp ecx, 1
jne 0x1400c9ea0
mov rsi, qword [r14 - 1]
mov rbx, qword [r14 + 7]
mov rax, qword [rbx]
test rax, rax
je 0x1400c9e5a
mov rcx, rsi
call rax
lea rdi, [r14 - 1]
cmp qword [rbx + 8], 0
je 0x1400c9e82
cmp qword [rbx + 0x10], 0x11
jb 0x1400c9e70
mov rsi, qword [rsi - 8]
mov rcx, qword [0x140197260]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x140197260]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov eax, 2
jmp 0x1400c9ea0
mov eax, 1
mov rdx, r14
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsi + 0x80]
mov rdx, rdi
mov r8, rbp
call fcn.140121430
mov rdi, qword [rsi + 0x90]
mov r14, qword [rsi + 0x88]
lea rcx, [r14 + rdi]
cmp rbp, 2
jae 0x1400c9c76
jmp 0x1400c9c8d
lea rcx, str.assertion_failed:__self.context.is_null__
lea r8, [0x1401566d0]
mov edx, 0x29
call fcn.14011c440
lea r8, str.C:UsersDONY.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rdi
call fcn.14011c2f0
lea r8, str.C:UsersDONY.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r12
mov rdx, rdi
call fcn.14011c3d0
lea r8, str.C:UsersDONY.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r13
call fcn.14011c3d0
lea r8, str.C:UsersDONY.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r12
call fcn.14011c3d0
int3