Function at 0x140055950
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 rbp, r9
mov rsi, rdx
mov r13, rcx
mov qword [rdx + 0x90], r8
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400b1570
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne case.default.0x1400559a1
mov rbx, qword [rsp + 0x38]
mov edi, ebx
and edi, 3
lea rax, [0x140055d7c]
movsxd rcx, dword [rax + rdi*4]
add rcx, rax
jmp rcx
movzx eax, byte [rbx + 0x10]
cmp al, 0xd
je 0x140055a6a
jmp 0x140055cef
test eax, eax
je 0x140055a47
mov r15, qword [rsi + 0x40]
mov rdx, qword [rsi + 0x58]
cmp r15, rdx
jne 0x140055bcd
mov qword [rsp + 0x28], r13
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rsp + 0x34]
mov r14, qword [rsp + 0x38]
mov edi, r14d
shr r14, 0x20
cmp rax, r14
cmovb r14, rax
mov qword [rsp + 0x70], rcx
lea r13, [r14 + rcx]
add rdi, r13
mov r12, rdi
sub r12, r15
jbe 0x140055ac7
mov rax, qword [rsi + 0x48]
sub rax, r15
mov rbx, r15
cmp rax, r12
jb 0x140055a8b
mov rax, qword [rsi + 0x50]
lea rcx, [rax + rbx]
cmp r12, 2
jb 0x140055ab0
lea r8, [r12 - 1]
xor edx, edx
mov rdi, rax
call fcn.1401387a0
add rbx, r12
dec rbx
add rdi, rbx
mov rcx, rdi
jmp 0x140055ab5
movabs rbx, 0x8009031700000002
mov edi, 2
mov rcx, rbx
shr rcx, 0x20
call fcn.1400eae40
cmp al, 0xd
jne 0x140055cef
mov qword [r13], 2
mov qword [rsi + 0x90], 0
cmp edi, 1
je 0x140055c8f
jmp 0x140055d06
lea rcx, [rsi + 0x48]
mov rdx, r15
mov r8, r12
call fcn.14014e0b0
mov rbx, qword [rsi + 0x58]
mov rax, qword [rsi + 0x50]
lea rcx, [rax + rbx]
cmp r12, 2
jae 0x140055a2a
cmp rdi, r15
je 0x140055abb
mov byte [rcx], 0
inc rbx
mov qword [rsi + 0x58], rbx
mov r15, rbx
lea rbx, [rsp + 0x30]
cmp r13, r15
ja 0x140055d45
mov rcx, qword [rsi + 0x50]
mov rdi, qword [rsp + 0x70]
add rcx, rdi
mov rdx, rbp
mov r8, r14
call fcn.140137a60
mov rdx, qword [rsi + 0x58]
cmp rdx, rdi
jb 0x140055d59
cmp rdx, r13
jb 0x140055d6a
mov rax, qword [rsi + 0x50]
lea rcx, [rax + rdi]
sub edx, r13d
add r13, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], 7
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], 1
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x54], 6
mov qword [rsp + 0x58], r13
movabs rax, 0x400000000
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rbx
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 0x140055b9a
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov edi, ebx
and edi, 3
lea rax, [0x140055d7c]
movsxd rcx, dword [rax + rdi*4]
add rcx, rax
mov r13, qword [rsp + 0x28]
jmp rcx
mov eax, dword [rsp + 0x40]
add eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x50]
mov rdx, qword [rsi + 0x58]
cmp rdx, rax
mov r13, qword [rsp + 0x28]
jb 0x140055bbb
mov qword [rsi + 0x58], rax
mov rdx, rax
mov qword [rsi + 0x40], 0
mov qword [rsi + 0xe0], r14
xor r15d, r15d
lea r14, [rsi + 0x98]
lea r12, [rsp + 0x30]
mov rax, rdx
sub rax, r15
je 0x140055c49
nop word cs:[rax + rax]
jb 0x140055d1a
mov r8, qword [rsi + 0x90]
test r8, r8
je 0x140055d2b
mov r9, qword [rsi + 0x50]
add r9, r15
mov qword [rsp + 0x20], rax
mov rcx, r12
mov rdx, r14
call fcn.1400fbce0
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x140055ce5
mov rbx, qword [rsp + 0x38]
test rax, rax
jne 0x140055c61
add r15, rbx
mov qword [rsi + 0x40], r15
mov rdx, qword [rsi + 0x58]
mov rax, rdx
sub rax, r15
jne 0x140055bf0
mov rax, qword [rsi + 0xe0]
mov qword [r13], 0
mov qword [r13 + 8], rax
jmp 0x140055cfb
mov edi, ebx
and edi, 3
lea rax, [0x140055d7c]
movsxd rcx, dword [rax + rdi*4]
add rcx, rax
jmp rcx
cmp byte [rbx + 0xf], 0xd
jne 0x140055cef
mov qword [r13], 2
mov qword [rsi + 0x90], 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 0x140055cc5
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140055cb6
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 0x140055d06
mov rax, rbx
shr rax, 0x20
cmp eax, 0xd
jne 0x140055cef
mov qword [r13], 2
jmp 0x140055cfb
mov qword [r13], 1
mov qword [r13 + 8], rbx
mov qword [rsi + 0x90], 0
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
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, r15
call fcn.140144ea0
ud2
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.140144ec0
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, r13
mov rdx, r15
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, r13
call fcn.140144eb0
ud2