Function at 0x10053b6
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 [0x100c024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [0x100d380], bl
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 - 0x560], ebx
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x55c], ebx
mov dword [ebp - 0x58c], 0xc
mov dword [ebp - 0x588], eax
mov dword [ebp - 0x584], ebx
mov dword [ebp - 0x564], ebx
je 0x1005457
push ebx
push ebx
push 0x100d380
call fcn.01004a35
test eax, eax
jne 0x10059b7
mov byte [0x100d380], bl
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0x57c]
push eax
call fcn.0100411b
test eax, eax
jne 0x100547c
push 0xffffffffffffffff
call fcn.01003b40
push esi
push edi
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x100551b
push 2
push 0x100
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x100551b
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 0x100551b
push dword [ebp - 0x554]
lea eax, [ebp - 0x138]
push edi
push 2
push eax
call esi
test eax, eax
je 0x100551b
push dword [ebp - 0x55c]
lea eax, [ebp - 0x138]
push edi
push 2
push eax
call esi
test eax, eax
je 0x100551b
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 0x100551b
lea eax, [ebp - 0x58c]
mov dword [ebp - 0x564], eax
cmp dword [0x101d6e0], ebx
jne 0x1005540
cmp dword [0x100c7ac], ebx
je 0x1005540
push 0x100d380
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x1005927
push 0xffff
push 0x100d6e0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov bl, byte [0x100d6e0]
and dword [ebp - 0x558], 0
and dword [ebp - 0x554], 0
or bl, 0x20
call fcn.01002afb
mov cl, 0x61
mov byte [ebp - 0x545], al
mov byte [ebp - 0x53c], cl
cmp cl, byte [ebp - 0x545]
je 0x10056de
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 0x10056d8
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], 0x1002648
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10055f6
lea eax, [ebp - 0x538]
push 0x1002640
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x10056d8
push dword [ebp - 0x53c]
call fcn.01002c50
mov edi, eax
test edi, edi
je 0x10056d8
lea eax, [ebp - 0x53c]
push eax
call fcn.01002a0e
test eax, eax
je 0x10056d8
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 0x10056d8
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 - 0x560], 1
mov esi, edx
jne 0x1005687
mov dword [ebp - 0x558], eax
mov dword [ebp - 0x554], esi
jmp 0x10056de
cmp edi, 2
jne 0x10056b2
cmp esi, dword [ebp - 0x568]
jb 0x10056b2
ja 0x100569e
cmp eax, dword [ebp - 0x56c]
jbe 0x10056b2
mov dword [ebp - 0x56c], eax
mov dword [ebp - 0x568], esi
mov byte [ebp - 0x53e], cl
jmp 0x10056de
cmp esi, dword [ebp - 0x54c]
jb 0x10056de
ja 0x10056c4
cmp eax, dword [ebp - 0x550]
jbe 0x10056de
mov dword [ebp - 0x550], eax
mov dword [ebp - 0x54c], esi
mov byte [ebp - 0x53d], cl
jmp 0x10056de
mov cl, byte [ebp - 0x53c]
inc cl
cmp cl, 0x7a
mov byte [ebp - 0x53c], cl
jle 0x100557a
xor esi, esi
cmp dword [ebp - 0x560], esi
jne 0x1005703
push 0x20000008
jmp 0x1005477
mov eax, dword [0x100c01c]
cmp eax, 0xcab00eee
je 0x1005723
xor ecx, ecx
cmp dword [ebp - 0x54c], ecx
ja 0x100574f
jb 0x1005723
cmp dword [ebp - 0x550], eax
jae 0x100574f
mov eax, dword [ebp - 0x554]
cmp dword [ebp - 0x54c], eax
ja 0x100574f
jb 0x1005741
mov ecx, dword [ebp - 0x550]
cmp ecx, dword [ebp - 0x558]
jae 0x100574f
mov ecx, dword [ebp - 0x558]
mov dword [ebp - 0x54c], eax
jmp 0x100575b
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 0x100577b
ja 0x1005773
cmp ecx, eax
jb 0x100577b
mov byte [ebp - 0x53c], bl
jmp 0x10057a1
cmp dword [ebp - 0x568], edx
jb 0x10059f1
ja 0x1005795
cmp dword [ebp - 0x56c], eax
jb 0x10059f1
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 0x10058b3
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
mov dword [ebp - 0x560], esi
mov dword [ebp - 0x554], esi
mov ebx, 0x100d380
lea eax, [ebp - 0x38]
push eax
push 0x10
push dword [ebp - 0x570]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1005845
lea eax, [ebp - 0x53c]
push eax
push 0x100220c
push ebx
call edi
movzx ecx, byte [ebp - 0x38]
add esp, 0xc
and ecx, 7
add ecx, 9
push 0
mov dword [ebp - 0x54c], ecx
pop esi
je 0x1005845
lea eax, [eax + 0x100d380]
mov dword [ebp - 0x55c], eax
movzx eax, byte [ebp + esi - 0x38]
push eax
push 0x1002638
push dword [ebp - 0x55c]
call edi
add dword [ebp - 0x55c], 2
add esp, 0xc
inc esi
cmp esi, dword [ebp - 0x54c]
jb 0x100581f
cmp byte [0x100d380], 0
je 0x100586a
xor esi, esi
inc esi
push esi
push dword [ebp - 0x564]
push ebx
call fcn.01004a35
test eax, eax
je 0x1005874
mov dword [ebp - 0x544], esi
jmp 0x1005874
mov dword [ebp - 0x560], 1
inc dword [ebp - 0x554]
cmp dword [ebp - 0x544], 0
jne 0x100589c
cmp dword [ebp - 0x560], 0
jne 0x100589c
cmp dword [ebp - 0x554], 0x2710
jb 0x10057d6
push 0
push dword [ebp - 0x570]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x544], 0
jne 0x1005927
mov esi, 0x100d380
push esi
push 0x100262c
lea eax, [ebp - 0x53c]
push eax
call fcn.01002d05
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.01002de7
xor edi, edi
inc edi
push edi
push dword [ebp - 0x564]
push esi
call fcn.01004a35
test eax, eax
jne 0x1005921
push 0x52
jmp 0x1005477
mov dword [ebp - 0x544], edi
xor ebx, ebx
cmp dword [0x101d6e0], ebx
jne 0x10059ce
cmp dword [0x100c7ac], ebx
je 0x10059ce
mov edi, 0x100d380
push ebx
push 0x10042bf
push dword [0x100d104]
push 0x6b
push dword [0x100c35c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 0xffffffff
je 0x1005475
cmp eax, ebx
je 0x10059c4
cmp byte [eax], 0
je 0x10059c4
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1005977
sub ecx, esi
inc ecx
cmp ecx, 0x104
jae 0x100591a
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100598d
push ebx
push ebx
push edi
call fcn.01004a35
test eax, eax
je 0x10059ad
mov dword [ebp - 0x544], 1
cmp dword [ebp - 0x544], ebx
je 0x1005946
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.010068cd
leave
ret
push 0x4c7
jmp 0x1005477
cmp dword [ebp - 0x544], ebx
jne 0x10059b5
push 1
push dword [ebp - 0x564]
push 0x100d380
call fcn.01004a35
test eax, eax
jne 0x10059b5
jmp 0x100591a
push 0x20000009
jmp 0x1005477