Function at 0x14010a9c0
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rbp, r9
mov r13, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14010c7f0
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x14010ac07
test eax, eax
je 0x14010aa77
mov rbx, qword [rdi + 0x40]
cmp rbx, qword [rdi + 0x58]
jne 0x14010abf2
mov r12d, dword [rsp + 0x34]
mov r14, qword [rsp + 0x38]
mov r15d, r14d
shr r14, 0x20
cmp rbp, r14
cmovb r14, rbp
lea rax, [r14 + r12]
mov qword [rsp + 0x28], rax
add r15, rax
mov rbp, r15
sub rbp, rbx
jbe 0x14010aa86
mov qword [rsp + 0x70], r14
mov rax, qword [rdi + 0x48]
sub rax, rbx
mov r14, rbx
cmp rax, rbp
jb 0x14010aa8d
mov rax, qword [rdi + 0x50]
lea rcx, [rax + r14]
cmp rbp, 2
jb 0x14010aaae
lea r8, [rbp - 1]
xor edx, edx
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
add r14, rbp
dec r14
add rbx, r14
mov rcx, rbx
mov rbp, qword [rsp + 0x28]
jmp 0x14010aab8
movabs rax, 0x8009031700000002
jmp 0x14010ac0c
mov rbp, qword [rsp + 0x28]
jmp 0x14010aaca
lea rcx, [rdi + 0x48]
mov rdx, rbx
mov r8, rbp
call fcn.14020b1c0
mov r14, qword [rdi + 0x58]
mov rax, qword [rdi + 0x50]
lea rcx, [rax + r14]
cmp rbp, 2
jae 0x14010aa56
cmp r15, rbx
mov rbp, qword [rsp + 0x28]
je 0x14010aabe
mov byte [rcx], 0
inc r14
mov qword [rdi + 0x58], r14
mov rbx, r14
mov r14, qword [rsp + 0x70]
cmp rbp, rbx
ja 0x14010ac3e
mov rcx, qword [rdi + 0x50]
add rcx, r12
mov rdx, r13
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rdi + 0x58]
cmp rdx, r12
jb 0x14010ac52
mov r8, qword [rdi + 0x50]
lea rcx, [rsp + 0x88]
mov edx, 7
mov r9, r12
call fcn.140123710
mov rdx, qword [rdi + 0x58]
cmp rbp, rdx
ja 0x14010ac63
add r12, qword [rdi + 0x50]
lea rcx, [rsp + 0x98]
mov edx, 1
mov r8, r12
mov r9, r14
call fcn.140123710
mov rdx, qword [rdi + 0x58]
mov r9, rdx
sub r9, rbp
jb 0x14010ac74
add rbp, qword [rdi + 0x50]
lea rcx, [rsp + 0x78]
mov edx, 6
mov r8, rbp
call fcn.140123710
lea rcx, [rsp + 0x60]
xor edx, edx
xor r8d, r8d
call fcn.140123710
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x78]
movaps xmmword [rsp + 0x50], xmm0
lea rbx, [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov r8d, 4
mov rcx, rbx
call fcn.140123730
lea rcx, [rdi + 0x60]
call fcn.1400367e0
mov rcx, rax
xor edx, edx
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x14010abcd
shl rax, 0x20
or rax, 2
jmp 0x14010ac0c
mov eax, dword [rsp + 0x40]
add eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x50]
cmp qword [rdi + 0x58], rax
jb 0x14010abe3
mov qword [rdi + 0x58], rax
mov qword [rdi + 0x40], 0
mov qword [rdi + 0x1e0], r14
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.14010eaa0
cmp qword [rsp + 0x30], 0
je 0x14010ac2f
mov rax, qword [rsp + 0x38]
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rdi + 0x1e0]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14010ac15
lea r8, str.C:UsersAdministrator.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.21_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rbp
mov rdx, rbx
call fcn.140218040
ud2
lea r8, str.C:UsersAdministrator.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.21_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r12
call fcn.140218040
ud2
lea r8, str.C:UsersAdministrator.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.21_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rbp
call fcn.140218040
ud2
lea r8, str.C:UsersAdministrator.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.21_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rbp
call fcn.140218030
ud2