Function at 0x1002b4f5
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
xor edx, edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
xor esi, esi
call fcn.10006785
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b541
test byte [eax + 0x1c], 2
je 0x1002b541
cmp byte [eax + 0x19], 5
jb 0x1002b541
push ecx
push dword [eax + 0x14]
mov edx, 0x10004d4c
mov ecx, 0x10d
push dword [eax + 0x10]
call fcn.100068c8
test ebx, ebx
jne 0x1002b596
push 2
pop edx
call fcn.10006785
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b801
test byte [eax + 0x1c], 1
je 0x1002b801
cmp byte [eax + 0x19], 2
jb 0x1002b801
push 0x10004bcc
push ecx
mov ecx, 0x10e
push dword [eax + 0x14]
mov edx, 0x10004d4c
push dword [eax + 0x10]
call fcn.1000696c
jmp 0x1002b801
cmp dword [ebp + 8], esi
jne 0x1002b5d9
push 2
pop edx
call fcn.10006785
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b801
test byte [eax + 0x1c], 1
je 0x1002b801
cmp byte [eax + 0x19], 2
jb 0x1002b801
push 0x10004bdc
push ecx
mov ecx, 0x10f
jmp 0x1002b581
cmp dword [ebp + 0xc], esi
jne 0x1002b61f
push 2
pop edx
call fcn.10006785
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b801
test byte [eax + 0x1c], 1
je 0x1002b801
cmp byte [eax + 0x19], 2
jb 0x1002b801
push 0x10004bec
push ecx
mov ecx, 0x110
jmp 0x1002b581
cmp dword [ebp + 0x10], esi
jne 0x1002b665
push 2
pop edx
call fcn.10006785
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b801
test byte [eax + 0x1c], 1
je 0x1002b801
cmp byte [eax + 0x19], 2
jb 0x1002b801
push 0x10004bfc
push ecx
mov ecx, 0x111
jmp 0x1002b581
push 0x10
pop edx
mov ecx, edi
call fcn.10025214
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002b6c0
push 2
pop edx
call fcn.10006785
push 8
pop esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b801
test byte [eax + 0x1c], 1
je 0x1002b801
cmp byte [eax + 0x19], 2
jb 0x1002b801
push ecx
push dword [eax + 0x14]
mov edx, 0x10004d4c
mov ecx, 0x112
push dword [eax + 0x10]
call fcn.100068c8
jmp 0x1002b801
push 8
pop ebx
mov edx, ebx
mov ecx, edi
call fcn.10025214
mov edi, eax
test edi, edi
jne 0x1002b71b
push 2
pop edx
call fcn.10006785
mov esi, ebx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b7ae
test byte [eax + 0x1c], 1
je 0x1002b7ae
cmp byte [eax + 0x19], 2
jb 0x1002b7ae
push ecx
push dword [eax + 0x14]
mov edx, 0x10004d4c
mov ecx, 0x113
push dword [eax + 0x10]
call fcn.100068c8
jmp 0x1002b7ae
push 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x1002b75f
push 2
pop edx
call fcn.10006785
mov ecx, 0x8010001f
mov esi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b7ae
test byte [eax + 0x1c], 1
je 0x1002b7ae
cmp byte [eax + 0x19], 2
jb 0x1002b7ae
push ecx
push 0x10004c0c
push ecx
mov ecx, 0x114
jmp 0x1002b79e
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x1002b7e2
push 2
pop edx
call fcn.10006785
mov ecx, 0x8010001f
mov esi, ecx
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b7ae
test byte [eax + 0x1c], 1
je 0x1002b7ae
cmp byte [eax + 0x19], 2
jb 0x1002b7ae
push ecx
push 0x10004c0c
push ecx
mov ecx, 0x115
push dword [eax + 0x14]
mov edx, 0x10004d4c
push dword [eax + 0x10]
call fcn.100069e8
mov ecx, dword [ebp - 4]
mov eax, ecx
push 0x10
pop edx
mov byte [eax], 0
inc eax
sub edx, 1
jne 0x1002b7b6
mov edx, ecx
mov ecx, dword [ebp - 8]
call fcn.10025232
test edi, edi
je 0x1002b801
mov edx, edi
mov byte [edi], 0
inc edi
sub ebx, 1
jne 0x1002b7cf
mov ecx, dword [ebp - 8]
call fcn.10025232
jmp 0x1002b801
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov byte [edi + 7], 0x80
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0x10
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor edx, edx
inc edx
call fcn.10006785
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b83a
test byte [ecx + 0x1c], 2
je 0x1002b83a
cmp byte [ecx + 0x19], 5
jb 0x1002b83a
push esi
push ecx
push dword [ecx + 0x14]
mov edx, 0x10004d4c
push dword [ecx + 0x10]
mov ecx, 0x116
call fcn.10006917
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc