Function at 0x10a12bd
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 8
stosd dword es:[edi], eax
pop ebx
xor eax, eax
mov dword [ebp - 0x80], esi
mov ecx, ebx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], esi
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
push esi
push esi
stosd dword es:[edi], eax
push 0x1016030
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
call sub.ncrypt.dll_BCryptOpenAlgorithmProvider
cmp eax, esi
je 0x10a133a
or eax, 0x10000000
mov edi, eax
push edi
push 0xca10197
jmp 0x10a1520
push esi
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptGenRandom
cmp eax, esi
je 0x10a135e
or eax, 0x10000000
mov edi, eax
push edi
push 0xcac0197
jmp 0x10a1520
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 1
call fcn.010a1166
mov edi, eax
cmp edi, esi
je 0x10a137c
push edi
push 0xcb00197
jmp 0x10a1520
lea eax, [ebp - 0x80]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], 0x7d0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x7c], 0x29
mov dword [ebp - 0x78], 0x101eba8
mov dword [ebp - 0x80], 0x18
mov dword [ebp - 0x70], 0x2a
mov dword [ebp - 0x74], 0x10
mov dword [ebp - 0x64], 0x2e
mov dword [ebp - 0x60], eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x10a13cf
sub eax, ecx
sar eax, 1
push esi
lea eax, [eax + eax + 2]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x44]
push eax
push esi
push esi
lea eax, [ebp - 0x5c]
push eax
mov ebx, 0x101eb84
push ebx
push esi
push dword [ebp + 8]
call sub.ncrypt.dll_NCryptExportKey
mov edi, eax
cmp edi, esi
je 0x10a140f
push edi
push 0xccf0197
jmp 0x10a1520
push dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x84], eax
cmp eax, esi
jne 0x10a1433
mov edi, 0x8007000e
push edi
push 0xcd50197
jmp 0x10a1520
push esi
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push esi
push dword [ebp + 8]
call sub.ncrypt.dll_NCryptExportKey
mov edi, eax
cmp edi, esi
je 0x10a145b
push edi
push 0xce10197
jmp 0x10a1520
mov eax, dword [ebp - 0x48]
push esi
push dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
call sub.ncrypt.dll_NCryptOpenStorageProvider
mov edi, eax
cmp edi, esi
je 0x10a147c
push edi
push 0xce40197
jmp 0x10a1520
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x54], eax
mov eax, ecx
lea edi, [eax + 2]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x48], edi
mov di, word [eax]
inc eax
inc eax
cmp di, si
jne 0x10a1499
sub eax, dword [ebp - 0x48]
sar eax, 1
cmp eax, 0x10000
jb 0x10a14bc
mov edi, 0x80070216
push edi
push 0xcee0197
jmp 0x10a1520
lea eax, [eax + eax + 2]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], 0x2d
mov dword [ebp - 0x70], 0x2e
mov dword [ebp - 0x6c], eax
lea ecx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, si
jne 0x10a14dd
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x74], eax
mov eax, dword [edx + 0xc]
and eax, 0x20
push eax
push dword [ebp - 0x44]
lea eax, [ebp - 0x40]
push dword [ebp - 0x84]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push esi
push dword [ebp - 0x50]
call sub.ncrypt.dll_NCryptImportKey
mov edi, eax
cmp edi, esi
je 0x10a1527
push edi
push 0xd020197
call fcn.0108c503
jmp 0x10a1535
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x88]
mov dword [ecx], eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x4c], esi
je 0x10a1543
push esi
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
cmp dword [ebp - 0x40], esi
je 0x10a1550
push dword [ebp - 0x40]
call sub.ncrypt.dll_NCryptFreeObject
cmp dword [ebp - 0x50], esi
je 0x10a155d
push dword [ebp - 0x50]
call sub.ncrypt.dll_NCryptFreeObject
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077d0b
leave
ret 0xc