Function at 0x140055d90
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r13, r9
mov rsi, rdx
mov r15, rcx
mov qword [rdx + 0x80], r8
lea rcx, [rsp + 0x28]
call fcn.1400aff70
mov eax, dword [rsp + 0x28]
cmp eax, 2
jne case.default.0x140055de0
mov rbx, qword [rsp + 0x30]
mov r14d, ebx
and r14d, 3
lea rax, [0x140056114]
movsxd rcx, dword [rax + r14*4]
add rcx, rax
jmp rcx
test eax, eax
je 0x140055e6d
mov rbp, qword [rsi + 0x40]
cmp rbp, qword [rsi + 0x58]
jne 0x140055fc8
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rsp + 0x2c]
mov r14, qword [rsp + 0x30]
mov ebx, r14d
shr r14, 0x20
cmp rax, r14
cmovb r14, rax
mov qword [rsp + 0x70], rcx
lea r12, [r14 + rcx]
add rbx, r12
mov rdi, rbx
sub rdi, rbp
jbe 0x140055ece
mov qword [rsp + 0x68], r15
mov rax, qword [rsi + 0x48]
sub rax, rbp
mov r15, rbp
cmp rax, rdi
jb 0x140055e96
mov rax, qword [rsi + 0x50]
lea rcx, [rax + r15]
cmp rdi, 2
jb 0x140055eb7
lea r8, [rdi - 1]
xor edx, edx
mov rbx, rax
call fcn.1401387a0
add r15, rdi
dec r15
add rbx, r15
mov rcx, rbx
jmp 0x140055ebc
movabs rbx, 0x8009031700000002
mov r14d, 2
mov rcx, rbx
shr rcx, 0x20
call fcn.1400eae40
cmp al, 0xd
je 0x140056009
jmp 0x14005609d
lea rcx, [rsi + 0x48]
mov rdx, rbp
mov r8, rdi
call fcn.14014e0b0
mov r15, qword [rsi + 0x58]
mov rax, qword [rsi + 0x50]
lea rcx, [rax + r15]
cmp rdi, 2
jae 0x140055e51
cmp rbx, rbp
je 0x140055ec2
mov byte [rcx], 0
inc r15
mov qword [rsi + 0x58], r15
mov rbp, r15
mov r15, qword [rsp + 0x68]
cmp r12, rbp
ja 0x1400560db
mov rcx, qword [rsi + 0x50]
mov rdi, qword [rsp + 0x70]
add rcx, rdi
mov rdx, r13
mov r8, r14
call fcn.140137a60
mov rdx, qword [rsi + 0x58]
cmp rdx, rdi
jb 0x1400560ef
cmp rdx, r12
jb 0x140056100
mov rax, qword [rsi + 0x50]
lea rcx, [rax + rdi]
sub edx, r12d
add r12, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x2c], 7
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], r14d
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
movabs rax, 0x400000000
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x80], rax
lea rcx, [rsi + 0x60]
lea r8, [rsp + 0x78]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x140055fa3
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, ebx
and r14d, 3
lea rax, [0x140056114]
movsxd rcx, dword [rax + r14*4]
add rcx, rax
jmp rcx
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0x58], rax
jb 0x140055fb9
mov qword [rsi + 0x58], rax
mov qword [rsi + 0x40], 0
mov qword [rsi + 0x1e0], r14
lea rcx, [rsp + 0x28]
mov rdx, rsi
call fcn.1400b1440
cmp qword [rsp + 0x28], 0
je case.default.0x140055ffb
mov rbx, qword [rsp + 0x30]
mov r14d, ebx
and r14d, 3
lea rax, [0x140056114]
movsxd rcx, dword [rax + r14*4]
add rcx, rax
jmp rcx
movzx eax, byte [rbx + 0x10]
cmp al, 0xd
jne 0x14005609d
mov qword [r15], 2
mov qword [rsi + 0x80], 0
cmp r14d, 1
je 0x14005603e
jmp 0x1400560b3
cmp byte [rbx + 0xf], 0xd
jne 0x14005609d
mov qword [r15], 2
mov qword [rsi + 0x80], 0
lea rsi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
cmp qword [rax + 8], 0
je 0x140056074
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140056065
mov r8, qword [r8 - 8]
mov rcx, qword [0x1401e4bf8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1401e4bf8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1400560b3
mov rax, rbx
shr rax, 0x20
cmp eax, 0xd
jne 0x14005609d
mov qword [r15], 2
jmp 0x1400560a8
mov qword [r15], 1
mov qword [r15 + 8], rbx
mov qword [rsi + 0x80], 0
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x1e0]
mov qword [r15], 0
mov qword [r15 + 8], rax
jmp 0x1400560a8
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.21_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r12
mov rdx, rbp
call fcn.140144eb0
ud2
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.21_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rdi
call fcn.140144eb0
ud2
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.21_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r12
call fcn.140144eb0
ud2