Function at 0x140017304
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 0x140017705
mov r13, r8
mov rsi, rcx
lea rdi, [rsp + 0x30]
lea rax, [rcx + 0xa0]
mov qword [rsp + 0x38], rax
lea rax, [rcx + 8]
mov qword [rsp + 0x88], rax
movabs r15, 0x8009031700000002
xorps xmm6, xmm6
lea rbx, [0x140017750]
lea r12, [0x140017760]
lea rcx, [rsp + 0x48]
mov rdx, rsi
call fcn.14000d4cb
cmp dword [rsp + 0x48], 0
je case.default.0x14001739e
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], 1
mov eax, ebp
and eax, 3
movsxd rax, dword [rbx + rax*4]
add rax, rbx
jmp rax
mov al, byte [rbp + 0x10]
jmp case.0x1400175d6.0
cmp dword [rsp + 0x4c], 0
mov rbp, r15
je 0x140017384
mov r14, qword [rsi + 0xb8]
cmp r14, qword [rsi + 0xb0]
jne 0x140017559
mov rdi, qword [rsp + 0x50]
mov r12d, dword [rsp + 0x58]
cmp r13, r12
cmovbe r12, r13
mov ebp, edi
lea r15, [r12 + rbp]
mov rdx, rdi
shr rdx, 0x20
add rdx, r15
sub rdx, r14
jbe 0x1400173fd
mov rcx, qword [rsp + 0x38]
call fcn.14000e70b
mov r14, qword [rsi + 0xb0]
cmp r14, r15
jb 0x14001772f
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
add rcx, rbp
mov rdx, qword [rsp + 0x40]
mov r8, r12
call fcn.140035120
cmp r14, rbp
jb 0x140017734
lea rbx, [rsp + 0x48]
mov rdx, qword [rsi + 0xb0]
cmp rdx, r15
jb 0x14001773c
mov r14, rsi
mov rax, qword [rsi + 0xa0]
add rbp, rax
lea rcx, [rax + r15]
sub edx, r15d
lea rsi, [rsp + 0x78]
movups xmmword [rsi], xmm6
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x4c], 7
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x5c], 1
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x6c], 6
mov qword [rsp + 0x70], rcx
movabs rax, 0x400000000
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rbx
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 0x14001750b
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], 1
mov eax, ebp
and eax, 3
lea rbx, [0x140017750]
movsxd rax, dword [rbx + rax*4]
add rax, rbx
lea rdi, [rsp + 0x30]
mov rsi, r14
movabs r15, 0x8009031700000002
lea r12, [0x140017760]
jmp rax
mov eax, dword [rsp + 0x58]
add eax, dword [rsp + 0x48]
add eax, dword [rsp + 0x68]
cmp qword [r14 + 0xb0], rax
lea rdi, [rsp + 0x30]
mov rsi, r14
movabs r15, 0x8009031700000002
jb 0x140017539
mov qword [rsi + 0xb0], rax
mov qword [rsi + 0xb8], 0
mov qword [rsi + 0xc0], r12
lea rbx, [0x140017750]
lea r12, [0x140017760]
lea rcx, [rsp + 0x48]
mov rdx, rsi
call fcn.14000e2ff
cmp qword [rsp + 0x48], 0
je case.default.0x14001758d
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], 1
mov eax, ebp
and eax, 3
movsxd rax, dword [rbx + rax*4]
add rax, rbx
jmp rax
mov al, byte [rbp + 0xf]
jmp case.0x1400175d6.0
por mm1, qword [r8 + rcx*2]
mov ecx, ebp
mov rcx, rbp
shr rcx, 0x20
call fcn.1400249d0
cmp al, 0x23
jne 0x140017707
mov rcx, rdi
call fcn.1400012b9
mov rax, r13
test rax, rax
jne 0x14001736b
jmp 0x140017705
mov rcx, rbp
shr rcx, 0x20
cmp ecx, 0x28
ja case.default.0x1400175d6
xor eax, eax
movsxd rcx, dword [r12 + rcx*4]
add rcx, r12
jmp rcx
mov al, 1
jmp case.0x1400175d6.0
mov rcx, qword [rsi + 0xc0]
test rcx, rcx
je 0x140017726
mov rax, r13
sub rax, rcx
jb 0x140017746
add byte [rax], al
add byte [rax], al
add qword [rsp + 0x40], rcx
and al, 0x40
mov r13, rax
mov ebp, eax
jmp 0x1400175b3
mov al, 0x29
jmp case.0x1400175d6.0
mov al, 2
jmp case.0x1400175d6.0
mov al, 3
jmp case.0x1400175d6.0
mov al, 4
jmp case.0x1400175d6.0
mov al, 5
jmp case.0x1400175d6.0
invalid
mov dh, byte [rax - 0x4f7914fa]
invalid
mov al, 6
jmp case.0x1400175d6.0
mov al, 7
jmp case.0x1400175d6.0
mov al, 8
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 9
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0xa
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0xb
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0xc
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0xd
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0xe
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0xf
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x10
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x11
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x12
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x13
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x14
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x15
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x16
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x17
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x18
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x19
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x1a
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x1b
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x1c
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x1d
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x1e
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x1f
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x20
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x21
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x22
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x23
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x24
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x25
jmp case.0x1400175d6.0
invalid
invalid
invalid
mov al, 0x26
jmp case.0x1400175d6.0
mov al, 0x27
jmp case.0x1400175d6.0
mov al, 0x28
jmp case.0x1400175d6.0
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 0x140017707
mov rcx, r15
jmp 0x140017737
mov rcx, rbp
mov rdx, r14
jmp 0x14001773f
mov rcx, r15
call fcn.140042330
ud2
mov rdx, r13
call fcn.140042320
ud2