Function at 0x407560
Capabilities:
Get disk information
Timestomp file

Disassembly:
sub esp, 0x720
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x71c], eax
mov eax, dword [esp + 0x738]
push ebx
mov ebx, dword [esp + 0x758]
push ebp
mov ebp, dword [esp + 0x760]
push esi
push edi
push 0x103
mov esi, ecx
mov ecx, dword [esp + 0x770]
lea edx, [esp + 0x41d]
push 0
push edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], 0
mov byte [esp + 0x424], 0
call fcn.00423160
add esp, 0xc
push 0x103
lea eax, [esp + 0x115]
push 0
push eax
mov byte [esp + 0x11c], 0
call fcn.00423160
add esp, 0xc
test ebp, ebp
jne 0x407603
add dword [esp + 0x738], 0xfffffe00
adc dword [esp + 0x73c], 0xffffffff
mov edi, dword [esp + 0x73c]
mov ecx, dword [esp + 0x738]
mov eax, edi
shrd ecx, eax, 9
shr eax, 9
cmp dword [esp + 0x734], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
je 0x407656
lea edx, [esp + 0x520]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x407637
lea esi, [esp + 0x520]
call fcn.00405e30
mov ecx, esi
call fcn.00407240
push 0x200
lea ecx, [esp + 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualLock]
test ebp, ebp
je 0x407678
mov eax, dword [esp + 0x738]
mov ecx, edi
jmp 0x40767c
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x750]
push ecx
push eax
mov eax, dword [esp + 0x754]
push 0
push 0
push edx
mov edx, dword [esp + 0x44]
push 1
push eax
lea ecx, [esp + 0x234]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040d770
mov edi, eax
add esp, 0x20
test edi, edi
mov dword [esp + 0x18], edi
je 0x4076f8
lea edx, [esp + 0x218]
mov ecx, 0x200
mov esi, ecx
mov eax, edx
mov byte [eax], 0
add eax, 1
sub esi, 1
jne 0x4076c6
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x4076d1
push 0x200
lea edx, [esp + 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
mov eax, edi
jmp 0x407d61
mov ecx, dword [esp + 0x24]
xor eax, eax
test ebp, ebp
setne al
push 0
push 0
add eax, 2
push eax
push 0
push 3
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
jne 0x407739
push ebx
call fcn.00405da0
add esp, 4
mov esi, 0x64
jmp 0x40797d
mov esi, dword [esp + 0x744]
test ebp, ebp
mov ebp, dword [esp + 0x740]
jne 0x4077fb
mov edi, dword [esp + 0x738]
mov ebx, dword [esp + 0x73c]
add edi, 0x200
adc ebx, 0
cmp dword [esp + 0x758], 0
je 0x4077bb
cmp dword [esp + 0x754], 0
je 0x4077bb
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x58]
push edx
push 0
push 0
push 0
push 0
push 0x900c4
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4077bb
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00405da0
add esp, 4
mov dword [esp + 0x18], 0x64
mov esi, dword [esp + 0x18]
jmp 0x407979
mov edx, dword [esp + 0x10]
push 0
push 0
push ebx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4077f4
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4077f4
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x407892
mov eax, dword [esp + 0x14]
push eax
jmp 0x4077a2
cmp dword [esp + 0x734], 0
jne 0x407848
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x407840
mov ecx, dword [0x471a9c]
mov dword [esp + 0x20], eax
push 0x30
push ecx
mov eax, str.GETFILETIME_FAILED_IMPLANT
call fcn.00407540
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x407848
mov dword [esp + 0x20], 1
mov ecx, ebp
add ecx, 0xffff6000
mov eax, esi
adc eax, 0xffffffff
cmp eax, 0x1ff
ja 0x407888
jb 0x407866
cmp ecx, 0xffff6000
ja 0x407888
mov edx, dword [esp + 0x734]
push edx
push esi
push ebp
mov eax, edi
call fcn.004063b0
add esp, 0xc
test eax, eax
jne 0x407892
mov esi, 0xc
jmp 0x40797d
mov esi, 8
jmp 0x40797d
mov ecx, dword [esp + 0x10]
push 0x200
lea eax, [esp + 0x21c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, 0xffffffff
jne 0x4078c6
mov ebx, dword [esp + 0x14]
push ebx
call fcn.00405da0
add esp, 4
mov esi, 0x64
jmp 0x40797d
cmp dword [esp + 0x768], 0
mov ebx, 1
mov dword [esp + 0x3c], 0
je 0x407930
sub ebp, dword [esp + 0x738]
mov eax, dword [esp + 0x1c]
sbb esi, dword [esp + 0x73c]
add ebp, 0xfffffa00
adc esi, 0xffffffff
mov ecx, ebp
mov dword [eax + 0x2e70], ecx
mov edx, esi
mov dword [eax + 0x2e74], edx
mov eax, ecx
and eax, 0x1ff
xor esi, esi
or eax, esi
je 0x40791c
mov esi, 8
jmp 0x407979
shrd ecx, edx, 9
shr edx, 9
mov ebx, ecx
mov dword [esp + 0x3c], edx
mov edi, 1
jmp 0x407937
mov edi, dword [esp + 0x754]
mov eax, dword [esp + 0x75c]
sub eax, 0
je 0x407955
sub eax, 1
je 0x407aa0
sub eax, 1
jne 0x4077b2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edi
push edx
mov edx, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push ebx
call fcn.00407d80
add esp, 0x18
mov esi, eax
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x218]
mov ecx, 0x200
mov ebp, eax
mov edi, ecx
mov eax, edx
mov byte [eax], 0
add eax, 1
sub edi, 1
jne 0x407995
sub ecx, 1
mov byte [edx], 0
add edx, 1
test ecx, ecx
jne 0x4079a0
push 0x200
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
mov edi, dword [esp + 0x1c]
call fcn.004090f0
cmp dword [esp + 0x10], 0xffffffff
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
je 0x407a6b
cmp dword [esp + 0x734], 0
jne 0x407a12
cmp dword [esp + 0x768], 0
jne 0x407a12
test esi, esi
je 0x407a12
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x407a12
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [esp + 0x20], 0
je 0x407a6b
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x407a6b
push str.SETFILETIME_FAILED_IMPLANT
push str.____hs___
push 0x474260
call edi
mov edx, dword [0x471a9c]
add esp, 0xc
push 0x30
push edx
push 0x474260
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [esp + 0x418], 0
je 0x407a8a
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x41c]
push ecx
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test esi, esi
je 0x407b2c
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x407d61
cmp dword [esp + 0x2c], 0
ja 0x407ab0
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
jbe 0x407aba
mov esi, 8
jmp 0x407979
mov edx, dword [esp + 0x760]
mov ecx, dword [0x455df4]
mov dword [esp + 0x6c], eax
mov eax, dword [str.NO_NAME]
mov dword [esp + 0x88], edx
mov dx, word [0x455df8]
mov dword [esp + 0x60], eax
mov al, byte [0x455dfa]
lea esi, [esp + 0x60]
mov dword [esp + 0x64], ecx
mov word [esp + 0x68], dx
mov byte [esp + 0x6a], al
call fcn.0040c500
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
shl ecx, 9
mov dword [edx], ecx
mov ecx, dword [esp + 0x3c]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x28]
push ebx
mov edx, esi
call fcn.0040c940
add esp, 0x10
jmp 0x407977
cmp dword [esp + 0x75c], 2
jne 0x407d5f
call fcn.00406840
push 0x60
xor ebp, ebp
lea edx, [esp + 0xb4]
push ebp
push edx
mov esi, eax
call fcn.00423160
add esp, 0xc
cmp esi, 0xffffffff
jne 0x407bb4
push str.NO_FREE_DRIVES
push str.____hs___
push 0x474260
call edi
mov eax, dword [0x471a9c]
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 0xc
push 0x10
push eax
push 0x474260
push ebx
call esi
push str.FORMAT_NTFS_STOP
push str.____hs___
push 0x474260
call edi
mov ecx, dword [0x471a9c]
add esp, 0xc
push 0x10
push ecx
push 0x474260
push ebx
call esi
mov eax, 0x22
jmp 0x407d61
mov edi, dword [esp + 0x24]
mov eax, edi
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xbc], 1
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407be0
sub eax, edx
add eax, 0xfffffff1
push eax
lea edx, [esp + 0x114]
push edi
push edx
call fcn.00424590
lea eax, [esp + 0x11c]
add esp, 0xc
add eax, 0xffffffff
lea ebx, [ebx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407c10
mov ecx, dword [str.xxxxxx_lenovo]
mov edx, dword [0x455e30]
mov dword [eax], ecx
mov ecx, dword [0x455e34]
mov dword [eax + 4], edx
mov dx, word [0x455e38]
mov dword [eax + 8], ecx
mov cl, byte [0x455e3a]
mov word [eax + 0xc], dx
mov byte [eax + 0xe], cl
lea ecx, [esp + 0x110]
call fcn.00406f40
test eax, eax
jne 0x407c7d
lea edx, [esp + 0xb0]
push edx
mov edx, dword [esp + 0x34]
push 1
push ebp
push esi
push ebx
lea ecx, [esp + 0x124]
call fcn.00406a00
add esp, 0x14
cmp eax, 1
jge 0x407cba
mov eax, dword [0x471a9c]
push 0x10
push eax
mov eax, str.CANT_MOUNT_VOLUME
call fcn.00407540
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push eax
push ebx
call esi
mov ecx, dword [0x471a9c]
push 0x10
push ecx
mov eax, str.FORMAT_NTFS_STOP
call fcn.00407540
push eax
push ebx
call esi
mov eax, 0x24
jmp 0x407d61
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x407ce1
call fcn.00407080
test eax, eax
je 0x407ce1
mov edx, dword [esp + 0x760]
push edx
push esi
push ebx
call fcn.0040b360
add esp, 0xc
jmp 0x407cf2
mov eax, dword [esp + 0x760]
push eax
push esi
call fcn.00408060
add esp, 8
cmp eax, 1
push esi
push ebx
je 0x407d36
xor eax, eax
call fcn.00406df0
add esp, 8
test eax, eax
jne 0x407d22
mov ecx, dword [0x471a9c]
push 0x10
push ecx
mov eax, str.CANT_DISMOUNT_VOLUME
call fcn.00407540
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push str.FORMAT_NTFS_FAILED
call fcn.00407460
add esp, 4
mov eax, 0x64
jmp 0x407d61
xor eax, eax
call fcn.00406df0
add esp, 8
test eax, eax
jne 0x407d5f
mov edx, dword [0x471a9c]
push 0x10
push edx
mov eax, str.CANT_DISMOUNT_VOLUME
call fcn.00407540
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x72c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423893
add esp, 0x720
ret