Function at 0x140080590
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 + 0x138], rdx
mov r14, qword [r8]
mov r15, qword [r8 + 8]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.140082540
mov eax, dword [rsp + 0x28]
cmp eax, 2
jne 0x1400805d4
mov rdi, qword [rsp + 0x30]
jmp 0x14008076d
test eax, eax
je 0x14008071f
mov r13, qword [rsi + 0x198]
cmp r13, qword [rsi + 0x190]
jne 0x140080759
mov rbx, qword [rsp + 0x30]
mov ebp, ebx
shr rbx, 0x20
cmp r15, rbx
cmovb rbx, r15
mov r12d, dword [rsp + 0x2c]
lea r15, [rbx + r12]
add rbp, r15
sub rbp, r13
jbe 0x140080660
mov rax, qword [rsi + 0x180]
sub rax, r13
cmp rax, rbp
jb 0x14008080a
mov rdi, qword [rsi + 0x188]
lea rcx, [rdi + r13]
cmp rbp, 2
jb 0x14008064e
lea r8, [rbp - 1]
xor edx, edx
call fcn.14016a1b0
add r13, rbp
dec r13
add rdi, r13
mov rcx, rdi
lea rdi, [rsp + 0x28]
mov byte [rcx], 0
inc r13
mov qword [rsi + 0x190], r13
cmp r15, r13
ja 0x14008084c
mov rcx, qword [rsi + 0x188]
add rcx, r12
mov rdx, r14
mov r8, rbx
call fcn.140169a30
mov rdx, qword [rsi + 0x190]
cmp rdx, r12
jb 0x14008085e
cmp rdx, r15
jb 0x14008086d
mov rax, qword [rsi + 0x188]
lea rcx, [rax + r12]
sub edx, r15d
add r15, rax
mov dword [rsp + 0x28], r12d
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], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movabs rax, 0x400000000
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rdi
lea rcx, [rsi + 0x1f0]
lea r8, [rsp + 0x68]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x14008072b
mov edi, eax
shl rdi, 0x20
or rdi, 2
jmp 0x14008076d
movabs rdi, 0x8009031700000002
jmp 0x14008076d
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0x190], rax
jb 0x140080747
mov qword [rsi + 0x190], rax
mov qword [rsi + 0x198], 0
mov qword [rsi + 0x218], rbx
mov rcx, rsi
call fcn.140084210
test rax, rax
je 0x1400807f4
mov rdi, rdx
mov rcx, rdi
call fcn.140080d90
mov qword [rsi + 0x138], 0
cmp al, 0xd
jne 0x1400807db
mov ecx, edi
and ecx, 3
mov eax, 2
cmp ecx, 1
jne 0x1400807e0
mov rsi, qword [rdi - 1]
mov r14, qword [rdi + 7]
mov rax, qword [r14]
test rax, rax
je 0x1400807a8
mov rcx, rsi
call rax
lea rbx, [rdi - 1]
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x1400807c1
mov r8, qword [r14 + 0x10]
mov rcx, rsi
call fcn.14000b4e0
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.14000b4e0
mov eax, 2
jmp 0x1400807e0
mov eax, 1
mov rdx, rdi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rsi + 0x218]
mov qword [rsi + 0x138], 0
xor eax, eax
jmp 0x1400807e0
lea rcx, [rsi + 0x180]
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rdx, r13
mov r8, rbp
call fcn.14016acb0
mov r13, qword [rsi + 0x190]
mov rdi, qword [rsi + 0x188]
lea rcx, [rdi + r13]
cmp rbp, 2
jae 0x140080637
jmp 0x14008064e
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, r15
mov rdx, 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
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, r15
call fcn.140175d10
int3