Function at 0x1400cc114
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 + 0x80], r8
lea rdi, [rsp + 0x28]
mov rcx, rdi
call fcn.1400e769d
mov eax, dword [rdi]
cmp eax, 2
jne case.default.0x1400cc16e
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, [0x1400cc3d4]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
test eax, eax
je 0x1400cc293
mov rbx, qword [rsi + 0x40]
cmp rbx, qword [rsi + 0x58]
jne 0x1400cc2e7
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 0x1400cc1bf
lea rcx, [rsi + 0x48]
call fcn.140034ddf
mov rbx, qword [rsi + 0x58]
cmp rbx, rbp
jb 0x1400cc3a6
mov rcx, qword [rsi + 0x50]
add rcx, r12
mov rdx, r13
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
cmp rbx, r12
jb 0x1400cc3b2
mov rdx, qword [rsi + 0x58]
cmp rdx, rbp
jb 0x1400cc3c1
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 0x1400cc2c2
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, [0x1400cc3d4]
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, [0x1400cc3d4]
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 0x1400cc2d8
mov qword [rsi + 0x58], rax
mov qword [rsi + 0x40], 0
mov qword [rsi + 0x1e0], r15
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.1400e861d
cmp qword [rdi], 0
je case.default.0x1400cc327
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, [0x1400cc3d4]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov al, byte [rbx + 0x10]
jmp 0x1400cc33f
mov al, byte [rbx + 0xf]
jmp 0x1400cc33f
mov rcx, rbx
shr rcx, 0x20
call fcn.140147190
cmp al, 0xd
jne 0x1400cc36b
mov qword [r14], 2
mov qword [rsi + 0x80], 0
mov rcx, rdi
call fcn.14006467d
jmp 0x1400cc381
mov rax, rbx
shr rax, 0x20
cmp eax, 0xd
je 0x1400cc343
mov qword [r14], 1
mov qword [r14 + 8], rbx
mov qword [rsi + 0x80], 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 + 0x1e0]
mov qword [r14], 0
mov qword [r14 + 8], rax
jmp 0x1400cc376
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 0x1400cc3bc
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 0x1400cc3cb
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