Function at 0x4c0710
Capabilities:
Generate random numbers via winapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x55c4a8], 0
push esi
je 0x4c0843
lea eax, [ebp - 0xd8]
mov dword [0x55c4a8], 0
push eax
push 0x20019
push 0
push 0x52d3c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c07c5
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0x40
push eax
lea eax, [ebp - 0x74]
mov dword [0x55c4ac], 1
push eax
push 0
push 0
push str.ProductType
push dword [ebp - 0xd8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c07b9
lea eax, [ebp - 0x74]
push str.WinNT
push eax
call fcn.004e85f7
mov ecx, dword [0x55c4ac]
xor edx, edx
add esp, 8
test eax, eax
cmovne ecx, edx
mov dword [0x55c4ac], ecx
push dword [ebp - 0xd8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NETAPI32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [0x57ec44], eax
test eax, eax
je 0x4c08ad
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.NetStatisticsGet
push eax
call esi
push str.NetApiBufferSize
push dword [0x57ec44]
mov dword [0x57eab8], eax
call esi
push str.NetApiBufferFree
push dword [0x57ec44]
mov dword [0x57eabc], eax
call esi
mov ecx, dword [0x57eab8]
mov dword [0x57eac0], eax
test ecx, ecx
je 0x4c082b
cmp dword [0x57eabc], 0
je 0x4c082b
test eax, eax
jne 0x4c0849
push dword [0x57ec44]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [0x57ec44], 0
jmp 0x4c08ad
mov ecx, dword [0x57eab8]
cmp dword [0x57ec44], 0
je 0x4c08ad
cmp dword [0x55c4ac], 0
lea eax, [ebp - 0xd4]
push eax
push 0
mov edx, str.LanmanServer
mov eax, str.LanmanWorkstation
push 0
cmove eax, edx
push eax
push 0
call ecx
test eax, eax
jne 0x4c08ad
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0xd4]
call dword [0x57eabc]
push dword [ebp - 0xd0]
push dword [ebp - 0xd4]
call fcn.004bf2e0
add esp, 8
push dword [ebp - 0xd4]
call dword [0x57eac0]
push ebx
push edi
xor edi, edi
lea eax, [ebp - 0x34]
push edi
push str..PhysicalDrive_d
push eax
call fcn.004c0b20
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateFileW]
lea eax, [ebp - 0x34]
add esp, 0xc
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4c094e
nop
push 0
lea eax, [ebp - 0xdc]
push eax
push 0x58
lea eax, [ebp - 0xcc]
push eax
push 0
push 0
push 0x70020
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4c091b
push dword [ebp - 0xdc]
lea eax, [ebp - 0xcc]
push eax
call fcn.004bf2e0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc edi
lea eax, [ebp - 0x34]
push edi
push str..PhysicalDrive_d
push eax
call fcn.004c0b20
add esp, 0xc
lea eax, [ebp - 0x34]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c08e0
cmp dword [0x57ec48], 0
pop edi
pop ebx
je 0x4c0985
push 0x57eac8
push 0x140
push dword [0x57ec4c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4c0985
push 0x140
push 0x57eac8
call fcn.004bf2e0
add esp, 8
mov eax, 0x57eac8
mov ecx, 0x140
mov esi, ecx
mov edx, eax
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4c0993
pop esi
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4c09a0
call fcn.004c03c0
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret