Function at 0x140058880
Capabilities:
Decrypt data via sspi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x178]
mov rdx, qword [rdx + 0x170]
cmp rcx, rdx
ja 0x140058b2f
mov rax, qword [rdi + 0x168]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], 1
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movabs rax, 0x400000000
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x70], rax
lea rcx, [rdi + 0x1f0]
lea rdx, [rsp + 0x68]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x90316
jg 0x1400589f9
cmp eax, 0x80090318
je 0x140058a7f
test eax, eax
jne 0x140058a6c
mov rcx, qword [rsp + 0x40]
mov r14, qword [rdi + 0x168]
mov rdx, qword [rdi + 0x170]
sub rcx, r14
mov ebx, dword [rsp + 0x38]
mov rax, rcx
mov qword [rdi + 0x150], 0
add rax, rbx
jb 0x140058b65
cmp rax, rdx
ja 0x140058b74
add r14, rcx
xor r15d, r15d
cmp qword [rdi + 0x140], rbx
jb 0x140058b12
xor r12d, r12d
mov rcx, qword [rdi + 0x148]
add rcx, r12
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
add r12, rbx
cmp dword [rsp + 0x5c], 5
mov qword [rdi + 0x150], r12
cmove r15d, dword [rsp + 0x58]
mov qword [rdi + 0x158], 0
mov rcx, qword [rdi + 0x178]
mov rdx, rcx
sub rdx, r15
jb 0x140058b3b
test r15d, r15d
je 0x140058ae6
mov rax, qword [rdi + 0x170]
mov rbx, rax
sub rbx, rdx
jb 0x140058b53
mov qword [rdi + 0x170], 0
cmp rcx, r15
jne 0x140058ac8
cmp rax, rdx
jne 0x140058adf
jmp 0x140058ae6
cmp eax, 0x90317
je 0x140058a90
cmp eax, 0x90321
jne 0x140058a6c
xor r14d, r14d
cmp dword [rsp + 0x5c], 5
mov dword [rdi + 0x1d0], 0x10000
cmove r14d, dword [rsp + 0x58]
mov byte [rdi + 0x1d4], 0
mov rcx, qword [rdi + 0x178]
mov rdx, rcx
sub rdx, r14
jb 0x140058b3b
test r14d, r14d
je 0x140058ab4
mov rax, qword [rdi + 0x170]
mov rbx, rax
sub rbx, rdx
jb 0x140058b53
mov qword [rdi + 0x170], 0
cmp rcx, r14
jne 0x140058a96
cmp rax, rdx
jne 0x140058aad
jmp 0x140058ab4
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x140058b02
cmp dword [rsp + 0x3c], 4
mov eax, 1
cmove eax, dword [rsp + 0x38]
jmp 0x140058af5
mov byte [rsi + 1], 1
jmp 0x140058b00
cmp rax, rdx
je 0x140058ab4
mov rcx, qword [rdi + 0x168]
add rdx, rcx
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
mov qword [rdi + 0x170], rbx
mov qword [rdi + 0x178], r14
mov qword [rdi + 0x210], 0
jmp 0x140058afc
cmp rax, rdx
je 0x140058ae6
mov rcx, qword [rdi + 0x168]
add rdx, rcx
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
mov qword [rdi + 0x170], rbx
xor eax, eax
test r15d, r15d
sete al
mov qword [rdi + 0x178], r15
mov qword [rdi + 0x210], rax
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rdi + 0x140]
xor edx, edx
mov r8, rbx
call fcn.1401ff800
mov r12, qword [rdi + 0x150]
jmp 0x140058973
lea r8, str.C:Users_root.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
call fcn.14020a830
lea rcx, [0x140212657]
lea r8, str.C:Users_root.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov edx, 0x1f
call fcn.14020a300
lea r8, [0x1402150f8]
mov rcx, rdx
mov rdx, rax
call fcn.14020a830
lea r8, str.C:Users_root.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rdx, rax
call fcn.14020a8b0
lea r8, str.C:Users_root.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rax
call fcn.14020a830
int3