Function at 0x140020b60
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r14b, 4
test r8, r8
je 0x140020eb6
mov rsi, r8
mov r15, rdx
mov rbx, rcx
lea rdi, [rsp + 0x30]
lea r12, [rcx + 8]
lea rax, [rcx + 0xa8]
mov qword [rsp + 0x50], rax
lea r13, [rsp + 0x58]
lea rax, [rcx + 0x10]
mov qword [rsp + 0xa0], rax
lea rax, [rcx + 0xc8]
mov qword [rsp + 0x98], rax
xor eax, eax
mov qword [rsp + 0xa8], rax
xorps xmm6, xmm6
mov qword [rsp + 0x48], r12
cmp dword [rbx], 1
jne 0x140020c1e
mov rcx, r13
mov rdx, r12
call fcn.14001ed3f
cmp dword [rsp + 0x58], 1
jne case.default.0x140020c1c
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x28], 1
movzx ebp, al
lea rcx, [0x140020f28]
movsxd rax, dword [rcx + rbp*4]
add rax, rcx
jmp rax
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x28]
mov r8, r15
mov r9, rsi
call fcn.14008c72f
cmp qword [rsp + 0x28], 1
mov rax, rdi
jne case.default.0x140020c56
mov al, byte [rsp + 0x30]
movzx ebp, al
lea rcx, [0x140020f28]
movsxd rax, dword [rcx + rbp*4]
add rax, rcx
jmp rax
cmp dword [rsp + 0x5c], 0
je 0x140020daf
mov r13, qword [rbx + 0xc0]
cmp r13, qword [rbx + 0xb8]
jne 0x140020e27
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x68]
mov ecx, eax
cmp rcx, rsi
mov r12, rsi
cmovb r12, rcx
cmp r12, rcx
ja 0x140020f21
mov rdi, qword [rsp + 0x60]
shld rax, rdi, 0x20
mov r15d, edi
lea r14, [r12 + r15]
mov edx, eax
add rdx, r14
cmp r13, rdx
jae 0x140020cc2
mov rcx, qword [rsp + 0x50]
call fcn.14008b108
mov r13, qword [rbx + 0xb8]
cmp r13, r14
jb 0x140020f21
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
add rcx, r15
mov rdx, qword [rsp + 0x40]
mov r8, r12
call fcn.1400931b0
cmp r13, r15
jb 0x140020f21
mov rax, qword [rbx + 0xb8]
cmp rax, r14
lea r13, [rsp + 0x58]
jb 0x140020f21
mov rcx, qword [rbx + 0xa8]
mov edx, edi
movabs rdi, 0x700000000
or rdx, rdi
add r15, rcx
mov rdi, r12
bts rdi, 0x20
lea r8, [rcx + r14]
sub eax, r14d
movabs rbp, 0x600000000
or rax, rbp
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x78], rax
movups xmmword [rsp + 0x88], xmm6
mov qword [rsp + 0xb8], r13
movabs rax, 0x400000000
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xa0]
xor edx, edx
lea r8, [rsp + 0xb0]
xor r9d, r9d
call sub.secur32.dll_EncryptMessage
test eax, eax
je 0x140020de7
shl rax, 0x20
mov r14b, 4
mov r15, qword [rsp + 0x40]
lea rdi, [rsp + 0x30]
mov r12, qword [rsp + 0x48]
jmp 0x140020db9
movabs rax, 0x8009031700000000
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x28], 1
movzx ebp, al
lea rcx, [0x140020f28]
movsxd rax, dword [rcx + rbp*4]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x68]
add eax, dword [rsp + 0x58]
add eax, dword [rsp + 0x78]
cmp qword [rbx + 0xb8], rax
mov r14b, 4
mov r15, qword [rsp + 0x40]
lea rdi, [rsp + 0x30]
jb 0x140020e10
mov qword [rbx + 0xb8], rax
mov qword [rbx + 0xc0], 0
mov qword [rbx + 0xc8], r12
mov r12, qword [rsp + 0x48]
lea r13, [rsp + 0x58]
mov rcx, r13
mov rdx, r12
call fcn.14001fed9
cmp dword [rsp + 0x58], 1
jne case.default.0x140020e6c
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x28], 1
movzx ebp, al
lea rcx, [0x140020f28]
movsxd rax, dword [rcx + rbp*4]
add rax, rcx
jmp rax
mov al, byte [rsp + 0x31]
jmp 0x140020e87
mov ecx, dword [rsp + 0x34]
call fcn.140084604
jmp 0x140020e87
cmp al, 0x23
jne 0x140020eb8
mov rcx, rdi
call fcn.140001eb0
jmp 0x140020ead
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
test rax, rax
je 0x140020ed9
sub rsi, rax
jb 0x140020f21
add r15, rax
test rsi, rsi
jne 0x140020bd7
jmp 0x140020ef5
movzx eax, byte [rsp + 0x3f]
shl eax, 0x10
movzx ecx, word [rsp + 0x3d]
or ecx, eax
shl rcx, 0x20
mov edx, dword [rsp + 0x39]
or rdx, rcx
mov rcx, qword [rsp + 0x31]
jmp 0x140020ef2
lea rcx, str.failed_to_write_whole_buffer
mov rdx, rcx
shr rdx, 8
shl rcx, 0x38
or rcx, 0x17
mov bpl, 2
mov r14d, ebp
shld rdx, rcx, 8
shl rcx, 8
movzx eax, r14b
or rax, rcx
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2