Function at 0x1401b9690
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 rsi, r9
mov r13, r8
mov rdi, rdx
mov rbp, rcx
lea rcx, [rsp + 0x30]
call fcn.1401bb5e0
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x1401b96cc
mov rax, qword [rsp + 0x38]
jmp 0x1401b9997
test eax, eax
je 0x1401b9760
mov rdx, qword [rdi + 0xd0]
mov rbx, qword [rdi + 0xd8]
cmp rbx, rdx
jne 0x1401b9910
mov r12d, dword [rsp + 0x34]
mov r14, qword [rsp + 0x38]
mov r15d, r14d
shr r14, 0x20
cmp rsi, r14
cmovb r14, rsi
lea rax, [r14 + r12]
mov qword [rsp + 0x28], rax
add r15, rax
mov rsi, r15
sub rsi, rbx
jbe 0x1401b976f
mov qword [rsp + 0x70], r14
mov rax, qword [rdi + 0xc8]
sub rax, rbx
mov r14, rbx
cmp rax, rsi
jb 0x1401b9776
mov rax, qword [rdi + 0xc0]
lea rcx, [rax + r14]
cmp rsi, 2
jb 0x1401b97a0
lea r8, [rsi - 1]
xor edx, edx
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
add r14, rsi
dec r14
add rbx, r14
mov rcx, rbx
mov rsi, qword [rsp + 0x28]
jmp 0x1401b97aa
movabs rax, 0x8009031700000002
jmp 0x1401b9997
mov rsi, qword [rsp + 0x28]
jmp 0x1401b97bf
lea rcx, [rdi + 0xc0]
mov rdx, rbx
mov r8, rsi
call fcn.1403abe40
mov r14, qword [rdi + 0xd0]
mov rax, qword [rdi + 0xc0]
lea rcx, [rax + r14]
cmp rsi, 2
jae 0x1401b973f
cmp r15, rbx
mov rsi, qword [rsp + 0x28]
je 0x1401b97b0
mov byte [rcx], 0
inc r14
mov qword [rdi + 0xd0], r14
mov rbx, r14
mov r14, qword [rsp + 0x70]
cmp rsi, rbx
ja 0x1401b99e6
mov rcx, qword [rdi + 0xc0]
add rcx, r12
mov rdx, r13
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rdi + 0xd0]
cmp rdx, r12
jb 0x1401b99fa
mov r8, qword [rdi + 0xc0]
lea rcx, [rsp + 0x88]
mov edx, 7
mov r9, r12
call fcn.140288e90
mov rdx, qword [rdi + 0xd0]
cmp rsi, rdx
ja 0x1401b9a0b
add r12, qword [rdi + 0xc0]
lea rcx, [rsp + 0x98]
mov edx, 1
mov r8, r12
mov r9, r14
call fcn.140288e90
mov rdx, qword [rdi + 0xd0]
mov r9, rdx
sub r9, rsi
jb 0x1401b9a1c
add rsi, qword [rdi + 0xc0]
lea rcx, [rsp + 0x78]
mov edx, 6
mov r8, rsi
call fcn.140288e90
lea rcx, [rsp + 0x60]
xor edx, edx
xor r8d, r8d
call fcn.140288e90
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 rsi, [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov r8d, 4
mov rcx, rsi
call fcn.140288eb0
lea rcx, [rdi + 8]
call fcn.1400ab690
mov rcx, rax
xor edx, edx
mov r8, rsi
xor r9d, r9d
call qword [sym.imp.Secur32.dll_EncryptMessage]
test eax, eax
je 0x1401b98da
shl rax, 0x20
or rax, 2
jmp 0x1401b9997
mov eax, dword [rsp + 0x40]
add eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x50]
mov rdx, qword [rdi + 0xd0]
cmp rdx, rax
jb 0x1401b98fc
mov qword [rdi + 0xd0], rax
mov rdx, rax
mov qword [rdi + 0xd8], 0
mov qword [rdi + 0xe0], r14
xor ebx, ebx
cmp rdx, rbx
je 0x1401b997e
lea rsi, [rdi + 0x50]
lea r14, [rsp + 0x30]
nop
mov rax, rdx
sub rax, rbx
jb 0x1401b99bb
mov r8, qword [rdi + 0x70]
test r8, r8
je 0x1401b99cc
mov r9, qword [rdi + 0xc0]
add r9, rbx
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, rsi
call fcn.140326960
mov rcx, qword [rsp + 0x30]
cmp rcx, 2
je 0x1401b998d
mov rax, qword [rsp + 0x38]
test rcx, rcx
jne 0x1401b9997
add rbx, rax
mov qword [rdi + 0xd8], rbx
mov rdx, qword [rdi + 0xd0]
cmp rdx, rbx
jne 0x1401b9920
mov rax, qword [rdi + 0xe0]
mov qword [rbp + 8], rax
xor eax, eax
jmp 0x1401b99a0
movabs rax, 0xd00000003
mov qword [rbp + 8], rax
mov eax, 1
mov qword [rbp], rax
mov rax, rbp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.C:Usershrdp.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.20_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rbx
call fcn.1403b6590
ud2
lea rcx, str.assertion_failed:__self.context.is_null__
lea r8, [0x1403cb518]
mov edx, 0x29
call fcn.1403b6260
ud2
lea r8, str.C:Usershrdp.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.20_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rsi
mov rdx, rbx
call fcn.1403b65a0
ud2
lea r8, str.C:Usershrdp.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.20_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r12
call fcn.1403b65a0
ud2
lea r8, str.C:Usershrdp.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.20_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rsi
call fcn.1403b65a0
ud2
lea r8, str.C:Usershrdp.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.20_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rsi
call fcn.1403b6590
ud2