Function at 0x1400cbbd4
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 r13, r9
mov rsi, rdx
mov r14, rcx
mov qword [rdx + 0x90], r8
lea rdi, [rsp + 0x28]
mov rcx, rdi
call fcn.1400e8819
mov eax, dword [rdi]
cmp eax, 2
jne case.default.0x1400cbc2e
lea rdi, [rsp + 0x30]
mov rbx, qword [rdi]
mov qword [rdi], rbx
mov qword [rdi - 8], 1
mov eax, ebx
and eax, 3
lea rcx, [0x1400cbe94]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
test eax, eax
je 0x1400cbd53
mov rbx, qword [rsi + 0x40]
cmp rbx, qword [rsi + 0x58]
jne 0x1400cbda7
mov rax, qword [rsp + 0xe0]
mov r15, qword [rsp + 0x30]
mov edx, r15d
shr r15, 0x20
cmp rax, r15
cmovb r15, rax
mov r12d, dword [rsp + 0x2c]
lea rbp, [r15 + r12]
add rdx, rbp
cmp rbx, rdx
jae 0x1400cbc7f
lea rcx, [rsi + 0x48]
call fcn.140034ddf
mov rbx, qword [rsi + 0x58]
cmp rbx, rbp
jb 0x1400cbe66
mov rcx, qword [rsi + 0x50]
add rcx, r12
mov rdx, r13
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
cmp rbx, r12
jb 0x1400cbe72
mov rdx, qword [rsi + 0x58]
cmp rdx, rbp
jb 0x1400cbe81
mov rax, qword [rsi + 0x50]
lea rcx, [rax + r12]
lea rbx, [rax + rbp]
sub edx, ebp
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x2c], 7
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x4c], 6
mov qword [rsp + 0x50], rbx
movabs rax, 0x400000000
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov qword [r8 + 8], rdi
lea rcx, [rsi + 0x60]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x1400cbd82
mov ebx, eax
shl rbx, 0x20
or rbx, 2
lea rdi, [rsp + 0x30]
mov qword [rdi], rbx
mov qword [rdi - 8], 1
mov eax, ebx
and eax, 3
lea rcx, [0x1400cbe94]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
movabs rbx, 0x8009031700000002
lea rdi, [rsp + 0x30]
mov qword [rdi], rbx
mov qword [rdi - 8], 1
mov eax, ebx
and eax, 3
lea rcx, [0x1400cbe94]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0x58], rax
jb 0x1400cbd98
mov qword [rsi + 0x58], rax
mov qword [rsi + 0x40], 0
mov qword [rsi + 0xe0], r15
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.1400e96ed
cmp qword [rdi], 0
je case.default.0x1400cbde7
lea rdi, [rsp + 0x30]
mov rbx, qword [rdi]
mov qword [rdi], rbx
mov qword [rdi - 8], 1
mov eax, ebx
and eax, 3
lea rcx, [0x1400cbe94]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov al, byte [rbx + 0x10]
jmp 0x1400cbdff
mov al, byte [rbx + 0xf]
jmp 0x1400cbdff
mov rcx, rbx
shr rcx, 0x20
call fcn.140147190
cmp al, 0xd
jne 0x1400cbe2b
mov qword [r14], 2
mov qword [rsi + 0x90], 0
mov rcx, rdi
call fcn.14006467d
jmp 0x1400cbe41
mov rax, rbx
shr rax, 0x20
cmp eax, 0xd
je 0x1400cbe03
mov qword [r14], 1
mov qword [r14 + 8], rbx
mov qword [rsi + 0x90], 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 + 0xe0]
mov qword [r14], 0
mov qword [r14 + 8], rax
jmp 0x1400cbe36
lea r8, str.C:UsersBraVera.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.21_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rbp
jmp 0x1400cbe7c
lea r8, str.C:UsersBraVera.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.21_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r12
mov rdx, rbx
jmp 0x1400cbe8b
lea r8, str.C:UsersBraVera.cargo_registry_srcgithub.com_1ecc6299db9ec823_schannel_0.1.21_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, rbp
call fcn.1402a6550
ud2