Function at 0x5be6a0
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 0x68a360
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
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]
cmp dword [eax + 0x10], 0
jne 0x5be6dd
mov al, 1
jmp 0x5bec58
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 0x5be72a
nop dword [eax]
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp byte [eax + ecx], 0x2f
jne 0x5be725
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 0x5be700
xor edi, edi
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 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 0x5be77d
mov edi, eax
add eax, eax
push eax
push 0
mov dword [ebp - 0x2b0], edi
call fcn.006637d2
mov esi, eax
add esp, 8
mov dword [ebp - 0x2b4], esi
jmp 0x5be783
mov esi, dword [ebp - 0x2b4]
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
jne 0x5be7c1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne byte [ebp - 0x2a9]
jmp 0x5bec15
test al, 0x10
je 0x5bebf6
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov byte [ebp - 0x2a9], 1
mov byte [ebp - 0x2aa], 0
cmp byte [eax + ecx - 1], 0x5c
je 0x5be7fb
push 1
push 0x70df74
lea ecx, [ebp - 0x28]
call fcn.004485a0
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005be590
mov eax, dword [ebp - 0x2b0]
inc eax
mov dword [ebp - 0x2b0], eax
add eax, eax
push eax
push dword [ebp - 0x2b4]
call fcn.006637d2
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x2b4], esi
lea edi, [esi - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x5be834
mov eax, dword [0x72bd38]
mov dword [edi], eax
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x2b8], edi
cmp edi, 0xffffffff
je 0x5beb99
mov edi, dword [ebp - 0x2b0]
nop dword [eax]
mov ecx, 0x69b8b8
lea eax, [ebp - 0x27c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5be8a6
test dx, dx
je 0x5be8a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5be8a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5be880
xor eax, eax
jmp 0x5be8ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x5beb78
mov ecx, 0x69b8bc
lea eax, [ebp - 0x27c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5be8e6
test dx, dx
je 0x5be8e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5be8e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5be8c0
xor eax, eax
jmp 0x5be8eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x5beb78
test byte [ebp - 0x2a8], 0x10
je 0x5bea0a
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x58]
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
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
push dword [ebp + 0xc]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
call fcn.005be6a0
and byte [ebp - 0x2a9], al
add esp, 8
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x5be9b7
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5be9ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bec73
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x5beb78
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5be9fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bec73
push edx
push ecx
call fcn.0065cc27
add esp, 8
jmp 0x5beb78
cmp byte [ebp + 0xc], 0
je 0x5beb71
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x58]
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], 4
call fcn.005a5ba0
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 - 0x44]
cmp edx, 0x10
jb 0x5beab2
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5beaa8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bec73
push edx
push ecx
call fcn.0065cc27
add esp, 8
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
jbe 0x5beaf5
mov dword [ebp - 0x2b0], eax
add eax, eax
push eax
push esi
call fcn.006637d2
mov edi, dword [ebp - 0x2b0]
mov esi, eax
add esp, 8
mov dword [ebp - 0x2b4], esi
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push edi
cmovae eax, dword [ebp - 0x40]
push esi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test byte [ebp - 0x2a8], 1
je 0x5beb27
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp - 0x2a9], al
mov edx, dword [ebp - 0x2c]
setne byte [ebp - 0x2a9]
cmp edx, 0x10
jb 0x5beb78
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5beb65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bec73
push edx
push ecx
call fcn.0065cc27
add esp, 8
jmp 0x5beb78
mov byte [ebp - 0x2aa], 1
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5be870
mov edi, dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x5bebad
mov byte [ebp - 0x2a9], 0
jmp 0x5bec15
cmp edi, 0xffffffff
je 0x5bebb9
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x2a9], 0
je 0x5beba4
cmp byte [ebp - 0x2aa], 0
jne 0x5beba4
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005be590
mov esi, dword [ebp - 0x2b4]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne byte [ebp - 0x2a9]
jmp 0x5bec15
cmp byte [ebp + 0xc], 0
je 0x5bec0e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne byte [ebp - 0x2a9]
jmp 0x5bec15
mov byte [ebp - 0x2a9], 1
test esi, esi
je 0x5bec22
push esi
call fcn.006637b7
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5bec52
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5bec48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5bec73
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov al, byte [ebp - 0x2a9]
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.0066375b
int3