Function at 0x5bec80
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 0x68a3ca
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x745694]
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 0x5becd0
mov al, 1
jmp 0x5bf43b
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 0x5bed1a
nop
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp byte [eax + ecx], 0x2f
jne 0x5bed15
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 0x5becf0
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 0x5bed6b
mov edi, eax
add eax, eax
push eax
push 0
mov dword [ebp - 0x2d8], edi
call fcn.006637d2
mov esi, eax
add esp, 8
mov dword [ebp - 0x2dc], esi
jmp 0x5bed6d
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 0x5bf3e8
test al, 0x10
je 0x5bf3e8
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 0x5bedcd
push 1
push 0x70df74
lea ecx, [ebp - 0x28]
call fcn.004485a0
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005be590
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.006637d2
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 0x5bee12
mov eax, dword [0x72bd38]
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 0x5bf1a5
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x69b8b8
lea eax, [ebp - 0x294]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5bee86
test dx, dx
je 0x5bee82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5bee86
add eax, 4
add ecx, 4
test dx, dx
jne 0x5bee60
xor eax, eax
jmp 0x5bee8b
sbb eax, eax
or eax, 1
test eax, eax
je 0x5bf18f
mov ecx, 0x69b8bc
lea eax, [ebp - 0x294]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5beec6
test dx, dx
je 0x5beec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5beec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5beea0
xor eax, eax
jmp 0x5beecb
sbb eax, eax
or eax, 1
test eax, eax
je 0x5bf18f
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 0x5bf070
mov dword [ebp - 0x2e0], edi
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.005be600
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 0x5bef93
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bef89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf45b
push edx
push ecx
call fcn.0065cc27
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 0x5bf456
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 0x5befec
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 0x5bf1c0
cmp edi, 0x10
jb 0x5bf038
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x5bf02e
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf45b
push ecx
push esi
call fcn.0065cc27
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 0x5bef03
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x70]
push eax
je 0x5bf1e8
call fcn.005be600
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.005bec80
and byte [ebp - 0x2c1], al
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x5bf139
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bf12f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf45b
push edx
push ecx
call fcn.0065cc27
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 0x5bf183
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bf179
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf45b
push edx
push ecx
call fcn.0065cc27
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 0x5bee50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x5bf368
mov byte [ebp - 0x2c1], 0
jmp 0x5bf3f8
cmp edi, 0x10
jb 0x5bf183
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x5bf1e4
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf45b
push edi
push esi
jmp 0x5bf17b
call fcn.005be600
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 0x5bf282
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bf278
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf45b
push edx
push ecx
call fcn.0065cc27
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 0x5bf2e3
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.006637d2
mov ecx, dword [ebp - 0x2d4]
mov esi, eax
add esp, 8
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2dc], esi
jmp 0x5bf2e9
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 0x5bf317
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 0x5bf189
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bf359
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf45b
push edx
push ecx
call fcn.0065cc27
add esp, 8
jmp 0x5bf189
cmp edi, 0xffffffff
je 0x5bf374
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x2c1], 0
je 0x5bf1b4
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 0x5bf3c6
mov dword [ebp - 0x2d4], eax
add eax, eax
push eax
push esi
call fcn.006637d2
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 0x5bf3ef
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne byte [ebp - 0x2c1]
test esi, esi
je 0x5bf405
push esi
call fcn.006637b7
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5bf435
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bf42b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bf45b
push edx
push ecx
call fcn.0065cc27
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.0065cc3a
mov esp, ebp
pop ebp
ret
call fcn.005ad830
call fcn.0066375b
int3