Function at 0x105f823
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x10cd598]
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 0x10128e8
push ebx
call fcn.0105f598
mov esi, eax
cmp esi, ebx
je 0x105f897
push esi
push 0x16470139
jmp 0x105fa97
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.010936a3
mov esi, eax
cmp esi, ebx
je 0x105f8bd
push esi
push 0x16530139
jmp 0x105fa97
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.0108eb99
push 1
push 0xa
lea eax, [ebp - 0x80]
push eax
call fcn.0108eb99
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 0x105f920
call fcn.0108edc3
mov esi, eax
push esi
push 0x165d0139
jmp 0x105fa97
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.01093d5e
mov esi, eax
cmp esi, ebx
je 0x105f95a
push esi
push 0x166a0139
jmp 0x105fa97
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x105f95f
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
mov dword [ebp - 0x30], edi
cmp edi, ebx
jne 0x105f994
mov esi, 0x8007000e
push esi
push 0x16730139
jmp 0x105fa97
push 0x10062f0
push esi
push edi
call fcn.0102d982
push dword [ebp - 0x28]
push esi
push edi
call fcn.0102d9bc
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.010916ab
mov esi, eax
cmp esi, ebx
je 0x105f9d5
push esi
push 0x16800139
jmp 0x105fa97
push ebx
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push edi
push 0x10128a8
push 1
call fcn.010916ab
mov esi, eax
cmp esi, ebx
je 0x105fa03
push esi
push 0x168a0139
jmp 0x105fa97
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.0108f10a
test eax, eax
jne 0x105fa2e
call fcn.0108edc3
mov esi, eax
push esi
push 0x16940139
jmp 0x105fa97
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.0108edd5
test eax, eax
jne 0x105fa6e
call fcn.0108edc3
mov esi, eax
push esi
push 0x16a40139
jmp 0x105fa97
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.0108f20a
mov esi, eax
cmp esi, ebx
je 0x105fa9c
push esi
push 0x16b00139
call fcn.010893e6
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], ebx
je 0x105faac
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x74], ebx
je 0x105fab6
push dword [ebp - 0x74]
call edi
cmp dword [ebp - 0x8c], ebx
je 0x105fac6
push dword [ebp - 0x8c]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x105fad0
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x14], ebx
je 0x105faf6
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x10], ebx
je 0x105fb00
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 0x105fb00
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.01074bd5
leave
ret 0x14