Function at 0x470890
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 0x59ab28
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
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]
lea eax, [ebp - 0x260]
xor ebx, ebx
push 0x250
push ebx
push eax
mov dword [ebp - 0x268], ebx
call fcn.00540d70
add esp, 0xc
mov dword [ebp - 0x274], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x261], 1
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x470f51
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 0x470942
test esi, 0xffff0000
jne 0x47092c
movzx eax, si
lea ecx, [ebp - 0x26c]
push eax
call fcn.00426130
jmp 0x470951
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470931
sub ecx, edx
sar ecx, 1
jmp 0x470944
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x26c]
call fcn.004263f0
mov edi, dword [ebp - 0x26c]
mov byte [ebp - 4], 2
mov eax, dword [edi - 0xc]
test eax, eax
je 0x47099b
lea ecx, [eax - 1]
test ecx, ecx
js 0x470f5b
cmp ecx, eax
jg 0x470f5b
movzx eax, word [edi + ecx*2]
cmp eax, 0x5c
je 0x47099b
cmp eax, 0x2f
je 0x47099b
push 1
push 0x5b14ac
lea ecx, [ebp - 0x26c]
call fcn.00425dc0
mov edi, dword [ebp - 0x26c]
push 0x5b1518
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00425c00
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 0x4709fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x470efc
cmp eax, 0xffffffff
je 0x470efc
mov esi, dword [ebp - 0x274]
test byte [ebp - 0x260], 0x10
je 0x470bdf
push 0x5b14c4
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x470ebd
push 0x5af938
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x470ebd
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
cmp ebx, eax
je 0x470aa6
nop
mov edx, dword [ebx]
lea ecx, [ebp - 0x234]
mov di, word [edx]
cmp di, word [ecx]
jne 0x470a8e
test di, di
je 0x470a8a
mov di, word [edx + 2]
cmp di, word [ecx + 2]
jne 0x470a8e
add edx, 4
add ecx, 4
test di, di
jne 0x470a68
xor ecx, ecx
jmp 0x470a93
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x470a9e
add ebx, 4
cmp ebx, eax
jne 0x470a60
cmp ebx, eax
jne 0x470eb7
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00425c00
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 4
push ecx
push dword [ebp + 0xc]
push dword [eax]
call fcn.00470890
mov edx, dword [ebp - 0x294]
add esp, 0x18
test eax, eax
mov byte [ebp - 4], 3
sete byte [ebp - 0x26d]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x470b25
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 0x470bc0
mov ebx, dword [ebp - 0x280]
cmp edi, ebx
je 0x470b68
mov edx, dword [edi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x470b5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, ebx
jne 0x470b41
mov edi, dword [ebp - 0x284]
mov eax, dword [ebp - 0x27c]
sub eax, edi
sar eax, 2
lea ecx, [eax*4]
mov eax, edi
cmp ecx, 0x1000
jb 0x470b98
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470f65
push ecx
push edi
call fcn.0053d0af
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 0x470ebd
mov byte [ebp - 0x261], 0
jmp 0x470ebd
mov ecx, dword [edi - 0x10]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x470bf3
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x470c07
call fcn.00421b80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x470f51
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x234]
or ebx, 1
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x268], ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470c30
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.00427890
mov esi, dword [ebp - 0x288]
add esp, 0x14
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and ebx, 0xfffffffe
mov byte [ebp - 4], 2
mov dword [ebp - 0x268], ebx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x470c8e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi - 0x10]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x470ca2
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x470cb6
call fcn.00421b80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x470f51
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x234]
or ebx, 2
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x268], ebx
lea edx, [ecx + 2]
jmp 0x470ce0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470ce0
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.00427890
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 0x470d3c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x470eb1
mov byte [ebp - 0x261], bl
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x470f51
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 7
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.004289d0
add esp, 0x14
mov ecx, dword [edi - 0x10]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x470da2
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x470db6
call fcn.00421b80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x470f51
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x234]
or dword [ebp - 0x268], 4
lea edx, [ecx + 2]
mov dword [ebp - 0x278], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470dd6
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.00427890
mov edi, dword [ebp - 0x290]
mov esi, dword [ebp - 0x278]
push edi
push esi
call fcn.0054bb13
and dword [ebp - 0x268], 0xfffffffb
add esp, 0x1c
mov ebx, eax
mov byte [ebp - 4], 7
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x470e38
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x470e48
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x470e95
cmp dword [ebp + 0xc], 0
je 0x470e95
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x298]
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 - 0x298]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x470e95
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 0x470eb1
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 0x470a12
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x470ef3
cmp dword [ebp + 0xc], eax
je 0x470ef3
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
movzx ebx, byte [ebp - 0x261]
jmp 0x470f07
mov esi, dword [ebp - 0x274]
mov ebx, 1
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x470f23
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x470f33
cmp esi, 0xffffffff
je 0x470f33
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.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
push 0x80070057
call fcn.00425f50
call fcn.0054b0c3
int3