Function at 0x1055131
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
push 0x70
mov dword [ebp - 0x34], eax
mov dword [eax], ebx
lea eax, [ebp - 0xa8]
push ebx
push eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x1010448
push ebx
call fcn.01054eef
mov esi, eax
cmp esi, ebx
je 0x10551a5
push esi
push 0x15310139
jmp 0x10553a5
lea eax, [ebp - 0x14]
push eax
push ebx
push 1
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call fcn.01082e45
mov esi, eax
cmp esi, ebx
je 0x10551cb
push esi
push 0x153d0139
jmp 0x10553a5
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x84]
push 1
mov dword [ebp - 0x7c], eax
push 0xfffffffffffffff6
lea eax, [ebp - 0x88]
push eax
call fcn.010a4c7a
push 1
push 0xa
lea eax, [ebp - 0x80]
push eax
call fcn.010a4c7a
lea eax, [ebp - 0xc]
push eax
push 6
pop esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x105522e
call fcn.010a4804
mov esi, eax
push esi
push 0x15470139
jmp 0x10553a5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x9c]
push eax
push 0x8004
push ebx
push ebx
push dword [ebp - 0x14]
mov byte [ebp - 7], 0x72
mov dword [ebp - 0xa4], esi
call fcn.0108431c
mov esi, eax
cmp esi, ebx
je 0x1055268
push esi
push 0x15530139
jmp 0x10553a5
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x105526d
sub eax, edx
sar eax, 1
lea esi, [eax + 4]
lea eax, [esi + esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x30], edi
jne 0x10552a2
mov esi, 0x8007000e
push esi
push 0x155c0139
jmp 0x10553a5
push 0x10059c4
push esi
push edi
call fcn.01028f74
push dword [ebp - 0x28]
push esi
push edi
call fcn.0102920e
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
mov edi, 0x2000000
push edi
push dword [ebp - 0x30]
push 1
call fcn.0108112c
mov esi, eax
cmp esi, ebx
je 0x10552e3
push esi
push 0x15690139
jmp 0x10553a5
push ebx
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push edi
push 0x1010408
push 1
call fcn.0108112c
mov esi, eax
cmp esi, ebx
je 0x1055311
push esi
push 0x15730139
jmp 0x10553a5
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push 2
push dword [eax + 0x18]
push dword [ebp + 0xc]
call fcn.010a4c00
test eax, eax
jne 0x105533c
call fcn.010a4804
mov esi, eax
push esi
push 0x157d0139
jmp 0x10553a5
mov esi, dword [ebp - 0x1c]
push 6
pop ecx
push 2
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
lea eax, [ebp - 0xa8]
push eax
push esi
push 1
mov dword [ebp - 0xa8], esi
call fcn.010a5295
test eax, eax
jne 0x105537c
call fcn.010a4804
mov esi, eax
push esi
push 0x158d0139
jmp 0x10553a5
push dword [ebp - 0x2c]
push dword [ebp - 0x34]
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push dword [ebp - 0x9c]
push 1
push dword [ebp - 0x14]
call fcn.010a5366
mov esi, eax
cmp esi, ebx
je 0x10553aa
push esi
push 0x15990139
call fcn.0107ae44
cmp dword [ebp - 0x18], ebx
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x10553ba
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x74], ebx
je 0x10553c4
push dword [ebp - 0x74]
call edi
cmp dword [ebp - 0x8c], ebx
je 0x10553d4
push dword [ebp - 0x8c]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x10553de
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x14], ebx
je 0x1055404
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x10], ebx
je 0x105540e
push 0x10
push 1
push ebx
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp dword [ebp - 0x10], ebx
je 0x105540e
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0x14