Function at 0x401030
Capabilities:
Check for time delay via gettickcount
Check mutex on windows
Create process on windows
Delete directory
Delete file
Enumerate files on windows
Get common file path
Persist via run registry key
Set current directory
Shutdown system

Disassembly:
mov eax, 0x144c
call fcn.00402890
mov eax, dword [esp + 0x1458]
push ebx
push ebp
push esi
push edi
push str._reboot
push eax
call fcn.00402810
add esp, 8
test eax, eax
je 0x40107b
push 0xdac
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144c
ret 0x10
call fcn.00401000
mov esi, dword [esp + 0x1460]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x40a118
push 0x67
push esi
mov dword [esp + 0x30], eax
call edi
push 0x64
push 0x40a0b4
push 0x6d
push esi
call edi
push esi
call fcn.00401a30
add esp, 4
push str.VDP_399779F8_C5BD_41F7_B964_A324E9353264
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401a1f
push 0
push esi
call fcn.00401ac0
add esp, 8
lea ecx, [esp + 0x54]
mov byte [esp + 0x12], 0
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x54]
push str.D5BB0907_4BB0_46A3_AA68_0173D111058D
push edx
lea eax, [esp + 0x264]
push str._s_s.
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x568]
lea edx, [esp + 0x25c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401162
mov byte [esp + 0x12], 1
lea eax, [esp + 0x25c]
push eax
call edi
lea ecx, [esp + 0x568]
push ecx
push esi
call ebx
test eax, eax
jne 0x401142
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x54]
push str.D5BB0907_4BB0_46A3_AA68_0173D111058D
push edx
lea eax, [esp + 0x264]
push str._s_s
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea edx, [esp + 0x54]
test eax, eax
push edx
lea eax, [esp + 0x260]
push str._s.
push eax
setne byte [esp + 0x1f]
call ebp
add esp, 0xc
lea ecx, [esp + 0x568]
lea edx, [esp + 0x25c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401206
lea eax, [esp + 0x594]
lea ecx, [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x368]
push str._s_s
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x360]
push eax
call edi
lea ecx, [esp + 0x568]
push ecx
push esi
call ebx
test eax, eax
jne 0x4011c7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.D5BB0907_4BB0_46A3_AA68_0173D111058D
call fcn.00401c40
add esp, 4
lea edx, [esp + 0xe60]
mov dword [esp + 0x1c], eax
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x125c]
lea ecx, [esp + 0x135c]
push eax
lea edx, [esp + 0x8b4]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0xe6c]
push eax
push ecx
call fcn.004026c1
push 0x40a180
lea edx, [esp + 0x8c8]
push 0x40a180
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x1178]
push eax
push ecx
call fcn.00402630
mov eax, dword [esp + 0x48]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add esp, 0x28
test eax, eax
je 0x4013b5
lea edx, [esp + 0x464]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.msi.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x464]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x9b0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x468]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4013ae
mov al, byte [esp + 0x13]
test al, al
jne 0x401355
mov al, byte [esp + 0x12]
test al, al
je 0x401355
mov esi, dword [esp + 0x1460]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0xbf4]
push 0x168
push edx
push 0x6a
push esi
call edi
lea eax, [esp + 0x54]
push str.D5BB0907_4BB0_46A3_AA68_0173D111058D
lea ecx, [esp + 0xbf8]
push eax
lea edx, [esp + 0xf6c]
push ecx
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x568]
push 0x104
push eax
push 0x3f4
push esi
call edi
push 0x4091e4
lea ecx, [esp + 0x8b4]
push str.instmsia
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x6b4]
push edx
push eax
call fcn.00402630
lea ecx, [esp + 0x68]
lea edx, [esp + 0x7c0]
push ecx
push str._T:__s___C__Q
push edx
call ebp
add esp, 0x20
lea eax, [esp + 0x7ac]
lea ecx, [esp + 0x6a8]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea edx, [esp + 0x54]
push edx
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401734
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push str.FarStone_CloseRcache
call esi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push eax
push 0xffff
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Close_VirtualDrive08_4305A438_9AFD_45d6_A185_C9A6344556B8
call esi
push 0
push 0
push eax
push 0xffff
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x8b0]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0xaf8]
push 0x40916c
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0xaf0]
push eax
call ebx
lea ecx, [esp + 0xaf0]
lea edx, [esp + 0x158]
push ecx
push str._sMsiExec.exe
push edx
call ebp
push str.D5BB0907_4BB0_46A3_AA68_0173D111058D
lea eax, [esp + 0x370]
push str.__I__s
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x18
lea ecx, [esp + 0xf64]
lea edx, [esp + 0x158]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
jne 0x4014c1
lea eax, [esp + 0x158]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.MsiExec.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11
xor eax, eax
mov edi, 0x40a018
push 5
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x368]
lea ecx, [esp + 0x160]
push eax
push ecx
push 0
push 0
mov dword [0x40a018], 0x44
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x401a1f
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push 0x80000002
push 0x58
push str.Proc
push str.SOFTWAREFarStoneVirtualDrive0100_
mov dword [esp + 0x24], eax
call fcn.00401dd0
add esp, 0x10
lea edx, [esp + 0x24]
push 0x80000002
push edx
push str.Proc
push str.SOFTWAREFarStoneVirtualDrive0100_
call fcn.00401d20
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp eax, 1
je 0x401552
cmp eax, 0xa
jne 0x40161a
lea eax, [esp + 0xd5c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0xd5c]
lea edx, [esp + 0x464]
push ecx
push str._sFSLUEXVDPROUninstEx.exe
push edx
call ebp
lea eax, [esp + 0x6b4]
push str.__Setup
push eax
call ebp
lea ecx, [esp + 0x6bc]
lea edx, [esp + 0x478]
push ecx
push edx
lea eax, [esp + 0x9cc]
push str.__s___s
push eax
call ebp
add esp, 0x24
lea ecx, [esp + 0xbf4]
lea edx, [esp + 0x464]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x401a1f
lea eax, [esp + 0x9b0]
push 0x80000002
push eax
push str.RegUninstEx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce_
call fcn.00401e30
xor esi, esi
add esp, 0x10
cmp esi, 0xc8
jge 0x40164f
push str.D5BB0907_4BB0_46A3_AA68_0173D111058D
call fcn.00401c40
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40166a
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xc8
jle 0x4015ef
call edi
push str.IDriver
mov esi, eax
call fcn.00402620
add esp, 4
test eax, eax
jne 0x40163f
sub esi, dword [esp + 0x14]
cmp esi, 0x7530
jg 0x401a1f
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401524
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4017f3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144c
ret 0x10
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4e20
call edi
push 5
lea ecx, [esp + 0x6ac]
push 0
lea edx, [esp + 0x46c]
push ecx
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor esi, esi
push str.UninstEx
call fcn.00402620
add esp, 4
test eax, eax
je 0x4016c4
push 0x64
call edi
inc esi
cmp esi, 0xc8
jl 0x401697
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144c
ret 0x10
push 0x3e8
call edi
lea eax, [esp + 0x1c]
push 0x80000002
push eax
push str.ExistUninstEx
push str.SOFTWAREFarStoneGameDrive0100Retail_
call fcn.00401d20
add esp, 0x10
test eax, eax
jne 0x401a1f
cmp dword [esp + 0x1c], 1
jne 0x401a1f
push 0x80000002
push str.RegUninstEx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce_
call fcn.00401cd0
push 0x80000002
push str.ExistUninstEx
push str.SOFTWAREFarStoneGameDrive0100Retail_
call fcn.00401cd0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144c
ret 0x10
lea ecx, [esp + 0x158]
push 0x409048
push ecx
call ebp
push str.D5BB0907_4BB0_46A3_AA68_0173D111058D
lea edx, [esp + 0x36c]
push str.__X__s__w
push edx
call ebp
lea eax, [esp + 0x8c4]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x9cc]
push 0x40916c
push edx
call ebp
add esp, 0x24
lea eax, [esp + 0x9b0]
push eax
call ebx
push 5
lea ecx, [esp + 0x364]
push 0
lea edx, [esp + 0x160]
push ecx
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401a1f
xor eax, eax
push 0x40a060
mov dword [0x40a060], eax
lea ecx, [esp + 0x58]
mov dword [0x40a064], eax
push 0x40a070
mov dword [0x40a068], eax
push ecx
push eax
push 0x10
push eax
push eax
mov dword [0x40a06c], eax
push eax
lea edx, [esp + 0x380]
lea eax, [esp + 0x178]
push edx
push eax
call fcn.00401c90
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x28
xor ebp, ebp
call edi
push 0x80000002
push 0x63
push str.Proc
push str.SOFTWAREFarStoneVirtualDrive0100_
mov ebx, eax
xor edi, edi
call fcn.00401dd0
add esp, 0x10
lea ecx, [esp + 0x14]
push 0x80000002
push ecx
push str.Proc
push str.SOFTWAREFarStoneVirtualDrive0100_
call fcn.00401d20
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x10
cmp eax, 2
jne 0x401843
call esi
mov ebp, eax
cmp dword [esp + 0x14], 1
jne 0x40185d
test edi, edi
jne 0x401861
mov edi, 1
call esi
mov ebp, eax
call esi
mov ebx, eax
jmp 0x401861
test edi, edi
je 0x40187d
lea edx, [esp + 0x14]
push 0x80000002
push edx
push str.Proc
push str.SOFTWAREFarStoneVirtualDrive0100_
call fcn.00401d20
add esp, 0x10
cmp dword [esp + 0x14], 1
jne 0x4018a2
test edi, edi
je 0x4018a2
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call esi
sub eax, ebp
cmp eax, 0xea60
jg 0x401973
call esi
mov esi, eax
sub esi, ebx
cmp esi, 0x124f80
jle 0x4018b8
test edi, edi
jne 0x401a1f
push 0x409038
call fcn.00402620
add esp, 4
test eax, eax
jne 0x4018f7
push str.IDriver
call fcn.00402620
add esp, 4
test eax, eax
jne 0x4018f7
push str.msiexec
call fcn.00402620
add esp, 4
test eax, eax
jne 0x4018f7
cmp esi, 0x2710
jg 0x401a1f
push 0x409038
call fcn.00402620
add esp, 4
test eax, eax
jne 0x40193d
push str.IDriver
call fcn.00402620
add esp, 4
test eax, eax
jne 0x40193d
push str.msiexec
call fcn.00402620
add esp, 4
test eax, eax
jne 0x40193d
cmp esi, 0x1388
jle 0x40193d
cmp dword [esp + 0x14], 0x63
je 0x401a1f
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x401814
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401814
mov eax, dword [esp + 0x1c]
push 0x104
test eax, eax
jne 0x401994
mov edx, dword [esp + 0x1464]
lea ecx, [esp + 0x7b0]
push ecx
push 0x6a
push edx
jmp 0x4019a6
mov ecx, dword [esp + 0x1464]
lea eax, [esp + 0x7b0]
push eax
push 0x6b
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x568]
push 0x104
mov eax, dword [esp + 0x1464]
push edx
push 0x3f4
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x568]
push 0x40
lea edx, [esp + 0x7b0]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, 5
push 0x409038
call fcn.00402610
push str.IDriver
call fcn.00402610
push str.msiexec
call fcn.00402610
add esp, 0xc
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
jne 0x4019f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144c
ret 0x10