Function at 0x40b500
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41988d
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x424320]
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, edx
mov dword [ebp - 0x2d4], esi
mov dword [ebp - 0x2cc], ecx
xor ebx, ebx
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x2b0], ebx
xor eax, eax
push 0x1b
push str.DeleteAllDirectoryExceptOne
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], ebx
mov word [ebp - 0x2ac], ax
call fcn.00404f00
push esi
lea edx, [ebp - 0x2ac]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c8]
call fcn.00406380
add esp, 4
xor dl, dl
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.004030c0
cmp dword [ebp - 0x2b4], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40b5ae
push dword [ebp - 0x2c8]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2b4], 7
cmp dword [ebp - 0x298], 8
mov dword [ebp - 0x2b8], 0
mov word [ebp - 0x2c8], ax
jb 0x40b5df
push dword [ebp - 0x2ac]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
push 0xffffffffffffffff
push eax
push dword [ebp - 0x2cc]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 2
call fcn.00404e00
push 2
push 0x41f424
lea ecx, [ebp - 0x40]
call fcn.00404820
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2d0], esi
cmp esi, 0xffffffff
jne 0x40b650
xor esi, esi
jmp 0x40b9ae
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 0xffffffffffffffff
push eax
push dword [ebp - 0x2cc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00404e00
push 1
push 0x41e080
lea ecx, [ebp - 0x28]
call fcn.00404820
cmp word [ebp - 0x264], 0
jne 0x40b696
xor ecx, ecx
jmp 0x40b6af
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b6a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404820
test byte [ebp - 0x290], 0x10
je 0x40b9da
xor eax, eax
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
cmp word [ebp - 0x264], ax
jne 0x40b6f6
xor ecx, ecx
jmp 0x40b70f
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b700
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00404f00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
mov edi, dword [ebp - 0x29c]
or ebx, 1
cmp dword [ebp - 0x298], 8
mov esi, 1
mov dword [ebp - 0x2b0], ebx
cmovae ecx, dword [ebp - 0x2ac]
cmp edi, esi
cmovb esi, edi
test esi, esi
je 0x40b771
mov edx, 0x41e50c
lea esp, [esp]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40b7b4
add ecx, 2
add edx, 2
dec esi
jne 0x40b760
xor eax, eax
test eax, eax
jne 0x40b78a
cmp edi, 1
jb 0x40b78a
cmp edi, 1
setne al
test eax, eax
je 0x40b8bb
xor eax, eax
mov dword [ebp - 0x2b4], 7
mov dword [ebp - 0x2b8], 0
mov word [ebp - 0x2c8], ax
cmp word [ebp - 0x264], ax
jne 0x40b7c2
xor ecx, ecx
jmp 0x40b7df
movzx eax, word [ecx]
cmp ax, word [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x40b773
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
jmp 0x40b7d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b7d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00404f00
push 2
push 0x41f42c
mov dword [ebp - 4], 5
or ebx, 2
push dword [ebp - 0x2b8]
mov dword [ebp - 0x2b0], ebx
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.00406a50
test eax, eax
je 0x40b8bb
xor eax, eax
mov dword [ebp - 0x2d8], 7
mov dword [ebp - 0x2dc], 0
mov word [ebp - 0x2ec], ax
cmp word [ebp - 0x264], ax
jne 0x40b84d
xor ecx, ecx
jmp 0x40b865
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b856
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ec]
call fcn.00404f00
mov ecx, dword [ebp - 0x2d4]
or ebx, 4
mov dword [ebp - 4], 6
mov dword [ebp - 0x2b0], ebx
cmp dword [ecx + 0x14], 8
jb 0x40b898
mov eax, dword [ecx]
jmp 0x40b89a
mov eax, ecx
push dword [ecx + 0x10]
push eax
push dword [ebp - 0x2dc]
push ecx
lea ecx, [ebp - 0x2ec]
call fcn.00406a50
mov byte [ebp - 0x291], 1
test eax, eax
jne 0x40b8c2
mov byte [ebp - 0x291], 0
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test bl, 4
je 0x40b901
and ebx, 0xfffffffb
cmp dword [ebp - 0x2d8], 8
jb 0x40b8e4
push dword [ebp - 0x2ec]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2d8], 7
mov dword [ebp - 0x2dc], 0
mov word [ebp - 0x2ec], ax
test bl, 2
je 0x40b93a
and ebx, 0xfffffffd
cmp dword [ebp - 0x2b4], 8
jb 0x40b91d
push dword [ebp - 0x2c8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2b4], 7
mov dword [ebp - 0x2b8], 0
mov word [ebp - 0x2c8], ax
mov dword [ebp - 4], 3
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test bl, 1
je 0x40b963
and ebx, 0xfffffffe
cmp dword [ebp - 0x298], 8
jb 0x40b963
push dword [ebp - 0x2ac]
call edi
add esp, 4
cmp byte [ebp - 0x291], 0
je 0x40b974
lea ecx, [ebp - 0x28]
call fcn.0040af40
mov esi, dword [ebp - 0x2d0]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 8
jb 0x40b98c
push dword [ebp - 0x28]
call edi
add esp, 4
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b650
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
cmp dword [ebp - 0x2c], 8
jb 0x40b9bc
push dword [ebp - 0x40]
call edi
add esp, 4
mov eax, esi
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.004176f4
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xb
xor eax, eax
mov dword [ebp - 0x298], 7
push str.DELETE_FILE
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
call fcn.00404f00
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x2c8]
call fcn.00406380
add esp, 4
xor dl, dl
mov byte [ebp - 4], 8
mov ecx, eax
call fcn.004030c0
cmp dword [ebp - 0x2b4], 8
jb 0x40ba58
push dword [ebp - 0x2c8]
call edi
add esp, 4
xor eax, eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x298], 8
mov dword [ebp - 0x2b4], 7
mov dword [ebp - 0x2b8], 0
mov word [ebp - 0x2c8], ax
jb 0x40ba8d
push dword [ebp - 0x2ac]
call edi
add esp, 4
push 0x1b
xor eax, eax
mov dword [ebp - 0x298], 7
push str.deletion_completed_with_::
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
call fcn.00404f00
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 9
call fcn.0040c510
cmp dword [ebp - 0x298], 8
jb 0x40b97a
push dword [ebp - 0x2ac]
call edi
add esp, 4
jmp 0x40b97a