Function at 0x405472
Capabilities:
Create thread
Get disk information
Get disk size
Get file attributes
Get system information on windows
Terminate process

Disassembly:
push 0x914
mov eax, 0x42150f
call fcn.00421269
mov dword [ebp - 0x8f4], edx
mov dword [ebp - 0x904], ecx
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0xa
push ebx
push ebx
push 0xffffffffffffffff
mov dword [ebp - 0x8e4], edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x42fab4], eax
test eax, eax
je 0x405b84
lea eax, [ebp - 0x8e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x8cc]
push 0x40
add eax, eax
pop esi
cmp eax, esi
push 4
cmovb esi, eax
xor ecx, ecx
pop edx
mov eax, esi
mov dword [ebp - 0x900], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00415646
mov dword [ebp - 0x8fc], eax
pop ecx
test esi, esi
je 0x405515
mov edi, ebx
push ebx
push ebx
push ebx
push 0x404ba8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x8fc]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, esi
jb 0x4054f7
mov eax, dword [ebp - 0x904]
push ebx
push ebx
mov dword [ebp - 0x8f0], eax
lea eax, [ebp - 0x8f0]
push eax
push fcn.0040520e
push ebx
push ebx
mov dword [ebp - 0x8ec], 0x40494c
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x908], eax
call fcn.0040530b
push 0x41
pop eax
push 2
mov dword [ebp - 0x8f8], eax
mov esi, eax
mov edi, eax
pop ebx
push edi
push 0x42abb8
lea eax, [ebp - 0x30]
push 0xa
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x40558d
cmp eax, ebx
je 0x40558d
cmp eax, 3
jne 0x405625
push edi
push 0x42abc4
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
push 0xa
push eax
movlpd qword [ebp - 0x8b0], xmm0
movlpd qword [ebp - 0x8a8], xmm0
movlpd qword [ebp - 0x8a0], xmm0
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x8a0]
push eax
lea eax, [ebp - 0x8a8]
push eax
lea eax, [ebp - 0x8b0]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x8a8]
xorps xmm0, xmm0
sub ecx, dword [ebp - 0x8a0]
mov eax, dword [ebp - 0x8a4]
sbb eax, dword [ebp - 0x89c]
mov dword [ebp - 0x914], eax
lea eax, [ebp - 0x920]
push eax
lea eax, [ebp - 0x8b8]
mov word [ebp - 0x920], si
push eax
mov dword [ebp - 0x918], ecx
movlpd qword [ebp - 0x910], xmm0
call fcn.00407078
inc esi
inc edi
cmp si, 0x5a
jbe 0x40555c
mov edi, dword [ebp - 0x8e4]
mov esi, dword [ebp - 0x900]
push 0
pop ebx
test edi, edi
je 0x4056da
push ebx
push 1
push 0x31
pop edx
mov ecx, edi
call fcn.00404d83
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, edi
test al, 0x10
je 0x40566e
push ebx
push ebx
push 0x31
pop edx
call fcn.00404d83
jmp 0x405673
call fcn.00404ca0
test esi, esi
je 0x405696
push 2
mov edi, esi
pop esi
push ebx
push esi
push ebx
push dword [0x42fab4]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
sub edi, 1
jne 0x40567c
mov esi, dword [ebp - 0x900]
push 0xffffffffffffffff
push 1
push dword [ebp - 0x8fc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4056c1
mov eax, dword [ebp - 0x8fc]
push dword [eax + ebx*4]
call edi
inc ebx
cmp ebx, esi
jb 0x4056b1
push dword [ebp - 0x8fc]
call fcn.0041562b
pop ecx
push dword [0x42fab4]
call edi
jmp 0x405b84
mov esi, dword [ebp - 0x8f4]
xor edi, edi
inc edi
test esi, esi
je 0x40573f
jmp 0x40571f
lea ecx, [ebp - 0x830]
call fcn.00403f4b
lea ecx, [ebp - 0x830]
call fcn.00403f2b
push ebx
push edi
push 0x31
pop edx
lea ecx, [ebp - 0x830]
call fcn.00404d83
push ebx
push ebx
push 0x31
pop edx
lea ecx, [ebp - 0x830]
call fcn.00404d83
push esi
lea eax, [ebp - 0x830]
push 0x400
push eax
call fcn.004161c4
add esp, 0xc
test eax, eax
jne 0x4056e9
push esi
call fcn.00415934
pop ecx
cmp byte [ebp + 8], 0
jne 0x40594e
mov esi, ebx
mov dword [ebp - 0x8f4], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x41
mov dword [ebp - 0x89c], eax
pop eax
push 0x1a
pop ecx
mov dword [ebp - 0x8a4], ecx
mov edx, ecx
mov dword [ebp - 0x8e4], ecx
mov ecx, dword [ebp - 0x89c]
mov dword [ebp - 0x8ac], eax
test cl, 1
je 0x40581b
push 0x18
call fcn.00415646
mov esi, eax
pop ecx
test esi, esi
je 0x405803
push dword [ebp - 0x8ac]
mov dword [esi + 0x14], edi
push 0x42abb8
push 0xa
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x4057c6
push 2
pop ecx
cmp eax, ecx
je 0x4057c6
cmp eax, 3
jne 0x405803
push dword [ebp - 0x8ac]
push str.._c:
push 0xa
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push ebx
push ebx
push esi
push 0x4050cb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [ebp - 0x8f4]
mov dword [ebp + esi*4 - 0x898], eax
inc esi
mov dword [ebp - 0x8f4], esi
jmp 0x405809
mov esi, dword [ebp - 0x8f4]
mov eax, dword [ebp - 0x8ac]
mov ecx, dword [ebp - 0x89c]
mov edx, dword [ebp - 0x8a4]
inc eax
shr ecx, 1
sub edx, 1
mov dword [ebp - 0x8ac], eax
mov dword [ebp - 0x89c], ecx
mov dword [ebp - 0x8a4], edx
jne 0x40577d
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x898]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [ebp - 0x8f4]
mov esi, ebx
test edi, edi
je 0x405868
push dword [ebp + esi*4 - 0x898]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jb 0x405856
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x41
pop ecx
push 0x1a
mov dword [ebp - 0x8f4], eax
pop edx
test al, 1
je 0x405906
push 0x18
call fcn.00415646
mov esi, eax
pop ecx
test esi, esi
je 0x4058f4
mov eax, dword [ebp - 0x8f8]
push eax
push 0x42abb8
push 0xa
push esi
mov dword [esi + 0x14], ebx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x4058c5
push 2
pop ecx
cmp eax, ecx
je 0x4058c5
cmp eax, 3
jne 0x4058f4
push dword [ebp - 0x8f8]
push str.._c:
push 0xa
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push ebx
push ebx
push esi
push 0x4050cb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + edi*4 - 0x898], eax
inc edi
mov eax, dword [ebp - 0x8f4]
mov ecx, dword [ebp - 0x8f8]
mov edx, dword [ebp - 0x8e4]
inc ecx
shr eax, 1
sub edx, 1
mov dword [ebp - 0x8f8], ecx
mov dword [ebp - 0x8f4], eax
mov dword [ebp - 0x8e4], edx
jne 0x40587c
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x898]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, ebx
test edi, edi
je 0x40594e
push dword [ebp + esi*4 - 0x898]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jb 0x40593c
xor eax, eax
lea edi, [ebp - 0x8bc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x8bc], ebx
mov dword [ebp - 0x8b8], ebx
mov dword [ebp - 0x8b4], ebx
sub esp, 0xc
mov dword [ebp - 4], ebx
mov ecx, esp
lea esi, [ebp - 0x8bc]
push ecx
call fcn.00406b8c
mov ecx, esi
call fcn.0040775d
mov esi, dword [ebp - 0x8bc]
add esp, 0xc
jmp 0x4059b4
push dword [esi]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4059b1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, dword [ebp - 0x8b8]
jne 0x405991
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [0x42fb34]
mov edi, dword [0x42fb38]
cmp esi, edi
je 0x405abd
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x8e4], esi
jb 0x4059ef
mov eax, dword [esi]
mov dword [ebp - 0x8e4], eax
push 0x20
call fcn.00415646
mov edi, eax
mov dword [ebp - 0x8f4], edi
pop ecx
test edi, edi
je 0x405a8e
push 8
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x8e4]
call fcn.00403f2b
mov edi, dword [ebp - 0x8f4]
push dword [ebp - 0x8e4]
mov word [edi + 0x18], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00415646
pop ecx
push dword [ebp - 0x8e4]
mov dword [edi + 0x14], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push ebx
push ebx
push dword [0x42fab4]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x405a78
lock inc dword [0x42f9ac]
lock inc dword [0x42fb04]
jmp 0x405a8e
cmp dword [edi + 0x14], 0
je 0x405a87
push dword [edi + 0x14]
call fcn.0041562b
pop ecx
push edi
call fcn.0041562b
pop ecx
mov edi, dword [0x42fb38]
add esi, 0x18
cmp esi, edi
jne 0x4059db
mov esi, dword [0x42fb34]
cmp esi, edi
je 0x405abd
mov ecx, esi
call fcn.00406c39
add esi, 0x18
cmp esi, edi
jne 0x405aa9
mov esi, dword [0x42fb34]
mov dword [0x42fb38], esi
jmp 0x405ad0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x42fb04]
cmp eax, dword [0x42fab0]
jne 0x405ac5
mov eax, dword [ebp - 0x904]
mov dword [ebp - 0x8e8], eax
lea eax, [ebp - 0x8e8]
push eax
mov dword [ebp - 0x8e4], 0x405103
call fcn.0040520e
mov esi, dword [ebp - 0x908]
test esi, esi
je 0x405b19
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x900]
test esi, esi
je 0x405b42
push 2
mov edi, esi
pop esi
push ebx
push esi
push ebx
push dword [0x42fab4]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
sub edi, 1
jne 0x405b28
mov esi, dword [ebp - 0x900]
mov edi, dword [ebp - 0x8fc]
push 0xffffffffffffffff
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test esi, esi
je 0x405b66
push dword [edi + ebx*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, esi
jb 0x405b58
push edi
call fcn.0041562b
pop ecx
push dword [0x42fab4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x8bc]
call fcn.00406b2d
call fcn.00421227
ret