Function at 0x1000064e8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x70
mov rax, qword [0x10000a100]
xor rax, rsp
mov qword [rsp + 0x68], rax
and qword [r11 - 0x58], 0
and qword [r11 - 0x40], 0
mov r12, rcx
lea rcx, [r11 - 0x30]
xor ebx, ebx
xor esi, esi
mov qword [r11 - 0x48], rbx
xor edi, edi
call qword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x100006595
mov rdx, qword [0x10000ba10]
mov r13d, 0x1b6c
lea ecx, [rsi + 0x42]
mov r8d, r13d
call fcn.1000070e4
test rax, rax
mov rsi, rax
je 0x100006595
lea rdx, [rsp + 0x58]
lea ecx, [rbx + 0x10]
mov r8, rax
call fcn.100005ddc
mov r9d, dword [0x10000a420]
mov r8, qword [0x10000b9c8]
lea rcx, [rsp + 0x30]
mov rdx, rsi
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10000663b
and qword [rsp + 0x30], rbx
mov r8, qword [0x10000b900]
mov rcx, qword [0x10000ba10]
mov edx, 0x1b69
call fcn.100007180
test rbx, rbx
je 0x1000065ba
mov rcx, rbx
call sub.msvcrt.dll_free
xor ebx, ebx
xor ebp, ebp
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1000065f4
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r9d, dword [0x10000a420]
mov r8, qword [0x10000b9c8]
lea rcx, [rsp + 0x30]
mov rdx, rsi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test rsi, rsi
je 0x100006601
mov rcx, rsi
call sub.msvcrt.dll_free
test rdi, rdi
je 0x10000660e
mov rcx, rdi
call sub.msvcrt.dll_free
mov qword [r12], rbx
mov eax, ebp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.100007b10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
mov r8d, dword [0x10000b9dc]
mov rcx, qword [rsp + 0x30]
mov eax, 0x200
test r8d, r8d
mov ebp, 1
lea r9, [rsp + 0x48]
cmove r8d, eax
lea edx, [rbp + 1]
mov dword [0x10000b9dc], r8d
shl r8d, 0x10
or r8d, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x100006595
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x38], ebx
lea rax, [rsp + 0x38]
lea edx, [rbp + 1]
xor r9d, r9d
mov r8d, ebp
mov qword [rsp + 0x20], rax
call sub.CRYPT32.dll_CryptExportPublicKeyInfo
mov r11d, dword [rsp + 0x38]
test r11d, r11d
jne 0x1000066c1
mov ecx, 0x1b70
call fcn.100001934
jmp 0x1000065ba
mov rdx, qword [0x10000ba10]
mov rcx, r11
mov r8d, r13d
call fcn.1000070e4
test rax, rax
mov rdi, rax
je 0x1000065ba
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9, rdi
mov r8d, ebp
mov edx, 2
mov qword [rsp + 0x20], rax
call sub.CRYPT32.dll_CryptExportPublicKeyInfo
test eax, eax
je 0x1000066b2
mov r8d, dword [rdi + 8]
mov rdx, qword [rdi + 0x10]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov ecx, 0x27
mov qword [rsp + 0x20], rax
call fcn.100006324
mov rbx, qword [rsp + 0x40]
test eax, eax
je 0x100006595
cmp dword [rbx + 0x10], 0x15
ja 0x1000065be
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
lea r13, [0x10000ac40]
mov rcx, r13
call sub.msvcrt.dll_memcpy
mov r11d, dword [rbx + 0x10]
mov qword [0x10000ba20], r13
mov dword [0x10000ba18], r11d
jmp 0x1000065be