Function at 0x140049b20
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.1400a8280
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne case.default.0x140049b71
mov rbx, qword [rsp + 0x38]
mov edi, ebx
and edi, 3
lea rax, [0x140049f4c]
movsxd rcx, dword [rax + rdi*4]
add rcx, rax
jmp rcx
movzx eax, byte [rbx + 0x10]
cmp al, 0xd
je 0x140049c3a
jmp 0x140049ebf
test eax, eax
je 0x140049c17
mov r15, qword [rsi + 0x40]
mov rdx, qword [rsi + 0x58]
cmp r15, rdx
jne 0x140049d9d
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 0x140049c97
mov rax, qword [rsi + 0x48]
sub rax, r15
mov rbx, r15
cmp rax, r12
jb 0x140049c5b
mov rax, qword [rsi + 0x50]
lea rcx, [rax + rbx]
cmp r12, 2
jb 0x140049c80
lea r8, [r12 - 1]
xor edx, edx
mov rdi, rax
call fcn.140111a10
add rbx, r12
dec rbx
add rdi, rbx
mov rcx, rdi
jmp 0x140049c85
movabs rbx, 0x8009031700000002
mov edi, 2
mov rcx, rbx
shr rcx, 0x20
call fcn.1400deab0
cmp al, 0xd
jne 0x140049ebf
mov qword [r13], 2
mov qword [rsi + 0x90], 0
cmp edi, 1
je 0x140049e5f
jmp 0x140049ed6
lea rcx, [rsi + 0x48]
mov rdx, r15
mov r8, r12
call fcn.1401270c0
mov rbx, qword [rsi + 0x58]
mov rax, qword [rsi + 0x50]
lea rcx, [rax + rbx]
cmp r12, 2
jae 0x140049bfa
cmp rdi, r15
je 0x140049c8b
mov byte [rcx], 0
inc rbx
mov qword [rsi + 0x58], rbx
mov r15, rbx
lea rbx, [rsp + 0x30]
cmp r13, r15
ja 0x140049f15
mov rcx, qword [rsi + 0x50]
mov rdi, qword [rsp + 0x70]
add rcx, rdi
mov rdx, rbp
mov r8, r14
call fcn.140110cd0
mov rdx, qword [rsi + 0x58]
cmp rdx, rdi
jb 0x140049f29
cmp rdx, r13
jb 0x140049f3a
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 0x140049d6a
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov edi, ebx
and edi, 3
lea rax, [0x140049f4c]
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 0x140049d8b
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 0x140049e19
nop word cs:[rax + rax]
jb 0x140049eea
mov r8, qword [rsi + 0x90]
test r8, r8
je 0x140049efb
mov r9, qword [rsi + 0x50]
add r9, r15
mov qword [rsp + 0x20], rax
mov rcx, r12
mov rdx, r14
call fcn.1400edce0
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x140049eb5
mov rbx, qword [rsp + 0x38]
test rax, rax
jne 0x140049e31
add r15, rbx
mov qword [rsi + 0x40], r15
mov rdx, qword [rsi + 0x58]
mov rax, rdx
sub rax, r15
jne 0x140049dc0
mov rax, qword [rsi + 0xe0]
mov qword [r13], 0
mov qword [r13 + 8], rax
jmp 0x140049ecb
mov edi, ebx
and edi, 3
lea rax, [0x140049f4c]
movsxd rcx, dword [rax + rdi*4]
add rcx, rax
jmp rcx
cmp byte [rbx + 0xf], 0xd
jne 0x140049ebf
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 0x140049e95
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140049e86
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 0x140049ed6
mov rax, rbx
shr rax, 0x20
cmp eax, 0xd
jne 0x140049ebf
mov qword [r13], 2
jmp 0x140049ecb
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.14011e110
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.14011e130
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.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, r13
call fcn.14011e120
ud2