Function at 0x5bf010
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68a93a
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x746694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2e4], ecx
mov dword [ebp - 0x2d0], 0
cmp dword [eax + 0x10], 0
jne 0x5bf060
mov al, 1
jmp 0x5bf7cb
push eax
lea ecx, [ebp - 0x28]
call fcn.005acee0
mov edi, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 4], 0
test edi, edi
je 0x5bf0aa
nop
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp byte [eax + ecx], 0x2f
jne 0x5bf0a5
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
mov byte [eax + ecx], 0x5c
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x28]
inc ecx
cmp ecx, edi
jb 0x5bf080
xor eax, eax
xor edi, edi
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2d8], edi
push edi
push edi
cmp edx, 0x10
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
cmovae eax, esi
push eax
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x5bf0fb
mov edi, eax
add eax, eax
push eax
push 0
mov dword [ebp - 0x2d8], edi
call fcn.00663d02
mov esi, eax
add esp, 8
mov dword [ebp - 0x2dc], esi
jmp 0x5bf0fd
xor esi, esi
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, dword [ebp - 0x28]
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5bf778
test al, 0x10
je 0x5bf778
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov byte [ebp - 0x2c1], 1
cmp byte [eax + ecx - 1], 0x5c
je 0x5bf15d
push 1
push 0x70eff4
lea ecx, [ebp - 0x28]
call fcn.004485a0
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005be920
mov eax, dword [ebp - 0x2d8]
inc eax
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d8], eax
add eax, eax
push eax
push dword [ebp - 0x2dc]
call fcn.00663d02
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2dc], esi
lea edi, [esi - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x5bf1a2
mov eax, dword [0x72cdb8]
mov dword [edi], eax
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c8], eax
mov edi, eax
cmp eax, 0xffffffff
je 0x5bf535
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x69c918
lea eax, [ebp - 0x294]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5bf216
test dx, dx
je 0x5bf212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5bf216
add eax, 4
add ecx, 4
test dx, dx
jne 0x5bf1f0
xor eax, eax
jmp 0x5bf21b
sbb eax, eax
or eax, 1
test eax, eax
je 0x5bf51f
mov ecx, 0x69c91c
lea eax, [ebp - 0x294]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5bf256
test dx, dx
je 0x5bf252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5bf256
add eax, 4
add ecx, 4
test dx, dx
jne 0x5bf230
xor eax, eax
jmp 0x5bf25b
sbb eax, eax
or eax, 1
test eax, eax
je 0x5bf51f
mov esi, dword [ebp - 0x2e4]
mov eax, 0x2aaaaaab
xor edi, edi
mov dword [ebp - 0x2e8], edi
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5bf400
mov dword [ebp - 0x2e0], edi
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005be990
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.005a5ba0
or dword [ebp - 0x2d0], 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x5bf323
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bf319
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf7eb
push edx
push ecx
call fcn.0065d157
add esp, 8
mov ecx, dword [ebp - 0x2e4]
mov eax, 0x2aaaaaab
mov esi, dword [esi]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov ecx, dword [ecx + 4]
sub ecx, esi
mov byte [ebp - 0x40], 0
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x5bf7e6
mov eax, dword [ebp - 0x2e0]
lea ecx, [ebp - 0x58]
mov edi, dword [ebp - 0x44]
add eax, esi
mov esi, dword [ebp - 0x58]
cmp edi, 0x10
mov edx, eax
cmovae ecx, esi
cmp dword [eax + 0x14], 0x10
jb 0x5bf37c
mov edx, dword [eax]
push dword [ebp - 0x48]
push ecx
push dword [eax + 0x10]
push edx
call fcn.005abda0
add esp, 0x10
mov byte [ebp - 4], 1
test al, al
jne 0x5bf550
cmp edi, 0x10
jb 0x5bf3c8
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x5bf3be
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf7eb
push ecx
push esi
call fcn.0065d157
add esp, 8
mov esi, dword [ebp - 0x2e4]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x2e8]
add dword [ebp - 0x2e0], 0x18
inc edi
mov dword [ebp - 0x2e8], edi
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x5bf293
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x70]
push eax
je 0x5bf578
call fcn.005be990
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.005a5ba0
or dword [ebp - 0x2d0], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push esi
push eax
call fcn.005bf010
and byte [ebp - 0x2c1], al
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x5bf4c9
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bf4bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf7eb
push edx
push ecx
call fcn.0065d157
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x5bf513
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bf509
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf7eb
push edx
push ecx
call fcn.0065d157
add esp, 8
mov esi, dword [ebp - 0x2cc]
mov edi, dword [ebp - 0x2c8]
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5bf1e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x5bf6f8
mov byte [ebp - 0x2c1], 0
jmp 0x5bf788
cmp edi, 0x10
jb 0x5bf513
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x5bf574
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf7eb
push edi
push esi
jmp 0x5bf50b
call fcn.005be990
add esp, 8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.005a5ba0
or dword [ebp - 0x2d0], 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
mov byte [ebp - 4], 1
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x5bf612
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bf608
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf7eb
push edx
push ecx
call fcn.0065d157
add esp, 8
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmovae eax, dword [ebp - 0x40]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov ecx, dword [ebp - 0x2d4]
cmp eax, ecx
jbe 0x5bf673
mov ecx, eax
add eax, eax
push eax
mov eax, dword [ebp - 0x2cc]
push eax
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x2d8], ecx
call fcn.00663d02
mov ecx, dword [ebp - 0x2d4]
mov esi, eax
add esp, 8
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2dc], esi
jmp 0x5bf679
mov esi, dword [ebp - 0x2cc]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
test byte [ebp - 0x2c0], 1
je 0x5bf6a7
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp - 0x2c1], al
mov edx, dword [ebp - 0x2c]
setne byte [ebp - 0x2c1]
cmp edx, 0x10
jb 0x5bf519
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bf6e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf7eb
push edx
push ecx
call fcn.0065d157
add esp, 8
jmp 0x5bf519
cmp edi, 0xffffffff
je 0x5bf704
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x2c1], 0
je 0x5bf544
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov ecx, dword [ebp - 0x2d4]
cmp eax, ecx
jbe 0x5bf756
mov dword [ebp - 0x2d4], eax
add eax, eax
push eax
push esi
call fcn.00663d02
mov ecx, dword [ebp - 0x2d4]
add esp, 8
mov esi, eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x5bf77f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne byte [ebp - 0x2c1]
test esi, esi
je 0x5bf795
push esi
call fcn.00663ce7
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5bf7c5
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bf7bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf7eb
push edx
push ecx
call fcn.0065d157
add esp, 8
mov al, byte [ebp - 0x2c1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0065d16a
mov esp, ebp
pop ebp
ret
call fcn.005ad830
call fcn.00663c8b
int3