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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6111af
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x6cd400]
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.004c568c
add esp, 4
test eax, eax
jne 0x4af322
call fcn.0060b592
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.004b0080
add esp, 4
test al, al
jne 0x4af397
xor bl, bl
jmp 0x4afb95
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 0x4af3b8
xor ecx, ecx
jmp 0x4af3cf
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4af3c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00403c30
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.004b0160
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x2d9]
push eax
push 0
push 0
call fcn.00418be0
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x2d9]
xor ebx, ebx
push eax
push ebx
push ebx
mov dword [ebp - 0x30c], ebx
call fcn.00418be0
add esp, 0x20
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x300]
mov dword [ebp - 0x2fc], ebx
call fcn.00417be0
mov edi, dword [ebp - 0x2fc]
cmp dword [ebp - 0x2e4], ebx
je 0x4afa70
push 1
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.004afc90
mov ecx, eax
call fcn.004aeec0
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x4af470
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 0x4af48e
push 0xffffffffffffffff
push 0
push eax
call fcn.00403b10
push 0x677634
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00404680
push 0x68e314
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 5
call fcn.0040d6e0
mov esi, eax
lea eax, [ebp - 0x58]
add esp, 0x18
cmp eax, esi
je 0x4af52c
cmp dword [ebp - 0x44], 8
jb 0x4af4d0
push dword [ebp - 0x58]
call fcn.004c56c2
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 0x4af502
mov eax, dword [esi + 0x10]
inc eax
je 0x4af50d
add eax, eax
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.005e96c0
add esp, 0xc
jmp 0x4af50d
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 0x4af53d
push dword [ebp - 0x28]
call fcn.004c56c2
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 0x4af566
push dword [ebp - 0x70]
call fcn.004c56c2
add esp, 4
mov ecx, dword [ebp - 0x2e4]
test ecx, ecx
je 0x4af5c8
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 0x4af59b
push dword [esi]
call fcn.004c56c2
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 0x4afa9f
mov edx, 0x676df4
lea ecx, [ebp - 0x2ac]
lea ecx, [ecx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4af626
test ax, ax
je 0x4af622
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4af626
add ecx, 4
add edx, 4
test ax, ax
jne 0x4af600
xor eax, eax
jmp 0x4af62b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4af958
mov eax, 0x68e2a8
lea ecx, [ebp - 0x2ac]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4af666
test dx, dx
je 0x4af662
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4af666
add ecx, 4
add eax, 4
test dx, dx
jne 0x4af640
xor eax, eax
jmp 0x4af66b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4af958
test byte [ebp - 0x2d8], 0x10
je 0x4af965
push 0x677634
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00404680
lea ecx, [ebp - 0x2ac]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 6
call fcn.0040d6e0
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 0x4af6d4
push 1
lea ecx, [ebp - 0x2f4]
call fcn.004aef40
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 0x4af72b
push 0x18
call fcn.004c568c
add esp, 4
test eax, eax
je 0x4af31d
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 0x4af789
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebx + 0x14], 8
jae 0x4af760
mov eax, dword [ebx + 0x10]
inc eax
je 0x4af76a
add eax, eax
push eax
push ebx
push esi
call fcn.005e96c0
add esp, 0xc
jmp 0x4af76a
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 0x4af7a0
push dword [ebp - 0x28]
call fcn.004c56c2
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 0x4af7c9
push dword [ebp - 0x70]
call fcn.004c56c2
add esp, 4
push 0x677634
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00404680
lea ecx, [ebp - 0x2ac]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 8
call fcn.0040d6e0
add esp, 0x18
mov esi, eax
mov byte [ebp - 4], 9
cmp esi, edi
jae 0x4af843
mov eax, dword [ebp - 0x300]
cmp eax, esi
ja 0x4af843
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 0x4af835
push 1
lea ecx, [ebp - 0x300]
call fcn.00418020
mov edi, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0x300]
lea eax, [esi + esi*2]
lea esi, [ecx + eax*8]
jmp 0x4af85e
cmp edi, dword [ebp - 0x2f8]
jne 0x4af85e
push 1
lea ecx, [ebp - 0x300]
call fcn.00418020
mov edi, dword [ebp - 0x2fc]
test edi, edi
je 0x4af8b9
mov dword [edi + 0x14], 7
xor eax, eax
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esi + 0x14], 8
jae 0x4af890
mov eax, dword [esi + 0x10]
inc eax
je 0x4af89a
add eax, eax
push eax
push esi
push edi
call fcn.005e96c0
add esp, 0xc
jmp 0x4af89a
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 0x4af8d3
push dword [ebp - 0x28]
call fcn.004c56c2
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 0x4af8fc
push dword [ebp - 0x70]
call fcn.004c56c2
add esp, 4
push 0x677634
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00404680
lea ecx, [ebp - 0x2ac]
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040d6e0
add esp, 0x18
cmp dword [ebp - 0x5c], 8
mov byte [ebp - 4], 4
jb 0x4af93e
push dword [ebp - 0x70]
call fcn.004c56c2
add esp, 4
cmp dword [ebp - 0x74], 8
jb 0x4af952
push dword [ebp - 0x88]
call fcn.004c56c2
add esp, 4
mov ebx, dword [ebp - 0x2e0]
test byte [ebp - 0x2d8], 0x10
jne 0x4afa35
push 0x677634
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00404680
lea ecx, [ebp - 0x2ac]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040d6e0
add esp, 0x18
push eax
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 0xc
call fcn.00466880
cmp dword [ebp - 0x14], 8
jb 0x4af9b3
push dword [ebp - 0x28]
call fcn.004c56c2
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 0x4af9df
push dword [ebp - 0x88]
call fcn.004c56c2
add esp, 4
push 0x677634
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00404680
lea ecx, [ebp - 0x2ac]
push ecx
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040d6e0
add esp, 0x18
cmp dword [ebp - 0x74], 8
mov byte [ebp - 4], 4
jb 0x4afa24
push dword [ebp - 0x88]
call fcn.004c56c2
add esp, 4
cmp dword [ebp - 0x5c], 8
jb 0x4afa35
push dword [ebp - 0x70]
call fcn.004c56c2
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4af5f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
cmp eax, 0x12
jne 0x4afa8a
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x2e4], 0
jne 0x4af444
mov ebx, dword [ebp - 0x30c]
mov esi, dword [ebp - 0x310]
cmp esi, ebx
je 0x4afad4
lea ebx, [ebx]
cmp dword [esi + 0x14], 8
jb 0x4afabc
mov eax, dword [esi]
jmp 0x4afabe
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x30c]
mov byte [ebp - 0x2d9], 0
jmp 0x4afb1c
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 0x4afb1c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4afbe7
add esi, 0x18
cmp esi, ebx
jne 0x4afa80
push dword [ebp - 0x2e0]
push edi
push dword [ebp - 0x300]
call fcn.004aebe0
mov esi, dword [ebp - 0x300]
add esp, 0xc
cmp esi, edi
je 0x4afb15
cmp dword [esi + 0x14], 8
jb 0x4afafd
mov eax, dword [esi]
jmp 0x4afaff
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4afbe7
add esi, 0x18
cmp esi, edi
jne 0x4afaf3
mov byte [ebp - 0x2d9], 1
cmp dword [ebp - 0x2c], 8
jb 0x4afb2d
push dword [ebp - 0x40]
call fcn.004c56c2
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 0x4afb68
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x2da]
push eax
push edi
push esi
call fcn.00418be0
push esi
call fcn.004c56c2
add esp, 0x14
mov esi, dword [ebp - 0x310]
test esi, esi
je 0x4afb8f
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x2da]
push eax
push ebx
push esi
call fcn.00418be0
push esi
call fcn.004c56c2
add esp, 0x14
mov bl, byte [ebp - 0x2d9]
lea ecx, [ebp - 0x2f4]
call fcn.004af140
push dword [ebp - 0x2f4]
call fcn.004c56c2
add esp, 4
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x2f4], 0
jb 0x4afbc9
push dword [ebp - 0x58]
call fcn.004c56c2
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.005e96ad
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 0x4afb1c