Function at 0x10069c40
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x94]
mov ebx, 1
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x98], ebx
call dword [0x100ab840]
test eax, eax
jne 0x10069cdd
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0x94]
call dword [0x100ab844]
test eax, eax
jne 0x10069cd1
lea eax, [ebp - 0x24]
push str.WinNT
push eax
call fcn.10098589
xor ecx, ecx
add esp, 8
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x98], ebx
push dword [ebp - 0x94]
call dword [0x100ab83c]
push str.NETAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10069da7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NetStatisticsGet
push ebx
call esi
push str.NetApiBufferSize
push ebx
mov dword [ebp - 0x9c], eax
call esi
push str.NetApiBufferFree
push ebx
mov dword [ebp - 0x94], eax
call esi
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
test ecx, ecx
je 0x10069da0
mov esi, dword [ebp - 0x94]
test esi, esi
je 0x10069da0
test eax, eax
je 0x10069da0
cmp dword [ebp - 0x98], 0
lea eax, [ebp - 0x94]
push eax
push 0
mov edx, str.LanmanServer
mov dword [ebp - 0x94], 0
push 0
mov eax, str.LanmanWorkstation
cmove eax, edx
push eax
push 0
call ecx
test eax, eax
jne 0x10069da0
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x94]
call esi
push dword [ebp - 0x98]
mov ecx, edi
push dword [ebp - 0x94]
call fcn.100698a0
push dword [ebp - 0x94]
call dword [ebp - 0xa0]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x30
xor ebx, ebx
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.1008b230
add esp, 0xc
lea eax, [ebp - 0x34]
push ebx
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x34]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10069e78
push 0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0
push eax
push 0x58
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0x70020
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10069e2c
push dword [ebp - 0x98]
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.100698a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x30
lea eax, [ebp - 0x34]
inc ebx
push 0
push eax
call fcn.1008b230
add esp, 0xc
lea eax, [ebp - 0x34]
push ebx
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x34]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10069de8
cmp dword [edi + 0x510], 0
je 0x10069eaa
lea esi, [edi + 0x280]
push esi
push 0x280
push dword [edi + 0x50c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x10069eaa
push 0x280
push esi
mov ecx, edi
call fcn.100698a0
push 0x280
lea eax, [edi + 0x280]
push 0
push eax
call fcn.1008b230
add esp, 0xc
mov ecx, edi
call fcn.10069ee0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret