Function at 0x140216c20
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 r12, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0x38], r8
lea rcx, [rsp + 0x30]
call fcn.140219bd0
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x140216c5d
mov r15, qword [rsp + 0x38]
jmp 0x140216dc1
test eax, eax
je 0x140216db7
mov rdx, qword [rsi + 0x90]
mov rbx, qword [rsi + 0x98]
cmp rbx, rdx
jne 0x140216e8e
mov qword [rsp + 0x28], rdi
mov rax, qword [rsp + 0xf0]
mov r14, qword [rsp + 0x38]
mov ebp, r14d
shr r14, 0x20
cmp rax, r14
cmovb r14, rax
mov edi, dword [rsp + 0x34]
lea r13, [r14 + rdi]
add rbp, r13
sub rbp, rbx
jbe 0x140216cfe
mov rax, qword [rsi + 0x80]
sub rax, rbx
cmp rax, rbp
jb 0x140216f3f
mov r15, qword [rsi + 0x88]
lea rcx, [r15 + rbx]
cmp rbp, 2
jb 0x140216cf1
lea r8, [rbp - 1]
mov qword [rsp + 0x70], rdi
xor edx, edx
call sub.msvcrt.dll_memset
mov rdi, qword [rsp + 0x70]
add rbx, rbp
dec rbx
add r15, rbx
mov rcx, r15
mov byte [rcx], 0
inc rbx
mov qword [rsi + 0x90], rbx
cmp rbx, r13
jb 0x140216f99
mov r15, qword [rsi + 0x88]
lea rbp, [r15 + rdi]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call sub.msvcrt.dll_memcpy
cmp rbx, rdi
jb 0x140216fab
sub ebx, r13d
add r13, r15
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], 7
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], 1
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x54], 6
mov qword [rsp + 0x58], r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movabs rax, 0x400000000
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x80], rax
lea rcx, [rsi + 0xf0]
lea r8, [rsp + 0x78]
xor edx, edx
xor r9d, r9d
call sub.secur32.dll_EncryptMessage
test eax, eax
je 0x140216e53
mov r15d, eax
shl r15, 0x20
or r15, 2
mov rdi, qword [rsp + 0x28]
jmp 0x140216dc1
movabs r15, 0x8009031700000002
mov rcx, r15
call fcn.1400c4ff0
cmp al, 0xd
jne 0x140216e43
mov qword [rdi], 2
mov qword [rsi + 0x38], 0
mov eax, r15d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x140216f1c
test rax, rax
je 0x140216f1c
lea rsi, [r15 - 1]
mov rdi, qword [r15 - 1]
mov rbx, qword [r15 + 7]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x140216e2d
cmp qword [rbx + 0x10], 0x11
jb 0x140216e1c
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, rdi
call fcn.14029804c
mov rcx, qword [0x1403ac160]
xor edx, edx
mov r8, rsi
call fcn.14029804c
jmp 0x140216f1c
mov qword [rdi], 1
mov qword [rdi + 8], r15
jmp 0x140216f14
mov eax, dword [rsp + 0x40]
add eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x50]
mov rdx, qword [rsi + 0x90]
cmp rdx, rax
mov rdi, qword [rsp + 0x28]
jb 0x140216e7a
mov qword [rsi + 0x90], rax
mov rdx, rax
mov qword [rsi + 0x98], 0
mov qword [rsi + 0x118], r14
xor ebx, ebx
cmp rbx, rdx
je 0x140216f02
lea r14, [rsi + 0x10]
lea r12, [rsp + 0x30]
nop dword [rax]
mov rax, rdx
sub rax, rbx
jb 0x140216f72
mov r8, qword [rsi + 0x38]
test r8, r8
je 0x140216f81
mov r9, qword [rsi + 0x88]
add r9, rbx
mov qword [rsp + 0x20], rax
mov rcx, r12
mov rdx, r14
call fcn.14027e930
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x140216f30
mov r15, qword [rsp + 0x38]
test rax, rax
jne 0x140216dc1
add rbx, r15
mov qword [rsi + 0x98], rbx
mov rdx, qword [rsi + 0x90]
cmp rbx, rdx
jne 0x140216ea0
mov rax, qword [rsi + 0x118]
mov qword [rdi], 0
mov qword [rdi + 8], rax
mov qword [rsi + 0x38], 0
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs r15, 0xd00000003
jmp 0x140216dc1
lea rcx, [rsi + 0x80]
mov rdx, rbx
mov r8, rbp
call fcn.14011a890
mov rbx, qword [rsi + 0x90]
mov r15, qword [rsi + 0x88]
lea rcx, [r15 + rbx]
cmp rbp, 2
jae 0x140216cd0
jmp 0x140216cf1
lea r8, str._home_hj_.cargo_registry_src_index.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsStartSizeSizeLwsExtensionSizeLfBodyCrBodyLfTrailerTrailerLfEndCrEndLfEnd_home_hj_.cargo_registry_src_index.crates.io_6f17d22bba15001f_bytes_1.5.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, rbx
call fcn.1400aae80
lea rcx, str.assertion_failed:__self.context.is_null__
lea r8, [0x14035b6b0]
mov edx, 0x29
call fcn.1400abba0
lea r8, str._home_hj_.cargo_registry_src_index.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsStartSizeSizeLwsExtensionSizeLfBodyCrBodyLfTrailerTrailerLfEndCrEndLfEnd_home_hj_.cargo_registry_src_index.crates.io_6f17d22bba15001f_bytes_1.5.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, r13
mov rdx, rbx
call fcn.1400ab800
lea r8, str._home_hj_.cargo_registry_src_index.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rsStartSizeSizeLwsExtensionSizeLfBodyCrBodyLfTrailerTrailerLfEndCrEndLfEnd_home_hj_.cargo_registry_src_index.crates.io_6f17d22bba15001f_bytes_1.5.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, rdi
mov rdx, rbx
call fcn.1400ab800
int3