Function at 0x140138050
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.140134900
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x14013808d
mov r15, qword [rsp + 0x38]
jmp 0x1401381f2
test eax, eax
je 0x1401381e8
mov rdx, qword [rsi + 0x90]
mov rbx, qword [rsi + 0x98]
cmp rbx, rdx
jne 0x1401382b3
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 0x14013812e
mov rax, qword [rsi + 0x80]
sub rax, rbx
cmp rax, rbp
jb 0x14013836f
mov r15, qword [rsi + 0x88]
lea rcx, [r15 + rbx]
cmp rbp, 2
jb 0x140138121
lea r8, [rbp - 1]
mov qword [rsp + 0x70], rdi
xor edx, edx
call sub.VCRUNTIME140.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 0x1401383c9
mov r15, qword [rsi + 0x88]
lea rbp, [r15 + rdi]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
cmp rbx, rdi
jb 0x1401383db
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 qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x140138278
mov r15d, eax
shl r15, 0x20
or r15, 2
mov rdi, qword [rsp + 0x28]
jmp 0x1401381f2
movabs r15, 0x8009031700000002
mov rcx, r15
call fcn.140102be0
cmp al, 0xd
jne 0x140138268
mov qword [rdi], 2
mov qword [rsi + 0x38], 0
mov eax, r15d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x14013834c
test rax, rax
je 0x14013834c
lea rsi, [r15 - 1]
mov rdi, qword [r15 - 1]
mov rbx, qword [r15 + 7]
mov rcx, rdi
call qword [rbx]
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140138250
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.140020a10
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call fcn.140020a10
jmp 0x14013834c
mov qword [rdi], 1
mov qword [rdi + 8], r15
jmp 0x140138344
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 0x14013829f
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 0x140138332
lea r14, [rsi + 0x10]
lea r12, [rsp + 0x30]
nop word cs:[rax + rax]
mov rax, rdx
sub rax, rbx
jb 0x1401383a2
mov r8, qword [rsi + 0x38]
test r8, r8
je 0x1401383b1
mov r9, qword [rsi + 0x88]
add r9, rbx
mov qword [rsp + 0x20], rax
mov rcx, r12
mov rdx, r14
call fcn.14019f450
mov rax, qword [rsp + 0x30]
cmp rax, 2
je 0x140138360
mov r15, qword [rsp + 0x38]
test rax, rax
jne 0x1401381f2
add rbx, r15
mov qword [rsi + 0x98], rbx
mov rdx, qword [rsi + 0x90]
cmp rbx, rdx
jne 0x1401382d0
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 0x1401381f2
lea rcx, [rsi + 0x80]
mov rdx, rbx
mov r8, rbp
call fcn.14033a8b0
mov rbx, qword [rsi + 0x90]
mov r15, qword [rsi + 0x88]
lea rcx, [r15 + rbx]
cmp rbp, 2
jae 0x140138100
jmp 0x140138121
lea r8, [0x1403cf188]
mov rcx, rbx
call fcn.1403458b0
lea rcx, str.assertion_failed:__self.context.is_null__
lea r8, [0x1403c5cc8]
mov edx, 0x29
call fcn.140345400
lea r8, [0x1403cf100]
mov rcx, r13
mov rdx, rbx
call fcn.140345930
lea r8, [0x1403cf118]
mov rcx, rdi
mov rdx, rbx
call fcn.140345930
int3