Function at 0x1400d3240
Capabilities:
Encrypt data via sspi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov dword [rbp + 0x10], 0xfffffffe
mov rax, rcx
mov qword [rcx + 0x130], rdx
mov rbx, qword [r8]
mov r14, qword [r8 + 8]
lea rcx, [rbp - 0x48]
mov qword [rbp + 8], rax
mov rdx, rax
call fcn.1400d5970
mov eax, dword [rbp - 0x48]
cmp eax, 2
jne 0x1400d3295
mov rsi, qword [rbp - 0x40]
jmp 0x1400d3448
test eax, eax
je 0x1400d33fd
mov rsi, qword [rbp + 8]
mov r12, qword [rsi + 0x190]
cmp r12, qword [rsi + 0x188]
jne 0x1400d3434
mov rdi, qword [rbp - 0x40]
mov r13d, edi
shr rdi, 0x20
cmp r14, rdi
cmovb rdi, r14
mov r15d, dword [rbp - 0x44]
lea r14, [rdi + r15]
add r13, r14
sub r13, r12
jbe case.0x1400d1b9b.300
lea rcx, [rsi + 0x178]
mov rax, qword [rcx]
sub rax, r12
cmp rax, r13
jae 0x1400d330e
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rdx, r12
mov r8, r13
call fcn.1401ab540
mov rsi, qword [rbp + 8]
mov r12, qword [rsi + 0x188]
mov rsi, qword [rsi + 0x180]
lea rcx, [rsi + r12]
or al, 0x26
cmp r13, 2
jb 0x1400d3336
lea r8, [r13 - 1]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
add r12, r13
in al, dx
dec r12
add rsi, r12
out 0x48, al
mov ecx, esi
mov byte [rcx], 0
inc r12
mov rsi, qword [rbp + 8]
mov qword [rsi + 0x188], r12
mov dword [rsi + 0x188], esp
cmp r14, r12
ja 0x1400d3501
mov rcx, qword [rsi + 0x180]
add rcx, r15
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsi + 0x188]
mov edx, dword [rsi + 0x188]
cmp rdx, r15
jb 0x1400d3515
invalid
add dword [rax], eax
invalid
cmp rdx, r14
jb 0x1400d3526
mov rax, qword [rsi + 0x180]
lea rcx, [rax + r15]
sub edx, r14d
add r14, rax
mov dword [rbp - 0x48], r15d
mov dword [rbp - 0x44], 7
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], edi
mov dword [rbp - 0x34], 1
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x28], edx
mov dword [rbp - 0x24], 6
mov qword [rbp - 0x20], r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
movabs rax, 0x400000000
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x50], rax
lea rcx, [rsi + 0x1e8]
lea r8, [rbp - 0x58]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x1400d3409
mov esi, eax
shl rsi, 0x20
or rsi, 2
jmp 0x1400d3448
movabs rsi, 0x8009031700000002
jmp 0x1400d3448
mov eax, dword [rbp - 0x38]
add eax, dword [rbp - 0x48]
add eax, dword [rbp - 0x28]
cmp qword [rsi + 0x188], rax
jb 0x1400d3422
mov qword [rsi + 0x188], rax
mov qword [rsi + 0x190], 0
mov qword [rsi + 0x210], rdi
mov rcx, rsi
call fcn.1400d7a20
test rax, rax
je 0x1400d34e7
mov rsi, rdx
mov rcx, rsi
call fcn.1400d35e0
mov rcx, qword [rbp + 8]
mov qword [rcx + 0x130], 0
cmp al, 0xd
jne 0x1400d34c8
mov eax, esi
and eax, 3
mov edi, 2
cmp eax, 1
jne 0x1400d34cd
lea rax, [rsi - 1]
mov qword [rbp - 8], rax
mov rax, qword [rsi - 1]
mov qword [rbp + 8], rax
mov rax, qword [rsi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x1400d3498
mov rcx, qword [rbp + 8]
call rax
mov rcx, qword [rbp + 8]
mov rax, qword [rbp]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400d34b2
mov r8, qword [rax + 0x10]
call fcn.140007be0
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.140007be0
jmp 0x1400d34cd
mov edi, 1
mov rax, rdi
mov rdx, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 8]
mov rsi, qword [rax + 0x210]
mov qword [rax + 0x130], 0
xor edi, edi
jmp 0x1400d34cd
lea r8, str.C:UsersDemon666.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.26_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r14
mov rdx, r12
call fcn.1401b2d40
jmp 0x1400d3535
lea r8, str.C:UsersDemon666.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.26_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r15
call fcn.1401b2d40
jmp 0x1400d3535
lea r8, str.C:UsersDemon666.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.26_src_tls_stream.rsassertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
mov rcx, r14
call fcn.1401b2d40
ud2