Function at 0x140028cf0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
push r14
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov rdi, rdx
mov r14, rcx
test rcx, rcx
je 0x140028f5f
test rdx, rdx
je 0x140028f5f
test r8, r8
je 0x140028f5f
mov eax, dword [rdx]
mov dword [rsp + 0x30], eax
test eax, eax
je 0x140028f46
lea rax, [rsp + 0x48]
mov qword [rsp + 0x100], r15
mov qword [rsp + 0x50], rax
lea rdx, [rbp - 0x50]
xor r15d, r15d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x70]
movups xmm0, xmmword [rsp + 0x50]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x60], rax
lea rax, fcn.140031c20
movsd xmm1, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x18], r15
movsd qword [rbp - 0x78], xmm1
call fcn.140031c20
mov rcx, qword [rbp - 0x58]
mov qword [rbp - 0x18], rax
test rcx, rcx
je 0x140028dd4
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov r9d, 0x18
mov qword [rsp + 0x148], rbx
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140028e46
call fcn.14001b570
mov ebx, eax
cmp eax, 0x80090019
jne 0x140028f0b
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000040
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140028e46
call fcn.14001b570
mov ebx, eax
jmp 0x140028f0b
mov edx, dword [rsi + 4]
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140028e74
call fcn.14001b570
mov ebx, eax
jmp 0x140028f0b
movzx r8d, word [rsi + 0x10]
xor r9d, r9d
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140028e98
call fcn.14001b570
mov ebx, eax
jmp 0x140028f0b
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov edx, dword [rsi]
mov r9d, 1
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x140028ec7
call fcn.14001b570
mov ebx, eax
jmp 0x140028f0b
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], r14
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140028ef7
call fcn.14001b570
mov ebx, eax
jmp 0x140028f0b
mov eax, dword [rsp + 0x30]
cmp dword [rdi], eax
jae 0x140028f06
mov ebx, 0x8007000b
jmp 0x140028f0b
mov dword [rdi], eax
mov ebx, r15d
mov rcx, qword [rbp - 0x18]
mov r15, qword [rsp + 0x100]
test rcx, rcx
je 0x140028f66
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140028f3c
mov r8, qword [rcx]
lea rax, [rbp - 0x50]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x148]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400408d0
add rsp, 0x108
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 0x80070057
jmp 0x140028f46
call fcn.1400398f8
int3