Function at 0x47a520
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2fcd
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x639354]
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]
lea eax, [ebp - 0x260]
xor ebx, ebx
push 0x250
push ebx
push eax
mov dword [ebp - 0x268], ebx
call fcn.00560a80
add esp, 0xc
mov dword [ebp - 0x274], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x261], 1
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x47abd7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x26c], eax
mov byte [ebp - 4], 1
test esi, esi
je 0x47a5d2
test esi, 0xffff0000
jne 0x47a5bc
movzx eax, si
lea ecx, [ebp - 0x26c]
push eax
call fcn.00429d90
jmp 0x47a5e1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a5c1
sub ecx, edx
sar ecx, 1
jmp 0x47a5d4
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x26c]
call fcn.0042a060
mov edi, dword [ebp - 0x26c]
mov byte [ebp - 4], 2
mov ecx, dword [edi - 0xc]
test ecx, ecx
je 0x47a62b
lea eax, [ecx - 1]
test eax, eax
js 0x47abe1
cmp eax, ecx
jg 0x47abe1
movzx eax, word [edi + eax*2]
cmp eax, 0x5c
je 0x47a62b
cmp eax, 0x2f
je 0x47a62b
push 1
push 0x5b9804
lea ecx, [ebp - 0x26c]
call fcn.004299d0
mov edi, dword [ebp - 0x26c]
push 0x5b9864
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00429810
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x278]
mov ecx, eax
test ecx, ecx
mov eax, 0
cmovne eax, ecx
add edx, 0xfffffff0
mov dword [ebp - 0x274], eax
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x47a68b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x47ab86
cmp eax, 0xffffffff
je 0x47ab86
mov esi, dword [ebp - 0x274]
test byte [ebp - 0x260], 0x10
je 0x47a867
push 0x5b9808
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x47ab47
push 0x5b980c
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x47ab47
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 4]
mov edi, dword [eax]
cmp edi, ebx
je 0x47a736
nop
mov ecx, dword [edi]
lea eax, [ebp - 0x234]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x47a71e
test dx, dx
je 0x47a71a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x47a71e
add ecx, 4
add eax, 4
test dx, dx
jne 0x47a6f8
xor eax, eax
jmp 0x47a723
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 2
test eax, eax
je 0x47ab41
add edi, 4
cmp edi, ebx
jne 0x47a6f0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00429810
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 5
push ecx
push dword [ebp + 0xc]
push dword [eax]
call fcn.0047a520
mov edx, dword [ebp - 0x294]
add esp, 0x18
test eax, eax
sete byte [ebp - 0x26d]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47a7b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x284]
mov byte [ebp - 4], 2
test edi, edi
je 0x47a848
mov ebx, dword [ebp - 0x280]
cmp edi, ebx
je 0x47a7f7
lea ecx, [ecx]
mov edx, dword [edi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47a7ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, ebx
jne 0x47a7d0
mov edi, dword [ebp - 0x284]
mov ecx, dword [ebp - 0x27c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x47a820
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47abeb
push ecx
push edi
call fcn.0055c524
add esp, 8
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
cmp byte [ebp - 0x26d], 0
mov ebx, dword [ebp - 0x268]
je 0x47ab47
mov byte [ebp - 0x261], 0
jmp 0x47ab47
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x47a877
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x47a883
call fcn.00429250
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov byte [ebp - 4], 7
test eax, eax
je 0x47abd7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov byte [ebp - 4], 6
or ebx, 1
mov dword [ebp - 0x288], eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x268], ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a8b5
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
push dword [edi - 0xc]
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.0042b6f0
mov esi, dword [ebp - 0x288]
add esp, 0x14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and ebx, 0xfffffffe
add esi, 0xfffffff0
mov dword [ebp - 0x268], ebx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47a90f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x47a91f
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x47a92b
call fcn.00429250
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov byte [ebp - 4], 9
test eax, eax
je 0x47abd7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov byte [ebp - 4], 8
or ebx, 2
mov dword [ebp - 0x28c], eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x268], ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47a960
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
push dword [edi - 0xc]
lea eax, [ebp - 0x28c]
push edi
push eax
call fcn.0042b6f0
mov esi, dword [ebp - 0x28c]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and dword [ebp - 0x268], 0xfffffffd
mov ebx, eax
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x47a9bc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x47ab3b
mov byte [ebp - 0x261], bl
mov byte [ebp - 4], 0xa
call fcn.00429250
test eax, eax
je 0x47abd7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x234]
push eax
push edi
lea eax, [ebp - 0x290]
push str._s_s_d__x
push eax
call fcn.0042c720
add esp, 0x14
mov ecx, dword [edi - 0x10]
test ecx, ecx
je 0x47aa22
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x47aa2e
call fcn.00429250
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x47abd7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov byte [ebp - 4], 0xc
or dword [ebp - 0x268], 4
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x278], eax
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47aa60
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
push dword [edi - 0xc]
lea eax, [ebp - 0x278]
push edi
push eax
call fcn.0042b6f0
mov edi, dword [ebp - 0x290]
mov esi, dword [ebp - 0x278]
push edi
push esi
call fcn.0056b9b4
and dword [ebp - 0x268], 0xfffffffb
add esp, 0x1c
mov ebx, eax
mov byte [ebp - 4], 0xb
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x47aac2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x47aad2
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x47ab1f
cmp dword [ebp + 0xc], 0
je 0x47ab1f
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.00429810
add esp, 0xc
push 4
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x298]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47ab1f
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 0x47ab3b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x274]
mov ebx, dword [ebp - 0x268]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [ebp - 0x26c]
test eax, eax
jne 0x47a6a2
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47ab7d
cmp dword [ebp + 0xc], eax
je 0x47ab7d
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
movzx ebx, byte [ebp - 0x261]
jmp 0x47ab91
mov esi, dword [ebp - 0x274]
mov ebx, 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47aba9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x47abb9
cmp esi, 0xffffffff
je 0x47abb9
push esi
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.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b60
push 0x80070057
call fcn.00429b60
call fcn.0056af64
int3