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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x59c
push ebx
push edi
xor edi, edi
cmp byte [0x10088c0], 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0x70], 0x5c3a63
mov byte [ebp + 0x77], 0x63
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x2c], 0xc
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x58], edi
mov ebx, 0x10088c0
je 0x10036f8
push edi
push edi
push ebx
call fcn.010035ea
test eax, eax
jne 0x1003ada
and byte [0x10088c0], al
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x38]
push eax
call fcn.01002faa
test eax, eax
jne 0x1003714
push 0xffffffffffffffff
jmp 0x1003ad4
push esi
push 1
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x10037a2
push 2
push 0x100
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x10037a2
push dword [ebp + 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov edi, 0x10000000
push edi
push 2
lea eax, [ebp - 0x124]
push eax
call esi
test eax, eax
je 0x10037a0
push dword [ebp + 0x54]
lea eax, [ebp - 0x124]
push edi
push 2
push eax
call esi
test eax, eax
je 0x10037a0
push dword [ebp + 0x68]
lea eax, [ebp - 0x124]
push edi
push 2
push eax
call esi
test eax, eax
je 0x10037a0
push 0
lea eax, [ebp - 0x124]
push eax
push 1
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x10037a0
lea eax, [ebp + 0x2c]
mov dword [ebp + 0x58], eax
xor edi, edi
cmp dword [0x1018c20], edi
jne 0x10037c3
cmp dword [0x1008030], edi
je 0x10037c3
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x1003a1c
push 0xffff
push 0x1008c20
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [0x1008c20]
or al, 0x20
mov byte [ebp + 0x6f], al
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
mov byte [ebp + 0x70], 0x61
lea eax, [ebp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
push 2
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x68]
push eax
call dword [sym.imp.msvcrt.dll_strncpy]
and byte [ebp + 0x6a], 0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
cmp esi, 3
je 0x100382a
cmp esi, 6
jne 0x100389d
cmp eax, edi
je 0x100389d
lea eax, [ebp - 0x524]
push 0x1002234
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x100389d
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x100389d
mov eax, dword [ebp + 0x40]
imul eax, dword [ebp + 0x44]
mul dword [ebp + 0x3c]
mov cl, byte [ebp + 0x70]
cmp cl, byte [ebp + 0x6f]
mov esi, edx
jne 0x1003888
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], esi
jmp 0x100389d
cmp esi, dword [ebp + 0x60]
jb 0x100389d
ja 0x1003894
cmp eax, dword [ebp + 0x5c]
jbe 0x100389d
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x60], esi
mov byte [ebp + 0x77], cl
inc byte [ebp + 0x70]
cmp byte [ebp + 0x70], 0x7a
jle 0x10037e7
mov eax, dword [0x1008018]
cmp eax, 0xcab00eee
je 0x10038c4
xor ecx, ecx
cmp dword [ebp + 0x60], ecx
ja 0x10038e4
jb 0x10038c4
cmp dword [ebp + 0x5c], eax
jae 0x10038e4
mov eax, dword [ebp + 0x50]
cmp dword [ebp + 0x60], eax
ja 0x10038e4
jb 0x10038d6
mov ecx, dword [ebp + 0x5c]
cmp ecx, dword [ebp + 0x4c]
jae 0x10038e4
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x60], eax
mov al, byte [ebp + 0x6f]
mov dword [ebp + 0x5c], ecx
jmp 0x10038e7
mov al, byte [ebp + 0x77]
push 0xf0000000
push 1
push edi
mov byte [ebp + 0x70], al
push edi
lea eax, [ebp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10039be
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x68], edi
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
lea eax, [ebp - 0x24]
push eax
push 0x10
push dword [ebp + 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x100396a
lea eax, [ebp + 0x70]
push eax
push 0x1002230
push ebx
call edi
xor ecx, ecx
mov cl, byte [ebp - 0x24]
add esp, 0xc
push 0
pop esi
and ecx, 7
add ecx, 9
mov dword [ebp + 0x50], ecx
je 0x100396a
lea ebx, [eax + 0x10088c0]
movzx eax, byte [ebp + esi - 0x24]
push eax
push 0x1002228
push ebx
call edi
add esp, 0xc
inc esi
inc ebx
inc ebx
cmp esi, dword [ebp + 0x50]
jb 0x100394c
mov ebx, 0x10088c0
cmp byte [0x10088c0], 0
je 0x1003989
xor esi, esi
inc esi
push esi
push dword [ebp + 0x58]
push ebx
call fcn.010035ea
test eax, eax
je 0x1003990
mov dword [ebp + 0x64], esi
jmp 0x1003990
mov dword [ebp + 0x54], 1
inc dword [ebp + 0x68]
cmp dword [ebp + 0x64], 0
jne 0x10039ac
cmp dword [ebp + 0x54], 0
jne 0x10039ac
cmp dword [ebp + 0x68], 0x2710
jb 0x1003911
push 0
push dword [ebp + 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor edi, edi
cmp dword [ebp + 0x64], edi
jne 0x1003a1c
push ebx
push 0x100221c
lea eax, [ebp + 0x70]
push eax
call fcn.0100244b
mov esi, eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp + 0x24]
imul eax, dword [0x1008010]
push esi
and eax, 0xffff
push eax
call fcn.0100250b
xor esi, esi
inc esi
push esi
push dword [ebp + 0x58]
push ebx
call fcn.010035ea
test eax, eax
jne 0x1003a19
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
jmp 0x10037b2
mov dword [ebp + 0x64], esi
cmp dword [0x1018c20], edi
jne 0x1003abe
cmp dword [0x1008030], edi
jne 0x1003a46
mov eax, dword [0x1008010]
push 3
pop ecx
mul ecx
cmp dword [ebp + 0x60], edx
ja 0x1003abe
jb 0x1003a46
cmp dword [ebp + 0x5c], eax
jae 0x1003abe
push edi
push 0x10030fe
push dword [0x1008764]
push 0x6b
push dword [0x1008020]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 0xffffffff
je 0x100370d
cmp eax, edi
je 0x1003ab7
cmp byte [eax], 0
je 0x1003ab7
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1003a77
sub ecx, esi
inc ecx
cmp ecx, 0x104
jae 0x1003ad2
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1003a8d
push 0
push dword [ebp + 0x58]
push ebx
call fcn.010035ea
test eax, eax
je 0x1003aad
mov dword [ebp + 0x64], 1
cmp dword [ebp + 0x64], 0
jne 0x1003ad9
xor edi, edi
jmp 0x1003a46
push 0x4c7
jmp 0x1003ad4
cmp dword [ebp + 0x64], edi
jne 0x1003ad9
push 1
push dword [ebp + 0x58]
push ebx
call fcn.010035ea
test eax, eax
jne 0x1003ad9
push 0x52
call fcn.01002cb9
pop esi
pop edi
pop ebx
add ebp, 0x78
leave
ret