Function at 0x10002ed0
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0xffffffffffffffff
push 0x1005bb90
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10076658]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.10019520
add esp, 8
xor ebx, ebx
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x18]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
je 0x10002f93
mov dword [esp + 0x14], ebx
call fcn.1000e400
cmp eax, ebx
je 0x10002f4f
lea ecx, [esp + 0x14]
push ecx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x10002f53
xor eax, eax
jmp 0x10002f57
mov eax, dword [esp + 0x14]
xor edx, edx
div edi
mov eax, dword [esp + 0x18]
movzx esi, dx
cmp eax, ebx
je 0x10002f7c
mov edi, dword [esp + 0x1c]
call fcn.10003370
mov edx, dword [esp + 0x18]
push edx
call fcn.1004076b
add esp, 4
mov ax, si
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, edi
lea esi, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.100033b0
xor ebp, ebp
xor esi, esi
mov byte [esp + 0x44], 1
cmp edi, ebx
jbe 0x10002fee
jmp 0x10002fc0
mov eax, dword [esp + 0x18]
add eax, ebx
cmp dword [eax + 0x14], 8
jb 0x10002fce
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.10040ed2
mov ecx, dword [esp + 0x34]
mov dword [ecx + esi*4], eax
inc esi
add esp, 0xc
add ebp, eax
add ebx, 0x1c
cmp esi, edi
jb 0x10002fc0
xor ebx, ebx
mov dword [esp + 0x14], ebx
call fcn.1000e400
cmp eax, ebx
je 0x1000300d
lea edx, [esp + 0x14]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x10003011
xor eax, eax
jmp 0x10003015
mov eax, dword [esp + 0x14]
xor edx, edx
div ebp
xor ebp, ebp
cmp edi, ebx
jbe 0x10003089
nop
mov esi, dword [esp + 0x28]
mov eax, dword [esi + ebp*4]
cmp edx, eax
jb 0x10003034
inc ebp
sub edx, eax
cmp ebp, edi
jb 0x10003020
jmp 0x1000308d
cmp esi, ebx
je 0x10003041
push esi
call fcn.1004076b
add esp, 4
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x10003114
mov edi, dword [esp + 0x1c]
cmp esi, edi
je 0x1000310b
mov ebx, 7
mov edi, edi
cmp dword [esi + 0x14], 8
jb 0x10003071
mov eax, dword [esi]
push eax
call fcn.1004076b
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x10003060
jmp 0x10003107
mov esi, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
call fcn.1000e400
cmp eax, ebx
je 0x100030ac
lea edx, [esp + 0x14]
push edx
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x100030b0
xor eax, eax
jmp 0x100030b4
mov eax, dword [esp + 0x14]
xor edx, edx
div edi
movzx ebp, dx
cmp esi, ebx
je 0x100030c8
push esi
call fcn.1004076b
add esp, 4
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x10003114
mov edi, dword [esp + 0x1c]
cmp esi, edi
je 0x1000310b
mov ebx, 7
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x100030f1
mov eax, dword [esi]
push eax
call fcn.1004076b
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x100030e0
mov esi, dword [esp + 0x18]
push esi
call fcn.1004076b
add esp, 4
mov ax, bp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret