Function at 0x1400866b8
Capabilities:
Create new key via cryptacquirecontext
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3a0
xor ebp, ebp
lea rax, [rax - 0x258]
mov rbx, rcx
lea edi, [rbp + 1]
mov qword [rax + 8], rbp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x28], rbp
mov qword [rax + 0x38], rbp
mov dword [rax], edi
mov dword [rax + 0x10], edi
mov dword [rax + 0x20], edi
mov dword [rax + 0x30], edi
mov qword [rsp + 0x50], rax
mov eax, dword [rdx + 0x48]
mov r15, r8
mov rsi, rdx
lea rcx, [rsp + 0x2c8]
mov r8d, 0xd8
xor edx, edx
mov dword [rsp + 0x60], eax
mov r14d, ebp
mov r13d, ebp
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x64], ebp
mov dword [rsp + 0x68], ebp
mov qword [rsp + 0x2c0], rbp
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x88]
xor edx, edx
mov r8d, Ordinal_203
mov r12, rbp
call sub.msvcrt.dll_memset
cmp qword [rsi + 0x40], rbp
mov r8, qword [rsi + 0x10]
lea rax, [rsp + 0x2c0]
lea rdx, [0x1400e8780]
mov qword [rsp + 0x148], rax
lea rax, [0x1400e8718]
lea rcx, [rsp + 0x1c0]
cmovne rax, qword [rsi + 0x40]
mov dword [rsp + 0x80], 2
mov dword [rsp + 0x140], 3
mov qword [rsp + 0x98], rax
call fcn.14008615c
cmp eax, ebp
je 0x1400867d4
mov ecx, dword [rsp + 0x48]
lea rdx, [rsp + 0x1c0]
mov rax, rcx
add rax, rax
add ecx, edi
mov qword [rsp + rax*8 + 0x178], rdx
mov dword [rsp + 0x48], ecx
mov r8, qword [rsi + 0x18]
lea rdx, [0x1400e8788]
lea rcx, [rsp + 0x1e0]
call fcn.14008615c
cmp eax, ebp
je 0x140086810
mov ecx, dword [rsp + 0x48]
lea rdx, [rsp + 0x1e0]
mov rax, rcx
add rax, rax
add ecx, edi
mov qword [rsp + rax*8 + 0x178], rdx
mov dword [rsp + 0x48], ecx
mov r8, qword [rsi + 0x20]
lea rdx, [0x1400e8798]
lea rcx, [rsp + 0x200]
call fcn.14008615c
cmp eax, ebp
je 0x14008684c
mov ecx, dword [rsp + 0x48]
lea rdx, [rsp + 0x200]
mov rax, rcx
add rax, rax
add ecx, edi
mov qword [rsp + rax*8 + 0x178], rdx
mov dword [rsp + 0x48], ecx
mov r8, qword [rsi + 0x28]
lea rdx, [0x1400e87a8]
lea rcx, [rsp + 0x220]
call fcn.14008615c
cmp eax, ebp
je 0x140086888
mov ecx, dword [rsp + 0x48]
lea rdx, [rsp + 0x220]
mov rax, rcx
add rax, rax
add ecx, edi
mov qword [rsp + rax*8 + 0x178], rdx
mov dword [rsp + 0x48], ecx
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0xc0]
mov r9, r15
mov r8, rsi
mov qword [rsp + 0x20], rbp
call fcn.14008647c
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x48]
mov ecx, 7
call fcn.140085dbc
cmp eax, ebp
je 0x140086fc2
lea rcx, [rsp + 0xd0]
call fcn.1400863f4
mov rdi, rax
cmp rax, rbp
je 0x1400868f4
lea rcx, [0x1400e87b0]
mov rdx, rax
call fcn.14000a838
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsi + 0x30]
mov eax, 0x14
test rbp, rbp
je 0x14008696a
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
mov dword [rsp + 0x88], ecx
test cl, 1
jne 0x140086938
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x90]
mov rcx, rbp
call fcn.140011214
test eax, eax
jne 0x1400869b6
lea rcx, [0x1400e8420]
mov rdx, rbp
call fcn.14000a838
lea rcx, [0x1400e8d00]
call fcn.14000a838
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140086fce
mov rdx, rax
mov ecx, 0x40
mov dword [rsp + 0x88], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14008694b
mov edx, dword [rsp + 0x88]
mov rcx, rax
call sub.cryptdll.dll_CDGenerateRandomBits
xor ecx, ecx
test eax, eax
setns cl
test ecx, ecx
jne 0x1400869b6
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14008694b
lea rcx, [0x1400e87e8]
call fcn.14000a838
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
xor r8d, r8d
call fcn.1400112ac
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000a838
movzx edx, word [rsi + 0x38]
mov rcx, qword [rsp + 0x148]
mov word [rsp + 0x3d8], dx
lea rax, [rsp + 0x3d8]
lea r8, [rcx + 0x10]
mov qword [rsp + 0x158], rax
lea rax, [0x1400e8198]
mov dword [rcx + 8], 1
mov qword [rcx], rax
lea rdx, [rsp + 0x150]
mov rcx, rax
mov dword [rsp + 0x150], 2
mov dword [rsp + 0x160], 5
call fcn.140085dbc
test eax, eax
je 0x140086fa3
mov r8, qword [rsp + 0x148]
lea rcx, [0x1400e81e8]
lea rdx, [rsp + 0x60]
mov qword [r8 + 0x20], rcx
mov eax, dword [rsp + 0x60]
add r8, 0x30
mov dword [r8 - 8], eax
call fcn.140085dbc
test eax, eax
je 0x140086f83
mov rdx, qword [rsi + 0x50]
mov edi, Ordinal_36
test rdx, rdx
je 0x140086abb
mov ecx, dword [rsp + 0x140]
mov rax, qword [rsp + 0x148]
mov r8, rdi
shl rcx, 5
add rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rsp + 0x140]
inc edx
mov dword [rsp + 0x140], edx
jmp 0x140086ac2
mov edx, dword [rsp + 0x140]
cmp qword [rsi + 0x58], r12
je 0x140086af5
mov rax, qword [rsp + 0x148]
mov ecx, edx
mov rdx, qword [rsi + 0x58]
shl rcx, 5
mov r8, rdi
add rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rsp + 0x140]
inc edx
mov dword [rsp + 0x140], edx
cmp qword [rsi + 0x60], r12
je 0x140086b1f
mov rax, qword [rsp + 0x148]
mov ecx, edx
mov rdx, qword [rsi + 0x60]
shl rcx, 5
mov r8, rdi
add rcx, rax
call sub.msvcrt.dll_memcpy
inc dword [rsp + 0x140]
mov rdx, qword [rsp + 0x98]
lea rcx, [0x1400e8818]
call fcn.14000a838
mov rdx, qword [rsp + 0x98]
mov r8d, 0x80000000
mov ecx, 1
call qword [sym.imp.CRYPT32.dll_CryptFindOIDInfo]
test rax, rax
je 0x140086b61
mov rdx, qword [rax + 0x10]
lea rcx, str.___s_
call fcn.14000a838
lea rcx, [0x1400e8848]
call fcn.14000a838
lea rcx, [rsp + 0xc0]
call fcn.140011404
lea rcx, [0x1400e8730]
call fcn.14000a838
lea rcx, [rsp + 0xc8]
call fcn.140011404
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000a838
mov rdx, qword [rbx + 8]
lea rcx, [0x1400e8878]
call fcn.14000a838
call fcn.1400114ac
mov qword [rbx], rax
test rax, rax
je 0x140086f63
lea rcx, [0x1400e88b0]
mov rdx, rax
call fcn.14000a838
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx + 8]
lea rcx, [rbx + 0x40]
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140086c44
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], r12
lea edx, [r9 + 3]
xor r8d, r8d
call fcn.140005208
test eax, eax
je 0x140086c38
mov r13d, dword [rsp + 0x5c]
and r13d, 1
je 0x140086c38
mov r8, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x40]
and dword [rbx + 0x14], 0xffffffbf
and dword [rbx + 0x38], 0xfffffffe
mov edx, r13d
call fcn.140086260
mov rcx, qword [rbx + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rbx + 0x14]
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx + 8]
mov rdx, qword [rbx]
or eax, 8
lea rcx, [rbx + 0x40]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140086f44
mov r8, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x40]
mov edx, r13d
call fcn.140086260
movzx edx, word [rbx + 0x3c]
lea rcx, [0x1400e88e8]
call fcn.14000a838
movzx r8d, word [rbx + 0x3c]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x40]
shl r8d, 0x10
lea r9, [rsp + 0x70]
or r8d, dword [rbx + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x140086f1d
lea rcx, [0x1400e8778]
call fcn.14000a838
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x40]
call fcn.1400861ac
mov rbp, rax
test rax, rax
je 0x140086f10
lea rcx, [rsp + 0xe0]
mov rdx, rax
mov r8d, 0x30
call sub.msvcrt.dll_memcpy
mov rdi, qword [rsp + 0x148]
lea rax, [rsp + 0x150]
lea rcx, [rsp + 0x240]
mov qword [rsp + 0x1b8], rax
mov dword [rsp + 0x1b0], Ordinal_27
call sub.advapi32.dll_A_SHAInit
mov r8d, dword [rbp + 0x18]
mov rdx, qword [rbp + 0x20]
lea rcx, [rsp + 0x240]
call sub.advapi32.dll_A_SHAUpdate
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x240]
call sub.advapi32.dll_A_SHAFinal
and dword [rdi + 0x48], r12d
lea rcx, [0x1400e81b8]
lea r8, [rdi + 0x50]
lea rdx, [rsp + 0x1b0]
mov qword [rdi + 0x40], rcx
call fcn.140085dbc
test eax, eax
je 0x140086f04
mov eax, dword [rsp + 0x140]
lea rcx, [rsp + 0xb0]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
shl rax, 5
lea r8, [rsp + 0x78]
add rax, qword [rsp + 0x148]
xor edx, edx
mov rcx, r15
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call fcn.140086578
test eax, eax
je 0x140086e03
mov eax, dword [rsp + 0x140]
lea rcx, [rsp + 0xb0]
mov r12, rax
inc eax
shl r12, 5
mov dword [rsp + 0x140], eax
add r12, qword [rsp + 0x148]
call fcn.1400863f4
mov rdi, rax
test rax, rax
je 0x140086e14
lea rcx, [0x1400e8740]
mov rdx, rax
call fcn.14000a838
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140086e14
movaps xmm0, xmmword [rsp + 0xd0]
movdqu xmmword [rsp + 0xb0], xmm0
lea rcx, [0x1400e8918]
call fcn.14000a838
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + 0x40]
test rcx, rcx
jne 0x140086e35
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x40]
mov rax, qword [rsp + 0x3f8]
mov rdi, qword [rsp + 0x3f0]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov r8d, 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400862ec
mov r14d, eax
test eax, eax
je 0x140086ece
lea rcx, [0x1400e8778]
call fcn.14000a838
test r13d, r13d
je 0x140086ece
lea rcx, [0x1400e8948]
call fcn.14000a838
mov r8, qword [rdi]
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
lea edx, [r9 + 0x1a]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140086eba
lea rcx, [0x1400e8778]
call fcn.14000a838
jmp 0x140086ece
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1400e8980]
mov edx, eax
call fcn.14000a838
test r12, r12
je 0x140086ede
mov rcx, qword [r12 + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x58]
call fcn.140086514
mov rcx, qword [rsp + 0x148]
add rcx, 0x58
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140086f10
lea rcx, [0x1400e8a10]
call fcn.14000a838
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x140086f31
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1400e8a80]
mov edx, eax
call fcn.14000a838
test r14d, r14d
jne 0x140086f6f
mov rcx, qword [rbx + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140086f58
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1400e8af0]
mov edx, eax
call fcn.14000a838
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140086f6f
lea rcx, [0x1400e8b90]
call fcn.14000a838
mov rcx, qword [rsp + 0x148]
add rcx, 0x38
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140086f8f
lea rcx, [0x1400e8c20]
call fcn.14000a838
mov rcx, qword [rsp + 0x148]
add rcx, 0x18
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140086faf
lea rcx, [0x1400e8c90]
call fcn.14000a838
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140086957
lea rcx, [0x1400e8d70]
call fcn.14000a838
lea r11, [rsp + 0x3a0]
mov eax, r14d
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret