Function at 0x105ffc5
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x10d0620]
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 0x10129e8
push ebx
call fcn.0105fd3a
mov esi, eax
cmp esi, ebx
je 0x1060039
push esi
push 0x16470139
jmp 0x1060239
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.01096825
mov esi, eax
cmp esi, ebx
je 0x106005f
push esi
push 0x16530139
jmp 0x1060239
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.01091d19
push 1
push 0xa
lea eax, [ebp - 0x80]
push eax
call fcn.01091d19
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 0x10600c2
call fcn.01091f43
mov esi, eax
push esi
push 0x165d0139
jmp 0x1060239
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.01096ee0
mov esi, eax
cmp esi, ebx
je 0x10600fc
push esi
push 0x166a0139
jmp 0x1060239
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1060101
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 0x1060136
mov esi, 0x8007000e
push esi
push 0x16730139
jmp 0x1060239
push 0x10063f8
push esi
push edi
call fcn.0102e082
push dword [ebp - 0x28]
push esi
push edi
call fcn.0102e0bc
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.0109482c
mov esi, eax
cmp esi, ebx
je 0x1060177
push esi
push 0x16800139
jmp 0x1060239
push ebx
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push edi
push 0x10129a8
push 1
call fcn.0109482c
mov esi, eax
cmp esi, ebx
je 0x10601a5
push esi
push 0x168a0139
jmp 0x1060239
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.0109228a
test eax, eax
jne 0x10601d0
call fcn.01091f43
mov esi, eax
push esi
push 0x16940139
jmp 0x1060239
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.01091f55
test eax, eax
jne 0x1060210
call fcn.01091f43
mov esi, eax
push esi
push 0x16a40139
jmp 0x1060239
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.0109238a
mov esi, eax
cmp esi, ebx
je 0x106023e
push esi
push 0x16b00139
call fcn.0108c55a
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], ebx
je 0x106024e
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x74], ebx
je 0x1060258
push dword [ebp - 0x74]
call edi
cmp dword [ebp - 0x8c], ebx
je 0x1060268
push dword [ebp - 0x8c]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x1060272
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x14], ebx
je 0x1060298
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x10], ebx
je 0x10602a2
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 0x10602a2
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.01077dc7
leave
ret 0x14