Function at 0x10a12cb
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10d0620]
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 0x1016060
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 0x10a1348
or eax, 0x10000000
mov edi, eax
push edi
push 0xca10197
jmp 0x10a152e
push esi
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptGenRandom
cmp eax, esi
je 0x10a136c
or eax, 0x10000000
mov edi, eax
push edi
push 0xcac0197
jmp 0x10a152e
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 1
call fcn.010a1174
mov edi, eax
cmp edi, esi
je 0x10a138a
push edi
push 0xcb00197
jmp 0x10a152e
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], 0x101ec38
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 0x10a13dd
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, 0x101ec14
push ebx
push esi
push dword [ebp + 8]
call sub.ncrypt.dll_NCryptExportKey
mov edi, eax
cmp edi, esi
je 0x10a141d
push edi
push 0xccf0197
jmp 0x10a152e
push dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x84], eax
cmp eax, esi
jne 0x10a1441
mov edi, 0x8007000e
push edi
push 0xcd50197
jmp 0x10a152e
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 0x10a1469
push edi
push 0xce10197
jmp 0x10a152e
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 0x10a148a
push edi
push 0xce40197
jmp 0x10a152e
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 0x10a14a7
sub eax, dword [ebp - 0x48]
sar eax, 1
cmp eax, 0x10000
jb 0x10a14ca
mov edi, 0x80070216
push edi
push 0xcee0197
jmp 0x10a152e
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 0x10a14eb
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 0x10a1535
push edi
push 0xd020197
call fcn.0108c55a
jmp 0x10a1543
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 0x10a1551
push esi
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
cmp dword [ebp - 0x40], esi
je 0x10a155e
push dword [ebp - 0x40]
call sub.ncrypt.dll_NCryptFreeObject
cmp dword [ebp - 0x50], esi
je 0x10a156b
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.01077dc7
leave
ret 0xc