Function at 0x1800e6590
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 r15, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0x138], r8
lea rcx, [rsp + 0x28]
call fcn.1800e68f0
mov eax, dword [rsp + 0x28]
cmp eax, 2
jne case.default.0x1800e65db
mov rbx, qword [rsp + 0x30]
mov eax, ebx
and eax, 3
lea rcx, [0x1800e68e0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
test eax, eax
je 0x1800e6676
mov rbp, qword [rsi + 0x1b8]
cmp rbp, qword [rsi + 0x1b0]
jne 0x1800e67d0
mov qword [rsp + 0x20], rdi
mov rax, qword [rsp + 0xe0]
mov edi, dword [rsp + 0x2c]
mov r14, qword [rsp + 0x30]
mov r12d, r14d
shr r14, 0x20
cmp rax, r14
cmovb r14, rax
lea r13, [r14 + rdi]
add r12, r13
mov rbx, r12
sub rbx, rbp
jbe 0x1800e66d8
mov rax, qword [rsi + 0x1a8]
sub rax, rbp
mov r8, rbp
cmp rax, rbx
jb 0x1800e6699
mov rax, qword [rsi + 0x1a0]
lea rcx, [rax + r8]
cmp rbx, 2
jb 0x1800e66c3
mov r12, r8
lea r8, [rbx - 1]
xor edx, edx
mov rbp, rax
call sub.VCRUNTIME140.dll_memset
mov r8, r12
lea r8, [r12 + rbx]
dec r8
add rbp, r8
mov rcx, rbp
jmp 0x1800e66c8
movabs rbx, 0x8009031700000002
mov rcx, rbx
shr rcx, 0x20
call fcn.18011b850
cmp al, 0xd
je 0x1800e687a
jmp 0x1800e6883
lea rcx, [rsi + 0x1a0]
mov rdx, rbp
mov r8, rbx
call fcn.18019b9e0
mov r8, qword [rsi + 0x1b0]
mov rax, qword [rsi + 0x1a0]
lea rcx, [rax + r8]
cmp rbx, 2
jae 0x1800e6653
cmp r12, rbp
je 0x1800e66ce
mov byte [rcx], 0
inc r8
mov qword [rsi + 0x1b0], r8
mov rbp, r8
cmp rbp, r13
jb 0x1800e68be
mov rbx, qword [rsi + 0x1a0]
lea r12, [rbx + rdi]
mov rcx, r12
mov rdx, r15
mov r8, r14
call fcn.180199330
cmp rbp, rdi
jb 0x1800e68ca
sub ebp, r13d
add r13, rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x2c], 7
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x4c], 6
mov qword [rsp + 0x50], r13
movabs rax, 0x400000000
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x70], rax
lea rcx, [rsi + 0x1c0]
lea r8, [rsp + 0x68]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.Secur32.dll_EncryptMessage]
test eax, eax
je 0x1800e679d
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov eax, ebx
and eax, 3
lea rcx, [0x1800e68e0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
mov rdi, qword [rsp + 0x20]
jmp rax
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0x1b0], rax
mov rdi, qword [rsp + 0x20]
jb 0x1800e67be
mov qword [rsi + 0x1b0], rax
mov qword [rsi + 0x1b8], 0
mov qword [rsi + 0x200], r14
lea rcx, [rsp + 0x28]
mov rdx, rsi
call fcn.1800e7a60
cmp qword [rsp + 0x28], 0
je case.default.0x1800e6801
mov rbx, qword [rsp + 0x30]
mov eax, ebx
and eax, 3
lea rcx, [0x1800e68e0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movzx eax, byte [rbx + 0x10]
cmp al, 0xd
je 0x1800e687a
jmp 0x1800e6883
cmp byte [rbx + 0xf], 0xd
jne 0x1800e6883
lea r14, [rbx - 1]
mov qword [rdi], 2
mov qword [rsi + 0x138], 0
mov rsi, qword [rbx - 1]
mov rdi, qword [rbx + 7]
mov rcx, rsi
call qword [rdi]
cmp qword [rdi + 8], 0
je 0x1800e685a
cmp qword [rdi + 0x10], 0x11
jb 0x1800e6848
mov rsi, qword [rsi - 8]
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800e6899
mov rax, rbx
shr rax, 0x20
cmp eax, 0xd
jne 0x1800e6883
mov qword [rdi], 2
jmp 0x1800e688e
mov qword [rdi], 1
mov qword [rdi + 8], rbx
mov qword [rsi + 0x138], 0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x200]
mov qword [rdi], 0
mov qword [rdi + 8], rax
jmp 0x1800e688e
lea r8, str.C:UsersDadoodze.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.21_src_tls_stream.rsSenderC:UsersDadoodze.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.4.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, r13
jmp 0x1800e68d4
lea r8, str.C:UsersDadoodze.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.21_src_tls_stream.rsSenderC:UsersDadoodze.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.4.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, rdi
mov rdx, rbp
call fcn.18019ad00
ud2