Function at 0x109e10e
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10cd598]
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 0x10159a8
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 0x109e18b
or eax, 0x10000000
mov edi, eax
push edi
push 0xca10197
jmp 0x109e371
push esi
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptGenRandom
cmp eax, esi
je 0x109e1af
or eax, 0x10000000
mov edi, eax
push edi
push 0xcac0197
jmp 0x109e371
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 1
call fcn.0109dfb7
mov edi, eax
cmp edi, esi
je 0x109e1cd
push edi
push 0xcb00197
jmp 0x109e371
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], 0x101e538
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 0x109e220
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, 0x101e514
push ebx
push esi
push dword [ebp + 8]
call sub.ncrypt.dll_NCryptExportKey
mov edi, eax
cmp edi, esi
je 0x109e260
push edi
push 0xccf0197
jmp 0x109e371
push dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x84], eax
cmp eax, esi
jne 0x109e284
mov edi, 0x8007000e
push edi
push 0xcd50197
jmp 0x109e371
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 0x109e2ac
push edi
push 0xce10197
jmp 0x109e371
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 0x109e2cd
push edi
push 0xce40197
jmp 0x109e371
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 0x109e2ea
sub eax, dword [ebp - 0x48]
sar eax, 1
cmp eax, 0x10000
jb 0x109e30d
mov edi, 0x80070216
push edi
push 0xcee0197
jmp 0x109e371
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 0x109e32e
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 0x109e378
push edi
push 0xd020197
call fcn.010893e6
jmp 0x109e386
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 0x109e394
push esi
push dword [ebp - 0x4c]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
cmp dword [ebp - 0x40], esi
je 0x109e3a1
push dword [ebp - 0x40]
call sub.ncrypt.dll_NCryptFreeObject
cmp dword [ebp - 0x50], esi
je 0x109e3ae
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.01074bd5
leave
ret 0xc