Function at 0x1004f6b
Capabilities:
Generate random numbers via winapi
Get common file path
Get disk information
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5a8
mov eax, dword [0x100c028]
push ebx
xor ebx, ebx
cmp byte [0x100d080], bl
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x53c], 0x5c3a63
mov byte [ebp - 0x53d], 0x63
mov byte [ebp - 0x53e], 0x63
mov dword [ebp - 0x550], ebx
mov dword [ebp - 0x54c], ebx
mov dword [ebp - 0x56c], ebx
mov dword [ebp - 0x568], ebx
mov dword [ebp - 0x544], ebx
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x58c], 0xc
mov dword [ebp - 0x588], eax
mov dword [ebp - 0x584], ebx
mov dword [ebp - 0x564], ebx
je 0x1004ffd
push ebx
push ebx
push 0x100d080
call fcn.010045eb
test eax, eax
jne 0x100555e
mov byte [0x100d080], al
lea eax, [ebp - 0x560]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x57c]
push eax
call fcn.01003d02
test eax, eax
jne 0x1005022
push 0xffffffffffffffff
jmp 0x1005598
push esi
push edi
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x10050c1
push 2
push 0x100
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x10050c1
push dword [ebp - 0x57c]
mov esi, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov edi, 0x10000000
push edi
push 2
lea eax, [ebp - 0x138]
push eax
call esi
test eax, eax
je 0x10050c1
push dword [ebp - 0x558]
lea eax, [ebp - 0x138]
push edi
push 2
push eax
call esi
test eax, eax
je 0x10050c1
push dword [ebp - 0x560]
lea eax, [ebp - 0x138]
push edi
push 2
push eax
call esi
test eax, eax
je 0x10050c1
push ebx
lea eax, [ebp - 0x138]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x10050c1
lea eax, [ebp - 0x58c]
mov dword [ebp - 0x564], eax
cmp dword [0x101d3e0], ebx
jne 0x10050e6
cmp dword [0x100c4ac], ebx
je 0x10050e6
push 0x100d080
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x10054ce
push pe_overlay
push 0x100d3e0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov bl, byte [0x100d3e0]
and dword [ebp - 0x55c], 0
and dword [ebp - 0x558], 0
or bl, 0x20
call fcn.010029c2
mov cl, 0x61
mov byte [ebp - 0x545], al
mov byte [ebp - 0x53c], cl
cmp cl, byte [ebp - 0x545]
je 0x1005284
push 0x400
lea eax, [ebp - 0x538]
push eax
lea eax, [ebp - 0x53c]
push eax
mov byte [ebp - 0x53a], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
mov byte [ebp - 0x53a], 0x5c
je 0x100527e
lea eax, [ebp - 0x538]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
mov esi, dword [sym.imp.msvcrt.dll_strstr]
lea eax, [ebp - 0x538]
mov dword [esp], 0x1002570
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100519c
lea eax, [ebp - 0x538]
push 0x1002568
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x100527e
push dword [ebp - 0x53c]
call fcn.01002b13
mov edi, eax
test edi, edi
je 0x100527e
lea eax, [ebp - 0x53c]
push eax
call fcn.010028d9
test eax, eax
je 0x100527e
lea eax, [ebp - 0x598]
push eax
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x574]
push eax
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x100527e
mov eax, dword [ebp - 0x574]
imul eax, dword [ebp - 0x580]
mul dword [ebp - 0x578]
mov cl, byte [ebp - 0x53c]
cmp cl, bl
mov dword [ebp - 0x554], 1
mov esi, edx
jne 0x100522d
mov dword [ebp - 0x55c], eax
mov dword [ebp - 0x558], esi
jmp 0x1005284
cmp edi, 2
jne 0x1005258
cmp esi, dword [ebp - 0x568]
jb 0x1005258
ja 0x1005244
cmp eax, dword [ebp - 0x56c]
jbe 0x1005258
mov dword [ebp - 0x56c], eax
mov dword [ebp - 0x568], esi
mov byte [ebp - 0x53e], cl
jmp 0x1005284
cmp esi, dword [ebp - 0x54c]
jb 0x1005284
ja 0x100526a
cmp eax, dword [ebp - 0x550]
jbe 0x1005284
mov dword [ebp - 0x550], eax
mov dword [ebp - 0x54c], esi
mov byte [ebp - 0x53d], cl
jmp 0x1005284
mov cl, byte [ebp - 0x53c]
inc cl
cmp cl, 0x7a
mov byte [ebp - 0x53c], cl
jle 0x1005120
xor esi, esi
cmp dword [ebp - 0x554], esi
jne 0x10052a9
push 0x20000008
jmp 0x1005598
mov eax, dword [0x100c01c]
cmp eax, 0xcab00eee
je 0x10052c9
xor ecx, ecx
cmp dword [ebp - 0x54c], ecx
ja 0x10052f5
jb 0x10052c9
cmp dword [ebp - 0x550], eax
jae 0x10052f5
mov eax, dword [ebp - 0x558]
cmp dword [ebp - 0x54c], eax
ja 0x10052f5
jb 0x10052e7
mov ecx, dword [ebp - 0x550]
cmp ecx, dword [ebp - 0x55c]
jae 0x10052f5
mov ecx, dword [ebp - 0x55c]
mov dword [ebp - 0x54c], eax
jmp 0x1005301
mov bl, byte [ebp - 0x53d]
mov ecx, dword [ebp - 0x550]
mov eax, dword [0x100c014]
push 3
pop edx
mul edx
cmp dword [ebp - 0x54c], edx
jb 0x1005321
ja 0x1005319
cmp ecx, eax
jb 0x1005321
mov byte [ebp - 0x53c], bl
jmp 0x1005347
cmp dword [ebp - 0x568], edx
jb 0x1005593
ja 0x100533b
cmp dword [ebp - 0x56c], eax
jb 0x1005593
mov al, byte [ebp - 0x53e]
mov byte [ebp - 0x53c], al
push 0xf0000000
push 1
push esi
push esi
lea eax, [ebp - 0x570]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100545a
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
mov dword [ebp - 0x558], esi
mov dword [ebp - 0x554], esi
mov ebx, 0x100d080
lea eax, [ebp - 0x38]
push eax
push 0x10
push dword [ebp - 0x570]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x10053ec
lea eax, [ebp - 0x53c]
push eax
push 0x1002564
push ebx
call edi
xor ecx, ecx
mov cl, byte [ebp - 0x38]
add esp, 0xc
push 0
pop esi
and ecx, 7
add ecx, 9
mov dword [ebp - 0x54c], ecx
je 0x10053ec
lea eax, [eax + 0x100d080]
mov dword [ebp - 0x560], eax
movzx eax, byte [ebp + esi - 0x38]
push eax
push 0x100255c
push dword [ebp - 0x560]
call edi
add dword [ebp - 0x560], 2
add esp, 0xc
inc esi
cmp esi, dword [ebp - 0x54c]
jb 0x10053c6
cmp byte [0x100d080], 0
je 0x1005411
xor esi, esi
inc esi
push esi
push dword [ebp - 0x564]
push ebx
call fcn.010045eb
test eax, eax
je 0x100541b
mov dword [ebp - 0x544], esi
jmp 0x100541b
mov dword [ebp - 0x558], 1
inc dword [ebp - 0x554]
cmp dword [ebp - 0x544], 0
jne 0x1005443
cmp dword [ebp - 0x558], 0
jne 0x1005443
cmp dword [ebp - 0x554], 0x2710
jb 0x100537c
push 0
push dword [ebp - 0x570]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x544], 0
jne 0x10054ce
mov esi, 0x100d080
push esi
push 0x1002550
lea eax, [ebp - 0x53c]
push eax
call fcn.01002bc4
mov edi, eax
lea eax, [ebp - 0x5a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x594]
push eax
lea eax, [ebp - 0x5a8]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x594]
imul eax, dword [0x100c014]
push edi
and eax, 0xffff
push eax
call fcn.01002cae
xor edi, edi
inc edi
push edi
push dword [ebp - 0x564]
push esi
call fcn.010045eb
test eax, eax
jne 0x10054c8
push 0x52
jmp 0x1005598
mov dword [ebp - 0x544], edi
xor ebx, ebx
cmp dword [0x101d3e0], ebx
jne 0x1005570
cmp dword [0x100c4ac], ebx
je 0x1005570
mov edi, 0x100d080
push ebx
push 0x1003e7a
push dword [0x100ce04]
push 0x6b
push dword [0x100c05c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 0xffffffff
je 0x100501b
cmp eax, ebx
je 0x1005569
cmp byte [eax], 0
je 0x1005569
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x100551e
sub ecx, esi
inc ecx
cmp ecx, 0x104
jae 0x10054c1
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1005534
push ebx
push ebx
push edi
call fcn.010045eb
test eax, eax
je 0x1005554
mov dword [ebp - 0x544], 1
cmp dword [ebp - 0x544], ebx
je 0x10054ed
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.010062ff
leave
ret
push 0x4c7
jmp 0x1005598
cmp dword [ebp - 0x544], ebx
jne 0x100555c
push 1
push dword [ebp - 0x564]
push 0x100d080
call fcn.010045eb
test eax, eax
jne 0x100555c
jmp 0x10054c1
push 0x20000009
call fcn.01003892
int3