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

Disassembly:
push ebp
sub esp, 0x140
lea ebp, [esp - 4]
mov eax, dword [0x4234b0]
xor eax, ebp
mov dword [ebp + 0x140], eax
push 0x18
mov eax, 0x41a5f7
call fcn.0040d60c
mov eax, dword [ebp + 0x150]
mov eax, dword [eax - 0xc]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 2
mov edi, 0x41b3ac
je 0x40ac38
push str..
lea ecx, [ebp - 0x18]
call fcn.0040144f
push eax
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.0040304d
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.00401189
push 0x140
lea eax, [ebp]
push 0
push eax
call fcn.0040deb0
add esp, 0xc
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x40ac1d
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040144f
push eax
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.0040304d
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 7
call fcn.004030a4
add esp, 0x18
push dword [eax]
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.00401189
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40ac14
push edi
lea ecx, [ebp - 0x10]
call fcn.0040144f
push eax
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 8
call fcn.0040304d
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 9
call fcn.004030a4
add esp, 0x18
push dword [eax]
call esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x10]
jmp 0x40aba5
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0x150]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401189
mov eax, dword [ebp + 0x14c]
cmp dword [eax - 0xc], 0
je 0x40ad44
push str..
lea ecx, [ebp - 0x1c]
call fcn.0040144f
push eax
lea eax, [ebp + 0x14c]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040304d
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.00401189
push 0x140
lea eax, [ebp]
push 0
push eax
call fcn.0040deb0
add esp, 0xc
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ad39
push edi
lea ecx, [ebp - 0x18]
call fcn.0040144f
push eax
lea eax, [ebp + 0x14c]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040304d
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004030a4
add esp, 0x18
push dword [eax]
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.00401189
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40ad32
push edi
lea ecx, [ebp - 0x18]
call fcn.0040144f
push eax
lea eax, [ebp + 0x14c]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040304d
mov byte [ebp - 4], 0x10
jmp 0x40acc5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401189
push dword [ebp + 0x14c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp + 0x14c]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp + 0x150]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp + 0x154]
add ecx, 0xfffffff0
call fcn.00401189
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x140]
xor ecx, ebp
call fcn.0040d5fd
add ebp, 0x144
leave
ret 0xc