Function at 0x14007fd00
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 + 0x38], rdx
mov r15, qword [r8]
mov r12, qword [r8 + 8]
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.140081490
mov eax, dword [rsp + 0x28]
cmp eax, 2
jne 0x14007fd41
mov r14, qword [rsp + 0x30]
jmp 0x14007ff61
test eax, eax
je 0x14007fe93
mov rdx, qword [rsi + 0x90]
mov rdi, qword [rsi + 0x98]
cmp rdi, rdx
jne 0x14007fed8
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 0x14007fdd0
mov rax, qword [rsi + 0x80]
sub rax, rdi
cmp rax, rbp
jb 0x14007ffe6
mov r14, qword [rsi + 0x88]
lea rcx, [r14 + rdi]
cmp rbp, 2
jb 0x14007fdbe
lea r8, [rbp - 1]
xor edx, edx
call fcn.14016a1b0
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 0x14008004f
mov rcx, qword [rsi + 0x88]
add rcx, r13
mov rdx, r15
mov r8, rbx
call fcn.140169a30
mov rdx, qword [rsi + 0x90]
cmp rdx, r13
jb 0x140080061
cmp rdx, r12
jb 0x140080070
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 0x14007fea2
mov r14d, eax
shl r14, 0x20
or r14, 2
jmp 0x14007ff61
movabs r14, 0x8009031700000002
jmp 0x14007ff61
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
mov rdx, qword [rsi + 0x90]
cmp rdx, rax
jb 0x14007fec4
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 0x14007ff39
lea rbx, [rsi + 0x10]
nop word cs:[rax + rax]
mov r9, rdx
sub r9, rdi
jb 0x140080040
mov rdx, qword [rsi + 0x38]
test rdx, rdx
je 0x140080028
mov r8, qword [rsi + 0x88]
add r8, rdi
mov rcx, rbx
call fcn.1400f0e60
mov r14, rdx
test rax, rax
jne 0x14007ff4f
add rdi, r14
mov qword [rsi + 0x98], rdi
mov rdx, qword [rsi + 0x90]
cmp rdi, rdx
jne 0x14007fef0
mov r14, qword [rsi + 0x118]
mov qword [rsi + 0x38], 0
xor eax, eax
jmp 0x14007ffd2
cmp rax, 2
movabs rax, 0xd00000003
cmove r14, rax
mov rcx, r14
call fcn.140080d90
mov qword [rsi + 0x38], 0
cmp al, 0xd
jne 0x14007ffcd
mov ecx, r14d
and ecx, 3
mov eax, 2
cmp ecx, 1
jne 0x14007ffd2
mov rsi, qword [r14 - 1]
mov rbx, qword [r14 + 7]
mov rax, qword [rbx]
test rax, rax
je 0x14007ff9a
mov rcx, rsi
call rax
lea rdi, [r14 - 1]
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14007ffb3
mov r8, qword [rbx + 0x10]
mov rcx, rsi
call fcn.14000b4e0
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.14000b4e0
mov eax, 2
jmp 0x14007ffd2
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 qword [rsp + 0x20], 1
mov r9d, 1
mov rdx, rdi
mov r8, rbp
call fcn.14016acb0
mov rdi, qword [rsi + 0x90]
mov r14, qword [rsi + 0x88]
lea rcx, [r14 + rdi]
cmp rbp, 2
jae 0x14007fda7
jmp 0x14007fdbe
lea rcx, [0x140188507]
lea r8, [0x140188530]
mov edx, 0x29
call fcn.140175840
lea r8, str.C:Users_n1nht.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.24_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rdi
call fcn.140175ca0
lea r8, str.C:Users_n1nht.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.24_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r12
mov rdx, rdi
call fcn.140175d10
lea r8, str.C:Users_n1nht.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.24_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r13
call fcn.140175d10
lea r8, str.C:Users_n1nht.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.24_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r12
call fcn.140175d10
int3