Function at 0x1400013c0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0x88
or dword [rbp - 0x3d], 0xffffffff
xor r12d, r12d
mov r15d, dword [rbp + 0x87]
mov ebx, r12d
mov qword [rbp - 0x29], rbx
mov esi, r12d
mov dword [rbp - 0x41], 0x50415243
mov qword [rbp - 0x31], r12
mov dword [rbp + 0x5f], r12d
mov dword [rbp - 0x39], r12d
cmp r15d, 0x1fffffff
jbe 0x140001427
mov ebx, 0x80070057
jmp 0x14000172d
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x14000145c
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rcx + rdx*2], r12w
jne 0x140001434
inc rdx
lea r9, [rbp + 0x5f]
lea r8, [rbp - 0x31]
call fcn.1400024ac
mov ebx, eax
mov qword [rbp - 0x29], rbx
test eax, eax
js 0x140001694
mov rdi, r15
xor ecx, ecx
shl rdi, 3
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140001486
mov ebx, 0x8007000e
jmp 0x140001690
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov edi, r12d
test r15d, r15d
je 0x140001676
mov r13, qword [rbp + 0x7f]
mov r14, rsi
mov r9d, dword [r13 + 0x10]
xor r8d, r8d
mov rdx, qword [r13]
mov r12d, edi
mov dword [rsp + 0x20], 8
lea rcx, [rsi + r12*8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
nop dword [rax + rax]
test eax, eax
jne 0x1400014d8
xor r12d, r12d
mov qword [r14], r12
jmp 0x140001556
mov r9, qword [rbp - 0x31]
mov dword [rbp - 0x39], 1
test r9, r9
jne 0x140001522
mov rax, qword [rbp + 0x8f]
lea r9, [rbp - 0x41]
mov r8d, dword [rbp + 0x57]
mov rdx, qword [rbp + 0x4f]
mov rcx, qword [r14]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 4
call fcn.140001118
mov ebx, eax
mov qword [rbp - 0x29], rbx
test eax, eax
jns 0x1400015f2
mov r9, qword [rbp - 0x31]
mov rax, qword [rbp + 0x8f]
mov r8d, dword [rbp + 0x57]
mov rdx, qword [rbp + 0x4f]
mov rcx, qword [r14]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x5f]
mov dword [rsp + 0x20], eax
call fcn.140001118
mov ebx, eax
mov qword [rbp - 0x29], rbx
test eax, eax
jns 0x1400015f2
xor r12d, r12d
inc edi
add r13, 0x30
add r14, 8
cmp edi, r15d
jb 0x1400014a6
cmp dword [rbp - 0x39], 0
je 0x140001676
mov rdi, qword [rbp - 0x31]
test rdi, rdi
jne 0x14000169d
mov rax, qword [rbp + 0x6f]
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x31]
mov qword [rbp - 0x19], rax
lea rax, [rbp + 0x5f]
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x31], r12
mov dword [rbp + 0x5f], r12d
mov r8, qword [rbp + 0x67]
lea rax, [rbp - 0x21]
mov rcx, qword [0x1400065f8]
lea r9, [0x1400022c0]
mov edx, 0x212
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxParamW]
nop dword [rax + rax]
mov qword [rbp - 0x29], rax
mov rbx, rax
test eax, eax
js 0x140001694
mov r9, qword [rbp - 0x31]
test r9, r9
jne 0x140001614
mov ebx, 0x80070056
mov qword [rbp - 0x29], rbx
jmp 0x1400016b4
mov rax, qword [rbp + 0x97]
mov rcx, qword [rsi + r12*8]
xor r12d, r12d
mov dword [rbp - 0x3d], edi
mov dword [rax], edi
mov rax, qword [rbp + 0x9f]
mov qword [rax], rcx
jmp 0x140001694
mov edi, r12d
mov r14, rsi
mov rax, qword [rbp + 0x8f]
mov r8d, dword [rbp + 0x57]
mov rdx, qword [rbp + 0x4f]
mov rcx, qword [r14]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x5f]
mov dword [rsp + 0x20], eax
call fcn.140001118
mov ebx, eax
mov qword [rbp - 0x29], rbx
test eax, eax
jns 0x140001658
inc edi
add r14, 8
cmp edi, r15d
jae 0x140001694
mov r9, qword [rbp - 0x31]
jmp 0x14000161a
mov rax, qword [rbp + 0x97]
mov dword [rbp - 0x3d], edi
mov dword [rax], edi
mov eax, edi
mov rcx, qword [rsi + rax*8]
mov rax, qword [rbp + 0x9f]
mov qword [rax], rcx
jmp 0x140001694
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov qword [rbp - 0x29], rbx
mov rdi, qword [rbp - 0x31]
test rdi, rdi
je 0x1400016b4
mov ecx, dword [rbp + 0x5f]
xor eax, eax
rep stosb byte [rdi], al
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rsi, rsi
je 0x14000172d
mov edi, r12d
test r15d, r15d
je 0x14000171e
mov rbx, qword [rbp + 0x7f]
mov r14, rsi
mov r12d, dword [rbp - 0x3d]
cmp edi, r12d
je 0x14000170b
mov rcx, qword [r14]
test rcx, rcx
je 0x1400016e7
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop dword [rax + rax]
mov r9d, dword [rbx + 0x10]
xor r8d, r8d
mov rdx, qword [rbx]
mov eax, edi
mov dword [rsp + 0x20], 0x10
lea rcx, [rsi + rax*8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
nop dword [rax + rax]
inc edi
add r14, 8
add rbx, 0x30
cmp edi, r15d
jb 0x1400016cc
mov rbx, qword [rbp - 0x29]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret