Function at 0x140017b70
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov qword [rsp + 0x40], rdx
test r8, r8
je 0x140017e3b
mov rbx, r8
mov r13, rcx
lea rdi, [rsp + 0x28]
lea rax, [rcx + 0xa0]
mov qword [rsp + 0x30], rax
lea rax, [rcx + 8]
mov qword [rsp + 0x88], rax
lea rsi, [0x140017ea4]
xorps xmm6, xmm6
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14000db96
mov eax, dword [rsp + 0x48]
cmp eax, 2
jne case.default.0x140017bfb
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 1
mov eax, ebp
and eax, 3
movsxd rax, dword [rsi + rax*4]
add rax, rsi
jmp rax
test eax, eax
je 0x140017d4c
mov rbp, qword [r13 + 0xb8]
cmp rbp, qword [r13 + 0xb0]
jne 0x140017dac
mov r12, qword [rsp + 0x50]
mov edx, r12d
shr r12, 0x20
cmp rbx, r12
mov qword [rsp + 0x38], rbx
cmovb r12, rbx
mov r14d, dword [rsp + 0x4c]
lea r15, [r12 + r14]
add rdx, r15
sub rdx, rbp
jbe 0x140017c53
mov rcx, qword [rsp + 0x30]
call fcn.14000ee2d
mov rbp, qword [r13 + 0xb0]
cmp rbp, r15
jb 0x140017e65
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
add rcx, r14
mov rdx, qword [rsp + 0x40]
mov r8, r12
call fcn.1400356d0
cmp rbp, r14
jb 0x140017e71
lea rbp, [rsp + 0x48]
mov rdx, qword [r13 + 0xb0]
cmp rdx, r15
jb 0x140017e80
mov rax, qword [r13 + 0xa0]
lea rcx, [rax + r14]
lea r8, [rax + r15]
sub edx, r15d
lea rsi, [rsp + 0x78]
movups xmmword [rsi], xmm6
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x4c], 7
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], 1
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x6c], 6
mov qword [rsp + 0x70], r8
movabs rax, 0x400000000
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rbp
mov rcx, qword [rsp + 0x88]
xor edx, edx
lea r8, [rsp + 0x90]
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x140017d72
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 1
mov eax, ebp
and eax, 3
lea rsi, [0x140017ea4]
movsxd rax, dword [rsi + rax*4]
add rax, rsi
mov rbx, qword [rsp + 0x38]
jmp rax
movabs rbp, 0x8009031700000002
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 1
mov eax, ebp
and eax, 3
movsxd rax, dword [rsi + rax*4]
add rax, rsi
jmp rax
mov eax, dword [rsp + 0x58]
add eax, dword [rsp + 0x48]
add eax, dword [rsp + 0x68]
cmp qword [r13 + 0xb0], rax
lea rsi, [0x140017ea4]
mov rbx, qword [rsp + 0x38]
jb 0x140017d9a
mov qword [r13 + 0xb0], rax
mov qword [r13 + 0xb8], 0
mov qword [r13 + 0xc0], r12
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14000e9f5
cmp qword [rsp + 0x48], 0
je case.default.0x140017de0
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 1
mov eax, ebp
and eax, 3
movsxd rax, dword [rsi + rax*4]
add rax, rsi
jmp rax
mov al, byte [rbp + 0x10]
jmp 0x140017df8
mov al, byte [rbp + 0xf]
jmp 0x140017df8
mov rcx, rbp
shr rcx, 0x20
call fcn.140024680
cmp al, 0x23
je 0x140017e0a
jmp 0x140017e3d
mov rax, rbp
shr rax, 0x20
cmp eax, 0x23
jne 0x140017e3d
mov rcx, rdi
call fcn.14000e8b8
test rbx, rbx
jne 0x140017bc6
jmp 0x140017e3b
mov rcx, qword [r13 + 0xc0]
test rcx, rcx
je 0x140017e5c
mov rax, rbx
sub rax, rcx
jb 0x140017e91
add qword [rsp + 0x40], rcx
mov rbx, rax
jmp 0x140017e12
xor ebp, ebp
mov rax, rbp
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbp, str.failed_to_write_whole_buffer
jmp 0x140017e3d
lea r8, [0x14004ee98]
mov rcx, r15
jmp 0x140017e7b
lea r8, [0x14004eeb0]
mov rcx, r14
mov rdx, rbp
jmp 0x140017e8a
lea r8, [0x14004eec8]
mov rcx, r15
call fcn.140043100
ud2
lea r8, [0x14004dc58]
mov rdx, rbx
call fcn.1400430f0
ud2