Function at 0x100563c
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 [0x100d0c0], bl
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x53c], 0x5c3a63
mov byte [ebp - 0x53e], 0x63
mov byte [ebp - 0x53f], 0x63
mov dword [ebp - 0x550], ebx
mov dword [ebp - 0x54c], ebx
mov dword [ebp - 0x568], ebx
mov dword [ebp - 0x564], ebx
mov dword [ebp - 0x548], ebx
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x58c], 0xc
mov dword [ebp - 0x588], eax
mov dword [ebp - 0x584], ebx
mov dword [ebp - 0x560], ebx
mov dword [ebp - 0x544], ebx
mov byte [ebp - 0x540], 0x61
mov byte [ebp - 0x53d], 0x7a
je 0x10056e2
push ebx
push ebx
push 0x100d0c0
call fcn.01004cbc
test eax, eax
jne 0x1005c73
mov byte [0x100d0c0], al
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x574]
push eax
call fcn.010043d3
test eax, eax
jne 0x1005707
push 0xffffffffffffffff
jmp 0x1005cad
push esi
push edi
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x10057a6
push 2
push 0x100
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x10057a6
push dword [ebp - 0x574]
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 0x10057a6
push dword [ebp - 0x57c]
lea eax, [ebp - 0x138]
push edi
push 2
push eax
call esi
test eax, eax
je 0x10057a6
push dword [ebp - 0x558]
lea eax, [ebp - 0x138]
push edi
push 2
push eax
call esi
test eax, eax
je 0x10057a6
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 0x10057a6
lea eax, [ebp - 0x58c]
mov dword [ebp - 0x560], eax
cmp dword [0x101d420], ebx
jne 0x10057cb
cmp dword [0x100c4b4], ebx
je 0x10057cb
push 0x100d0c0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x1005be3
push 0xffff
push 0x100d420
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov bl, byte [0x100d420]
and dword [ebp - 0x55c], 0
and dword [ebp - 0x558], 0
lea eax, [ebp - 0x544]
push eax
or bl, 0x20
call fcn.01004056
mov eax, dword [0x100c064]
dec eax
je 0x1005810
dec eax
jne 0x1005822
mov al, byte [0x100c068]
jmp 0x1005812
mov al, bl
test al, al
je 0x1005822
mov byte [ebp - 0x540], al
mov byte [ebp - 0x53d], al
mov al, byte [ebp - 0x540]
cmp al, byte [ebp - 0x53d]
mov byte [ebp - 0x53c], al
jg 0x10059bf
test byte [ebp - 0x544], 1
jne 0x1005997
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 0x1005997
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], 0x1002640
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10058b7
lea eax, [ebp - 0x538]
push 0x1002638
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x1005997
push dword [ebp - 0x53c]
call fcn.01002b9a
mov edi, eax
test edi, edi
je 0x1005997
lea eax, [ebp - 0x53c]
push eax
call fcn.01002a2f
test eax, eax
je 0x1005997
lea eax, [ebp - 0x598]
push eax
lea eax, [ebp - 0x580]
push eax
lea eax, [ebp - 0x570]
push eax
lea eax, [ebp - 0x578]
push eax
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1005997
mov eax, dword [ebp - 0x578]
imul eax, dword [ebp - 0x570]
mul dword [ebp - 0x580]
mov cl, byte [ebp - 0x53c]
cmp cl, bl
mov dword [ebp - 0x554], 1
mov esi, edx
jne 0x1005948
mov dword [ebp - 0x55c], eax
mov dword [ebp - 0x558], esi
jmp 0x1005997
cmp edi, 2
jne 0x1005973
cmp esi, dword [ebp - 0x564]
jb 0x1005973
ja 0x100595f
cmp eax, dword [ebp - 0x568]
jbe 0x1005973
mov dword [ebp - 0x568], eax
mov dword [ebp - 0x564], esi
mov byte [ebp - 0x53f], cl
jmp 0x1005997
cmp esi, dword [ebp - 0x54c]
jb 0x1005997
ja 0x1005985
cmp eax, dword [ebp - 0x550]
jbe 0x1005997
mov dword [ebp - 0x550], eax
mov dword [ebp - 0x54c], esi
mov byte [ebp - 0x53e], cl
inc byte [ebp - 0x53c]
mov al, byte [ebp - 0x53c]
shr dword [ebp - 0x544], 1
cmp al, byte [ebp - 0x53d]
jle 0x100583a
xor esi, esi
cmp dword [ebp - 0x554], esi
jne 0x10059c9
push 0x20000008
jmp 0x1005cad
mov eax, dword [0x100c01c]
cmp eax, 0xcab00eee
je 0x10059e9
xor ecx, ecx
cmp dword [ebp - 0x54c], ecx
ja 0x1005a1f
jb 0x10059e9
cmp dword [ebp - 0x550], eax
jae 0x1005a1f
mov eax, dword [ebp - 0x558]
cmp dword [ebp - 0x54c], eax
ja 0x1005a1f
jb 0x1005a07
mov ecx, dword [ebp - 0x550]
cmp ecx, dword [ebp - 0x55c]
jae 0x1005a1f
mov ecx, dword [ebp - 0x55c]
mov dword [ebp - 0x550], ecx
mov dword [ebp - 0x54c], eax
mov byte [ebp - 0x53e], bl
mov eax, dword [0x100c014]
push 3
pop ecx
mul ecx
cmp dword [ebp - 0x54c], edx
jb 0x1005a43
ja 0x1005a3b
cmp dword [ebp - 0x550], eax
jb 0x1005a43
mov al, byte [ebp - 0x53e]
jmp 0x1005a63
cmp dword [ebp - 0x564], edx
jb 0x1005ca8
ja 0x1005a5d
cmp dword [ebp - 0x568], eax
jb 0x1005ca8
mov al, byte [ebp - 0x53f]
push 0xf0000000
push 1
push esi
mov byte [ebp - 0x53c], al
push esi
lea eax, [ebp - 0x56c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1005b6f
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
mov dword [ebp - 0x554], esi
mov dword [ebp - 0x544], esi
lea eax, [ebp - 0x38]
push eax
push 0x10
push dword [ebp - 0x56c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1005afd
lea eax, [ebp - 0x53c]
push eax
push 0x1002634
push 0x100d0c0
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 - 0x558], ecx
je 0x1005afd
lea ebx, [eax + 0x100d0c0]
movzx eax, byte [ebp + esi - 0x38]
push eax
push 0x100262c
push ebx
call edi
add esp, 0xc
inc esi
inc ebx
inc ebx
cmp esi, dword [ebp - 0x558]
jb 0x1005ae1
cmp byte [0x100d0c0], 0
je 0x1005b26
xor esi, esi
inc esi
push esi
push dword [ebp - 0x560]
push 0x100d0c0
call fcn.01004cbc
test eax, eax
je 0x1005b30
mov dword [ebp - 0x548], esi
jmp 0x1005b30
mov dword [ebp - 0x554], 1
inc dword [ebp - 0x544]
cmp dword [ebp - 0x548], 0
jne 0x1005b58
cmp dword [ebp - 0x554], 0
jne 0x1005b58
cmp dword [ebp - 0x544], 0x2710
jb 0x1005a99
push 0
push dword [ebp - 0x56c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [ebp - 0x548], 0
jne 0x1005be3
mov esi, 0x100d0c0
push esi
push 0x1002620
lea eax, [ebp - 0x53c]
push eax
call fcn.01002c4b
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.01002d35
xor edi, edi
inc edi
push edi
push dword [ebp - 0x560]
push esi
call fcn.01004cbc
test eax, eax
jne 0x1005bdd
push 0x52
jmp 0x1005cad
mov dword [ebp - 0x548], edi
xor ebx, ebx
cmp dword [0x101d420], ebx
jne 0x1005c85
cmp dword [0x100c4b4], ebx
je 0x1005c85
mov edi, 0x100d0c0
push ebx
push 0x100454b
push dword [0x100ce24]
push 0x6b
push dword [0x100c05c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 0xffffffff
je 0x1005700
cmp eax, ebx
je 0x1005c7e
cmp byte [eax], 0
je 0x1005c7e
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1005c33
sub ecx, esi
inc ecx
cmp ecx, 0x104
jae 0x1005bd6
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1005c49
push ebx
push ebx
push edi
call fcn.01004cbc
test eax, eax
je 0x1005c69
mov dword [ebp - 0x548], 1
cmp dword [ebp - 0x548], ebx
je 0x1005c02
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01006a23
leave
ret
push 0x4c7
jmp 0x1005cad
cmp dword [ebp - 0x548], ebx
jne 0x1005c71
push 1
push dword [ebp - 0x560]
push 0x100d0c0
call fcn.01004cbc
test eax, eax
jne 0x1005c71
jmp 0x1005bd6
push 0x20000009
call fcn.01003bd7
int3