Function at 0x14018e360
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 r12, r9
mov r15, r8
mov rsi, rcx
mov qword [rcx + 0xe0], rdx
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.14018a180
mov eax, dword [rsp + 0x28]
cmp eax, 2
jne 0x14018e3a3
mov r14, qword [rsp + 0x30]
jmp 0x14018e59e
test eax, eax
je 0x14018e4dd
mov rdx, qword [rsi + 0x60]
mov rdi, qword [rsi + 0x68]
cmp rdi, rdx
cmp edi, edx
jne 0x14018e519
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 0x14018e423
invalid
mov rax, qword [rsi + 0x50]
sub rax, rdi
cmp rax, rbp
jb 0x14018e634
mov r14, qword [rsi + 0x58]
lea rcx, [r14 + rdi]
cmp rbp, 2
jb 0x14018e414
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 0x14018e685
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 0x14018e697
cmp rdx, r12
jb 0x14018e6a6
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
mov dword [rsp + 0x70], esi
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 0x14018e4ec
mov r14d, eax
shl r14, 0x20
or r14, 2
jmp 0x14018e59e
movabs r14, 0x8009031700000002
jmp 0x14018e59e
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
mov rdx, qword [rsi + 0x60]
cmp rdx, rax
jb 0x14018e508
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 0x14018e573
lea rbx, [rsi + 0xc0]
nop word cs:[rax + rax]
mov r9, rdx
sub r9, rdi
jb 0x14018e676
mov rdx, qword [rsi + 0xe0]
test rdx, rdx
je 0x14018e65e
mov r8, qword [rsi + 0x58]
add r8, rdi
mov rcx, rbx
call fcn.1401dee50
mov r14, rdx
test rax, rax
jne 0x14018e58c
add rdi, r14
mov qword [rsi + 0x68], rdi
mov rdx, qword [rsi + 0x60]
cmp rdi, rdx
jne 0x14018e530
mov r14, qword [rsi + 0x110]
mov qword [rsi + 0xe0], 0
xor eax, eax
jmp 0x14018e620
cmp rax, 2
movabs rax, 0xd00000003
cmove r14, rax
mov rcx, r14
call fcn.14018b140
mov qword [rsi + 0xe0], 0
cmp al, 0xd
jne 0x14018e61b
mov ecx, r14d
and ecx, 3
mov eax, 2
cmp ecx, 1
jne 0x14018e620
mov rsi, qword [r14 - 1]
mov rbx, qword [r14 + 7]
mov rax, qword [rbx]
test rax, rax
je 0x14018e5da
mov rcx, rsi
call rax
lea rdi, [r14 - 1]
cmp qword [rbx + 8], 0
je 0x14018e602
cmp qword [rbx + 0x10], 0x11
jb 0x14018e5f0
mov rsi, qword [rsi - 8]
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14043f190]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov eax, 2
jmp 0x14018e620
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.14032f9f0
mov rdi, qword [rsi + 0x60]
mov r14, qword [rsi + 0x58]
lea rcx, [r14 + rdi]
cmp rbp, 2
jae 0x14018e3fd
jmp 0x14018e414
lea rcx, str.assertion_failed:__self.context.is_null__
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_native_tls_0.3.1_srclib.rs
mov edx, 0x29
call fcn.14032b650
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64x
mov rcx, rdi
call fcn.14032b500
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64x
mov rcx, r12
mov rdx, rdi
call fcn.14032b5e0
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64x
mov rcx, r13
call fcn.14032b5e0
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64x
mov rcx, r12
call fcn.14032b5e0
int3