Function at 0x140089910
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 rsi, rcx
mov qword [rcx + 0xe0], rdx
mov r15, qword [r8]
mov r12, qword [r8 + 8]
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.14009bf90
mov eax, dword [rsp + 0x28]
cmp eax, 2
jne 0x140089954
mov r14, qword [rsp + 0x30]
jmp 0x140089b4e
test eax, eax
je 0x140089a8e
mov rdx, qword [rsi + 0x60]
mov rdi, qword [rsi + 0x68]
cmp rdi, rdx
jne 0x140089aca
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 0x1400899d4
mov rax, qword [rsi + 0x50]
sub rax, rdi
cmp rax, rbp
jb 0x140089bd6
mov r14, qword [rsi + 0x58]
lea rcx, [r14 + rdi]
cmp rbp, 2
jb 0x1400899c5
lea r8, [rbp - 1]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
add rdi, rbp
dec rdi
add r14, rdi
mov rcx, r14
lea r14, [rsp + 0x28]
mov byte [rcx], 0
inc rdi
mov qword [rsi + 0x60], rdi
cmp r12, rdi
ja 0x140089c27
mov rcx, qword [rsi + 0x58]
add rcx, r13
mov rdx, r15
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsi + 0x60]
cmp rdx, r13
jb 0x140089c39
cmp rdx, r12
jb 0x140089c48
mov rax, qword [rsi + 0x58]
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 + 0xe8]
lea r8, [rsp + 0x68]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x140089a9d
mov r14d, eax
shl r14, 0x20
or r14, 2
jmp 0x140089b4e
movabs r14, 0x8009031700000002
jmp 0x140089b4e
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
mov rdx, qword [rsi + 0x60]
cmp rdx, rax
jb 0x140089ab9
mov qword [rsi + 0x60], rax
mov rdx, rax
mov qword [rsi + 0x68], 0
mov qword [rsi + 0x110], rbx
xor edi, edi
cmp rdi, rdx
je 0x140089b23
lea rbx, [rsi + 0xc0]
nop word cs:[rax + rax]
mov r9, rdx
sub r9, rdi
jb 0x140089c18
mov rdx, qword [rsi + 0xe0]
test rdx, rdx
je 0x140089c00
mov r8, qword [rsi + 0x58]
add r8, rdi
mov rcx, rbx
call fcn.1400f0b30
mov r14, rdx
test rax, rax
jne 0x140089b3c
add rdi, r14
mov qword [rsi + 0x68], rdi
mov rdx, qword [rsi + 0x60]
cmp rdi, rdx
jne 0x140089ae0
mov r14, qword [rsi + 0x110]
mov qword [rsi + 0xe0], 0
xor eax, eax
jmp 0x140089bc2
cmp rax, 2
movabs rax, 0xd00000003
cmove r14, rax
mov rcx, r14
call fcn.14008dba0
mov qword [rsi + 0xe0], 0
cmp al, 0xd
jne 0x140089bbd
mov ecx, r14d
and ecx, 3
mov eax, 2
cmp ecx, 1
jne 0x140089bc2
mov rsi, qword [r14 - 1]
mov rbx, qword [r14 + 7]
mov rax, qword [rbx]
test rax, rax
je 0x140089b8a
mov rcx, rsi
call rax
lea rdi, [r14 - 1]
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140089ba3
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call fcn.140022710
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.140022710
mov eax, 2
jmp 0x140089bc2
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 + 0x50]
mov rdx, rdi
mov r8, rbp
call fcn.1402864b0
mov rdi, qword [rsi + 0x60]
mov r14, qword [rsi + 0x58]
lea rcx, [r14 + rdi]
cmp rbp, 2
jae 0x1400899ae
jmp 0x1400899c5
lea rcx, str.assertion_failed:__self.context.is_null__
lea r8, [0x1402ba730]
mov edx, 0x29
call fcn.14028ecc0
lea r8, str.C:Users_asdasd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsC:Users_asdasd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.6.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, rdi
call fcn.14028f080
lea r8, str.C:Users_asdasd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsC:Users_asdasd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.6.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, r12
mov rdx, rdi
call fcn.14028f0f0
lea r8, str.C:Users_asdasd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsC:Users_asdasd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.6.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, r13
call fcn.14028f0f0
lea r8, str.C:Users_asdasd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsC:Users_asdasd.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.6.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, r12
call fcn.14028f0f0
int3