Function at 0x140026f94
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x170
mov qword [r11 - 0xe0], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov rax, qword [0x140078790]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor r8d, r8d
lea rdx, str.::CreateTPMData
lea rcx, [r11 - 0xc8]
call fcn.14002de00
nop
call fcn.1400290dc
xor esi, esi
test eax, eax
jns 0x140026ff2
mov ecx, eax
call fcn.140032390
lea r8, str.TPM_is_supported...
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140030824
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14002703a
call fcn.140007048
jmp 0x14002703c
mov eax, esi
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x14002704b
mov ecx, eax
call fcn.140032390
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x78], rsi
lea r9, [rsp + 0x78]
mov edx, 1
mov r8d, 0x8000001
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x14002709b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, 0x1fff0000
je 0x140027088
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
lea r14, vtable.CCryptBlob_struct__CRYPTOAPI_BLOB__class__heap_allocator_.0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x50], esi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea ebx, [r9 + 7]
mov r8d, ebx
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14002714b
mov ecx, eax
call fcn.1400331f0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ebx
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x14002717d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, 0x1fff0000
je 0x140027138
mov ecx, eax
call fcn.140032390
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, 0x1fff0000
je 0x140027166
cmp eax, 0x80000000
jb 0x14002717d
mov ecx, eax
call fcn.140032390
test eax, eax
je 0x14002717d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140032390
lea rdx, [0x1400556a0]
lea rcx, [rsp + 0x48]
call fcn.14002952c
mov qword [rsp + 0x80], r14
mov ebx, 0x22
mov dword [rsp + 0x88], ebx
mov ecx, ebx
call fcn.1400331f0
mov rdi, rax
test rax, rax
jne 0x1400271bb
mov ecx, 0x8007000e
call fcn.140032390
mov qword [rsp + 0x90], rdi
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140034b00
nop
mov r8, rdi
mov edx, 0x20
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400271ed
call fcn.140007048
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x68], esi
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002720f
call fcn.140009660
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x68], esi
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14002736c
test eax, eax
jns 0x140027235
mov ecx, eax
call fcn.140032390
lea r8, str.Got_data_sealed_with_TPM...
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140030824
lea r8, [rsp + 0x68]
mov rdx, rdi
lea rcx, [rsp + 0x120]
call fcn.14002330c
nop
lea rcx, [rsp + 0x120]
call fcn.14002a8f0
mov ebx, eax
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x120]
call fcn.1400239ec
nop
mov qword [rsp + 0x60], r14
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140027296
call fcn.140009660
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x80], r14
mov rcx, rdi
call fcn.140009660
mov qword [rsp + 0x90], rsi
mov dword [rsp + 0x88], esi
mov qword [rsp + 0x48], r14
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400272d2
call fcn.140009660
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x50], esi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400272f0
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140027312
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x14002730d
call fcn.140007048
jmp 0x140027312
mov qword [rsp + 0x40], rsi
jmp 0x140027318
mov r8d, ebx
lea rdx, [0x14004ee5e]
lea rcx, [rsp + 0xb0]
call fcn.140030b9c
nop
lea rcx, [rsp + 0xb0]
call fcn.14002e7a8
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140033cb0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret