Function at 0x53a520
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f4df
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x59de30]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x304], eax
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
push 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], eax
call fcn.004dafcb
add esp, 4
test eax, eax
jne 0x53a5a2
call fcn.0050095a
mov dword [ebp - 0x2f4], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x2f4]
lea ecx, [ebp - 0x2f4]
mov dword [eax], ecx
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x30c], 0
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x300], 0
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2f8], 0
push esi
mov byte [ebp - 4], 3
call fcn.0053b2e0
add esp, 4
test al, al
jne 0x53a617
xor bl, bl
jmp 0x53ae15
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 4
cmp word [esi], ax
jne 0x53a638
xor ecx, ecx
jmp 0x53a64f
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x53a640
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00403d70
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.0042f860
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x2d9]
push eax
push 0
push 0
call fcn.00420700
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x2d9]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [ebp - 0x30c], ebx
call fcn.00420700
add esp, 0x20
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x300]
mov dword [ebp - 0x2fc], ebx
call fcn.0053b3c0
mov edi, dword [ebp - 0x2fc]
cmp dword [ebp - 0x2e4], ebx
je 0x53acf0
push 1
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.004203f0
mov ecx, eax
call fcn.00420590
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x53a6f0
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x53a70e
push 0xffffffffffffffff
push 0
push eax
call fcn.00403f60
push 0x57efa8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00420610
push 0x57efa4
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 5
call fcn.0040af80
mov esi, eax
lea eax, [ebp - 0x58]
add esp, 0x18
cmp eax, esi
je 0x53a7ac
cmp dword [ebp - 0x44], 8
jb 0x53a750
push dword [ebp - 0x58]
call fcn.004daf24
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp dword [esi + 0x14], 8
jae 0x53a782
mov eax, dword [esi + 0x10]
inc eax
je 0x53a78d
add eax, eax
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004da6d0
add esp, 0xc
jmp 0x53a78d
mov eax, dword [esi]
mov dword [ebp - 0x58], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x14], 8
jb 0x53a7bd
push dword [ebp - 0x28]
call fcn.004daf24
add esp, 4
xor eax, eax
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
jb 0x53a7e6
push dword [ebp - 0x70]
call fcn.004daf24
add esp, 4
mov ecx, dword [ebp - 0x2e4]
test ecx, ecx
je 0x53a848
mov eax, dword [ebp - 0x2e8]
mov edx, dword [ebp - 0x2ec]
dec eax
add ecx, eax
mov eax, dword [ebp - 0x2f0]
dec edx
and edx, ecx
mov esi, dword [eax + edx*4]
cmp dword [esi + 0x14], 8
jb 0x53a81b
push dword [esi]
call fcn.004daf24
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
dec dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x2e8]
mov ecx, 0
cmove eax, ecx
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2d8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x2e0], ebx
cmp ebx, 0xffffffff
je 0x53ad1f
mov edx, 0x57ddf0
lea ecx, [ebp - 0x2ac]
lea ecx, [ecx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x53a8a6
test ax, ax
je 0x53a8a2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x53a8a6
add ecx, 4
add edx, 4
test ax, ax
jne 0x53a880
xor eax, eax
jmp 0x53a8ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x53abd8
mov eax, 0x57efe4
lea ecx, [ebp - 0x2ac]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x53a8e6
test dx, dx
je 0x53a8e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x53a8e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x53a8c0
xor eax, eax
jmp 0x53a8eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x53abd8
test byte [ebp - 0x2d8], 0x10
je 0x53abe5
push 0x57efa8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00420610
lea ecx, [ebp - 0x2ac]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 6
call fcn.0040af80
add esp, 0x18
mov ebx, eax
mov ecx, dword [ebp - 0x2e4]
mov edx, dword [ebp - 0x2ec]
inc ecx
mov byte [ebp - 4], 7
cmp edx, ecx
ja 0x53a954
push 1
lea ecx, [ebp - 0x2f4]
call fcn.00420410
mov edx, dword [ebp - 0x2ec]
mov ecx, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x2e4]
mov esi, dword [ebp - 0x2f0]
dec edx
and ecx, edx
add eax, ecx
and eax, edx
shl eax, 2
mov dword [ebp - 0x2e8], ecx
cmp dword [eax + esi], 0
mov dword [ebp - 0x314], eax
jne 0x53a9ab
push 0x18
call fcn.004dafcb
add esp, 4
test eax, eax
je 0x53a59d
mov edx, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x2f0]
mov dword [edx + ecx], eax
mov esi, dword [ebp - 0x2f0]
mov eax, edx
mov esi, dword [eax + esi]
test esi, esi
je 0x53aa09
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebx + 0x14], 8
jae 0x53a9e0
mov eax, dword [ebx + 0x10]
inc eax
je 0x53a9ea
add eax, eax
push eax
push ebx
push esi
call fcn.004da6d0
add esp, 0xc
jmp 0x53a9ea
mov eax, dword [ebx]
mov dword [esi], eax
mov dword [ebx], 0
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
inc dword [ebp - 0x2e4]
cmp dword [ebp - 0x14], 8
jb 0x53aa20
push dword [ebp - 0x28]
call fcn.004daf24
add esp, 4
xor eax, eax
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
jb 0x53aa49
push dword [ebp - 0x70]
call fcn.004daf24
add esp, 4
push 0x57efa8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00420610
lea ecx, [ebp - 0x2ac]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 8
call fcn.0040af80
add esp, 0x18
mov esi, eax
mov byte [ebp - 4], 9
cmp esi, edi
jae 0x53aac3
mov eax, dword [ebp - 0x300]
cmp eax, esi
ja 0x53aac3
sub esi, eax
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebp - 0x2f8]
jne 0x53aab5
push 1
lea ecx, [ebp - 0x300]
call fcn.004201a0
mov edi, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0x300]
lea eax, [esi + esi*2]
lea esi, [ecx + eax*8]
jmp 0x53aade
cmp edi, dword [ebp - 0x2f8]
jne 0x53aade
push 1
lea ecx, [ebp - 0x300]
call fcn.004201a0
mov edi, dword [ebp - 0x2fc]
test edi, edi
je 0x53ab39
mov dword [edi + 0x14], 7
xor eax, eax
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esi + 0x14], 8
jae 0x53ab10
mov eax, dword [esi + 0x10]
inc eax
je 0x53ab1a
add eax, eax
push eax
push esi
push edi
call fcn.004da6d0
add esp, 0xc
jmp 0x53ab1a
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
add edi, 0x18
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2fc], edi
jb 0x53ab53
push dword [ebp - 0x28]
call fcn.004daf24
add esp, 4
xor eax, eax
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
jb 0x53ab7c
push dword [ebp - 0x70]
call fcn.004daf24
add esp, 4
push 0x57efa8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00420610
lea ecx, [ebp - 0x2ac]
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040af80
add esp, 0x18
cmp dword [ebp - 0x5c], 8
mov byte [ebp - 4], 4
jb 0x53abbe
push dword [ebp - 0x70]
call fcn.004daf24
add esp, 4
cmp dword [ebp - 0x74], 8
jb 0x53abd2
push dword [ebp - 0x88]
call fcn.004daf24
add esp, 4
mov ebx, dword [ebp - 0x2e0]
test byte [ebp - 0x2d8], 0x10
jne 0x53acb5
push 0x57efa8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00420610
lea ecx, [ebp - 0x2ac]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040af80
add esp, 0x18
push eax
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 0xc
call fcn.00420050
cmp dword [ebp - 0x14], 8
jb 0x53ac33
push dword [ebp - 0x28]
call fcn.004daf24
add esp, 4
xor eax, eax
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 4
jb 0x53ac5f
push dword [ebp - 0x88]
call fcn.004daf24
add esp, 4
push 0x57efa8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00420610
lea ecx, [ebp - 0x2ac]
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040af80
add esp, 0x18
cmp dword [ebp - 0x74], 8
mov byte [ebp - 4], 4
jb 0x53aca4
push dword [ebp - 0x88]
call fcn.004daf24
add esp, 4
cmp dword [ebp - 0x5c], 8
jb 0x53acb5
push dword [ebp - 0x70]
call fcn.004daf24
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x53a872
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
cmp eax, 0x12
jne 0x53ad0a
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x2e4], 0
jne 0x53a6c4
mov ebx, dword [ebp - 0x30c]
mov esi, dword [ebp - 0x310]
cmp esi, ebx
je 0x53ad54
lea ebx, [ebx]
cmp dword [esi + 0x14], 8
jb 0x53ad3c
mov eax, dword [esi]
jmp 0x53ad3e
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x30c]
mov byte [ebp - 0x2d9], 0
jmp 0x53ad9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x304]
mov ebx, dword [ebp - 0x30c]
mov dword [ecx], eax
mov byte [ebp - 0x2d9], 0
jmp 0x53ad9c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x53ae67
add esi, 0x18
cmp esi, ebx
jne 0x53ad00
push dword [ebp - 0x2e0]
push edi
push dword [ebp - 0x300]
call fcn.0053a110
mov esi, dword [ebp - 0x300]
add esp, 0xc
cmp esi, edi
je 0x53ad95
cmp dword [esi + 0x14], 8
jb 0x53ad7d
mov eax, dword [esi]
jmp 0x53ad7f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x53ae67
add esi, 0x18
cmp esi, edi
jne 0x53ad73
mov byte [ebp - 0x2d9], 1
cmp dword [ebp - 0x2c], 8
jb 0x53adad
push dword [ebp - 0x40]
call fcn.004daf24
add esp, 4
mov esi, dword [ebp - 0x300]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test esi, esi
je 0x53ade8
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x2da]
push eax
push edi
push esi
call fcn.00420700
push esi
call fcn.004daf24
add esp, 0x14
mov esi, dword [ebp - 0x310]
test esi, esi
je 0x53ae0f
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x2da]
push eax
push ebx
push esi
call fcn.00420700
push esi
call fcn.004daf24
add esp, 0x14
mov bl, byte [ebp - 0x2d9]
lea ecx, [ebp - 0x2f4]
call fcn.004202c0
push dword [ebp - 0x2f4]
call fcn.004daf24
add esp, 4
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x2f4], 0
jb 0x53ae49
push dword [ebp - 0x58]
call fcn.004daf24
add esp, 4
mov al, bl
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.004da4c1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x304]
mov byte [ebp - 0x2d9], 0
mov dword [ecx], eax
jmp 0x53ad9c