Function at 0x1000cf928
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xe0
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0xd8], rax
xor eax, eax
xor r13d, r13d
mov r12, r8
mov rbp, rcx
mov rsi, rdx
lea r8d, [r13 + 0x2c]
lea rcx, [rsp + 0x74]
xor edx, edx
mov dword [r11 - 0x78], r13d
mov dword [r11 - 0x74], eax
mov dword [r11 - 0x70], eax
mov dword [r11 - 0x6c], eax
mov dword [rsp + 0x70], r13d
call sub.msvcrt.dll_memset
xor eax, eax
lea rdx, [0x1000206d0]
lea rcx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
call sub.ncrypt.dll_BCryptOpenAlgorithmProvider
xor r9d, r9d
mov edi, eax
cmp eax, r13d
je 0x1000cf9da
bts edi, 0x1c
mov edx, 0xca10197
mov r8d, edi
jmp 0x1000cfc84
mov rcx, qword [rsp + 0x68]
mov ebx, 8
lea rdx, [rsp + 0xa8]
mov r8d, ebx
call sub.ncrypt.dll_BCryptGenRandom
mov edi, eax
cmp eax, r13d
je 0x1000cfa0c
bts edi, 0x1c
mov edx, 0xcac0197
mov r8d, edi
jmp 0x1000cfc81
mov r8d, reloc.Cabinet.dll_FDICreate
lea rdx, [rsp + 0xb0]
lea ecx, [r8 - 0x13]
call fcn.1000cf768
mov edi, eax
cmp eax, r13d
je 0x1000cfa34
mov edx, 0xcb00197
jmp 0x1000cfc7e
lea rax, [rsp + 0x70]
mov dword [rsp + 0x38], r13d
or r14, 0xffffffffffffffff
mov qword [rsp + 0x50], rax
lea rax, [0x10002acf8]
lea rdi, [rsp + 0xb0]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xa0]
mov rcx, r14
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0xb0]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x98], rax
xor eax, eax
lea r8, [0x10002ad10]
repne scasw ax, word [rdi]
xor edx, edx
mov dword [rsp + 0xa4], ebx
not rcx
mov dword [rsp + 0xa0], 0x7d0
mov dword [rsp + 0x48], r13d
lea eax, [rcx + rcx]
mov rcx, rbp
mov dword [rsp + 0x4c], 3
mov dword [rsp + 0x90], eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x74], reloc.WLDAP32.dll_Ordinal_41
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x70], reloc.OLEAUT32.dll_SafeArrayGetElement
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x84], 0x2a
mov dword [rsp + 0x80], reloc.WLDAP32.dll_Ordinal_16
mov dword [rsp + 0x94], 0x2e
call sub.ncrypt.dll_NCryptExportKey
mov edi, eax
cmp eax, r13d
je 0x1000cfb1b
mov edx, 0xccf0197
jmp 0x1000cfc7e
mov edx, dword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
cmp rax, r13
jne 0x1000cfb41
mov edi, 0x8007000e
mov edx, 0xcd50197
mov r8d, edi
jmp 0x1000cfc81
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], r13d
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x40]
lea r8, [0x10002ad10]
mov dword [rsp + 0x28], eax
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call sub.ncrypt.dll_NCryptExportKey
mov edi, eax
cmp eax, r13d
je 0x1000cfb84
mov edx, 0xce10197
jmp 0x1000cfc7e
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x60]
xor r8d, r8d
call sub.ncrypt.dll_NCryptOpenStorageProvider
mov edi, eax
cmp eax, r13d
je 0x1000cfba6
mov edx, 0xce40197
jmp 0x1000cfc7e
mov rdx, qword [rsi]
lea rax, [rsp + 0x70]
mov rcx, r14
mov qword [rsp + 0x50], rax
xor eax, eax
mov rdi, rdx
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x4c], 2
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x10000
jb 0x1000cfbec
mov edi, 0x80070216
mov edx, 0xcee0197
mov r8d, edi
jmp 0x1000cfc81
lea eax, [rcx + rcx + 2]
lea rdi, [rsp + 0xb0]
mov rcx, r14
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x88], rax
xor eax, eax
lea r9, [rsp + 0x48]
repne scasw ax, word [rdi]
lea r8, [0x10002ad10]
xor edx, edx
not rcx
mov dword [rsp + 0x74], 0x2d
mov dword [rsp + 0x84], 0x2e
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x80], eax
mov eax, dword [rsi + 0x14]
and eax, 0x20
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call sub.ncrypt.dll_NCryptImportKey
mov edi, eax
cmp eax, r13d
je 0x1000cfc8d
mov edx, 0xd020197
mov r8d, eax
xor r9d, r9d
xor ecx, ecx
call fcn.1000b51b8
jmp 0x1000cfc9b
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], r13
mov qword [r12], rax
mov rcx, qword [rsp + 0x68]
cmp rcx, r13
je 0x1000cfcac
xor edx, edx
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
mov rcx, qword [rsp + 0x58]
cmp rcx, r13
je 0x1000cfcbb
call sub.ncrypt.dll_NCryptFreeObject
mov rcx, qword [rsp + 0x60]
cmp rcx, r13
je 0x1000cfcca
call sub.ncrypt.dll_NCryptFreeObject
mov eax, edi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1000ef870
add rsp, 0xe0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret