Function at 0x140049f60
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.1400a6c80
mov eax, dword [rsp + 0x28]
cmp eax, 2
jne case.default.0x140049fb0
mov rbx, qword [rsp + 0x30]
mov r14d, ebx
and r14d, 3
lea rax, [0x14004a2e4]
movsxd rcx, dword [rax + r14*4]
add rcx, rax
jmp rcx
test eax, eax
je 0x14004a03d
mov rbp, qword [rsi + 0x40]
cmp rbp, qword [rsi + 0x58]
jne 0x14004a198
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 0x14004a09e
mov qword [rsp + 0x68], r15
mov rax, qword [rsi + 0x48]
sub rax, rbp
mov r15, rbp
cmp rax, rdi
jb 0x14004a066
mov rax, qword [rsi + 0x50]
lea rcx, [rax + r15]
cmp rdi, 2
jb 0x14004a087
lea r8, [rdi - 1]
xor edx, edx
mov rbx, rax
call fcn.140111a10
add r15, rdi
dec r15
add rbx, r15
mov rcx, rbx
jmp 0x14004a08c
movabs rbx, 0x8009031700000002
mov r14d, 2
mov rcx, rbx
shr rcx, 0x20
call fcn.1400deab0
cmp al, 0xd
je 0x14004a1d9
jmp 0x14004a26d
lea rcx, [rsi + 0x48]
mov rdx, rbp
mov r8, rdi
call fcn.1401270c0
mov r15, qword [rsi + 0x58]
mov rax, qword [rsi + 0x50]
lea rcx, [rax + r15]
cmp rdi, 2
jae 0x14004a021
cmp rbx, rbp
je 0x14004a092
mov byte [rcx], 0
inc r15
mov qword [rsi + 0x58], r15
mov rbp, r15
mov r15, qword [rsp + 0x68]
cmp r12, rbp
ja 0x14004a2ab
mov rcx, qword [rsi + 0x50]
mov rdi, qword [rsp + 0x70]
add rcx, rdi
mov rdx, r13
mov r8, r14
call fcn.140110cd0
mov rdx, qword [rsi + 0x58]
cmp rdx, rdi
jb 0x14004a2bf
cmp rdx, r12
jb 0x14004a2d0
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 0x14004a173
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, ebx
and r14d, 3
lea rax, [0x14004a2e4]
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 0x14004a189
mov qword [rsi + 0x58], rax
mov qword [rsi + 0x40], 0
mov qword [rsi + 0x1e0], r14
lea rcx, [rsp + 0x28]
mov rdx, rsi
call fcn.1400a8150
cmp qword [rsp + 0x28], 0
je case.default.0x14004a1cb
mov rbx, qword [rsp + 0x30]
mov r14d, ebx
and r14d, 3
lea rax, [0x14004a2e4]
movsxd rcx, dword [rax + r14*4]
add rcx, rax
jmp rcx
movzx eax, byte [rbx + 0x10]
cmp al, 0xd
jne 0x14004a26d
mov qword [r15], 2
mov qword [rsi + 0x80], 0
cmp r14d, 1
je 0x14004a20e
jmp 0x14004a283
cmp byte [rbx + 0xf], 0xd
jne 0x14004a26d
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 0x14004a244
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x14004a235
mov r8, qword [r8 - 8]
mov rcx, qword [0x140195bd0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x140195bd0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x14004a283
mov rax, rbx
shr rax, 0x20
cmp eax, 0xd
jne 0x14004a26d
mov qword [r15], 2
jmp 0x14004a278
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 0x14004a278
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.14011e120
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.14011e120
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.14011e120
ud2