Function at 0x4780e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b6e3
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x478], ebx
mov dword [ebp - 4], ebx
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x47881e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x470], eax
mov byte [ebp - 4], 1
test esi, esi
je 0x478176
test esi, 0xffff0000
jne 0x478160
movzx eax, si
lea ecx, [ebp - 0x470]
push eax
call fcn.00426130
jmp 0x478185
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478165
sub ecx, edx
sar ecx, 1
jmp 0x478178
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x470]
call fcn.004263f0
push 0x5b1518
lea eax, [ebp - 0x470]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x47c]
push eax
call fcn.00425c00
add esp, 0xc
lea ecx, [ebp - 0x468]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x47c]
mov ecx, eax
test ecx, ecx
mov eax, 0
cmovne eax, ecx
or edi, 0xffffffff
mov dword [ebp - 0x478], eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4781eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x478]
cmp eax, 0xffffffff
jne 0x4781fa
mov ebx, 1
jmp 0x4787a1
mov esi, dword [ebp + 0x10]
lea ecx, [ecx]
test byte [ebp - 0x468], 0x10
je 0x4782d7
push 0x5b14c4
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x47877f
push 0x5af938
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x47877f
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x48c]
push eax
call fcn.00425c00
push 0x5b14ac
push eax
lea eax, [ebp - 0x488]
mov byte [ebp - 4], 3
push eax
call fcn.00425c00
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 4
push dword [eax]
call fcn.004780e0
mov edx, dword [ebp - 0x488]
mov esi, eax
add esp, 0x24
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4782a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48c]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4782c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x47879f
mov esi, dword [ebp + 0x10]
jmp 0x47877f
cmp dword [ebp + 0xc], 0
je 0x478496
lea ecx, [ebp - 0x43c]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4782f0
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jle 0x478496
lea eax, [ebp - 0x444]
lea eax, [eax + ecx*2]
push str..sys
push eax
call fcn.0054b581
add esp, 8
test eax, eax
jne 0x478496
mov eax, dword [0x629bf0]
test al, 1
jne 0x478361
or eax, 1
mov dword [0x629bf0], eax
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x47881e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x5ad1c0
mov dword [0x629bec], eax
call fcn.0053d46e
add esp, 4
mov eax, dword [0x629bec]
cmp dword [eax - 0xc], 0
jne 0x478405
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x478400
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478390
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x629bec
call fcn.004263f0
mov eax, dword [0x629bec]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x4783ef
lea ecx, [edx - 1]
test ecx, ecx
js 0x478828
cmp ecx, edx
jg 0x478828
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x4783ef
cmp eax, 0x2f
je 0x4783ef
push 1
push 0x5b14ac
mov ecx, 0x629bec
call fcn.00425dc0
push 8
push str.drivers_
mov ecx, 0x629bec
call fcn.00425dc0
mov eax, dword [0x629bec]
add eax, 0xfffffff0
push eax
call fcn.00425f70
add eax, 0x10
add esp, 4
or ebx, 1
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x46c], ebx
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 5
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478430
sub ecx, edx
lea eax, [ebp - 0x43c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x474]
call fcn.00425dc0
mov esi, dword [ebp - 0x474]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x47847b
cmp dword [ebp + 0x10], eax
je 0x47847b
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x478496
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x470]
mov byte [ebp - 4], 6
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x4784b2
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4784c8
call fcn.00421b80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x47881e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x43c]
or ebx, 2
mov dword [ebp - 0x480], eax
mov dword [ebp - 0x46c], ebx
lea edx, [ecx + 2]
jmp 0x4784f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4784f0
sub ecx, edx
lea eax, [ebp - 0x43c]
sar ecx, 1
push ecx
push eax
push dword [edi - 0xc]
lea eax, [ebp - 0x480]
push edi
push eax
call fcn.00427890
mov esi, dword [ebp - 0x480]
add esp, 0x14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and ebx, 0xfffffffd
mov byte [ebp - 4], 2
mov dword [ebp - 0x46c], ebx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47854e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi - 0x10]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x478564
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x47857a
call fcn.00421b80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x47881e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x43c]
or ebx, 4
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x46c], ebx
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4785a0
sub ecx, edx
lea eax, [ebp - 0x43c]
sar ecx, 1
push ecx
push eax
push dword [edi - 0xc]
lea eax, [ebp - 0x484]
push edi
push eax
call fcn.00427890
mov esi, dword [ebp - 0x484]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0x46c], 0xfffffffb
mov ebx, eax
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4785fc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x478773
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x47881e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x43c]
push eax
push edi
lea eax, [ebp - 0x474]
push str._s_s_d__x
push eax
call fcn.004289d0
add esp, 0x14
mov ecx, dword [edi - 0x10]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x47865e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x478674
call fcn.00421b80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x47881e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x43c]
or dword [ebp - 0x46c], 8
lea edx, [ecx + 2]
mov dword [ebp - 0x47c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478692
sub ecx, edx
lea eax, [ebp - 0x43c]
sar ecx, 1
push ecx
push eax
push dword [edi - 0xc]
lea eax, [ebp - 0x47c]
push edi
push eax
call fcn.00427890
mov edi, dword [ebp - 0x474]
mov esi, dword [ebp - 0x47c]
push edi
push esi
call fcn.0054bb13
and dword [ebp - 0x46c], 0xfffffff7
mov ebx, eax
add esp, 0x1c
mov byte [ebp - 4], 8
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4786f4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x478707
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, dword [ebp + 0x10]
jmp 0x478755
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x478755
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.00425c00
add esp, 0xc
push 4
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x490]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478755
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x478776
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x478776
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x46c]
or edi, 0xffffffff
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x478200
lea ebx, [eax + 1]
jmp 0x4787a1
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x470]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4787ce
cmp edi, 2
je 0x4787ce
cmp edi, 3
je 0x4787ce
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4787ea
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x478]
test eax, eax
je 0x478800
cmp eax, 0xffffffff
je 0x478800
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
push 0x80070057
call fcn.00425f50
int3