Function at 0x403590
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fbac
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x42c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x2b6], dl
mov esi, ecx
mov dword [ebp - 0x2bc], esi
xor al, al
mov dword [ebp - 0x12c], 0
mov byte [ebp - 0x2b5], al
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], al
mov dword [ebp - 4], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0xf
mov byte [ebp - 0x174], al
mov byte [ebp - 4], 1
mov eax, 0x7fffffff
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 4
jb 0x403efc
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x403643
mov eax, dword [esi]
push 4
push str..
push ecx
push eax
push ecx
push dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2d8]
call fcn.0040fa80
mov edx, dword [ebp - 0x160]
cmp edx, 0x10
jb 0x403698
mov ecx, dword [ebp - 0x174]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40368e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ecf
push edx
push ecx
call fcn.0041e9db
add esp, 8
movups xmm1, xmmword [ebp - 0x2d8]
cmp dword [ebp - 0x2c4], 0x10
lea ecx, [ebp - 0x174]
movq xmm0, qword [ebp - 0x2c8]
movd eax, xmm1
movups xmmword [ebp - 0x174], xmm1
cmovae ecx, eax
movq qword [ebp - 0x164], xmm0
lea eax, [ebp - 0x2b4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x2c0], eax
cmp eax, 0xffffffff
je 0x403e50
mov edi, eax
nop dword [eax]
cmp byte [ebp + 8], 0
je 0x403701
lea ecx, [ebp - 0x288]
call fcn.00401d40
cmp byte [ebp - 0x288], 0x2e
je 0x403d35
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
cmovae eax, dword [ebp - 0x12c]
mov byte [eax], 0
mov eax, 0x7fffffff
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x403efc
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40374c
mov eax, dword [esi]
push 1
push 0x4245e8
push ecx
push eax
push ecx
push dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2f8]
call fcn.0040fa80
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2f8]
call fcn.0040a8d0
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x118]
movq qword [ebp - 0x2e0], xmm1
movups xmmword [ebp - 0x2d0], xmm0
cmp edx, 0x10
jb 0x4037ee
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4037d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e25
push edx
push ecx
call fcn.0041e9db
movups xmm0, xmmword [ebp - 0x2d0]
add esp, 8
movq xmm1, qword [ebp - 0x2e0]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2e4]
movq qword [ebp - 0x11c], xmm1
movups xmmword [ebp - 0x12c], xmm0
cmp edx, 0x10
jb 0x40383b
mov ecx, dword [ebp - 0x2f8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403831
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e25
push edx
push ecx
call fcn.0041e9db
add esp, 8
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [ebp - 0x15c], 0
add esp, 0xc
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
push 0x104
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4038c0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x15c]
call fcn.0040c3d0
mov edi, dword [ebp - 0x148]
lea ecx, [ebp - 0x15c]
mov esi, dword [ebp - 0x14c]
cmp edi, 0x10
cmovae ecx, dword [ebp - 0x15c]
cmp esi, 1
jb 0x403934
or edx, 0xffffffff
lea eax, [esi - 1]
cmp eax, edx
cmovb edx, eax
add edx, ecx
nop word [eax + eax]
cmp byte [edx], 0x5c
jne 0x403929
movzx eax, byte [edx]
cmp al, 0x5c
jne 0x403920
xor eax, eax
jmp 0x403925
sbb eax, eax
or eax, 1
test eax, eax
je 0x403930
cmp edx, ecx
je 0x403934
dec edx
jmp 0x403910
sub edx, ecx
jmp 0x403937
or edx, 0xffffffff
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xf
cmp esi, edx
jb 0x403f01
sub esi, edx
lea eax, [ebp - 0x15c]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp edi, 0x10
push ecx
cmovae eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x2d8]
add eax, edx
push eax
call fcn.0040c3d0
mov edx, dword [ebp - 0x148]
cmp edx, 0x10
jb 0x4039c1
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4039b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e25
push edx
push ecx
call fcn.0041e9db
add esp, 8
movups xmm0, xmmword [ebp - 0x2d8]
mov edi, dword [ebp - 0x118]
lea edx, [ebp - 0x12c]
mov esi, dword [ebp - 0x11c]
cmp edi, 0x10
movups xmmword [ebp - 0x15c], xmm0
cmovae edx, dword [ebp - 0x12c]
movq xmm0, qword [ebp - 0x2c8]
movq qword [ebp - 0x14c], xmm0
cmp esi, 1
jb 0x403a35
or eax, 0xffffffff
lea ecx, [esi - 1]
cmp ecx, eax
cmovb eax, ecx
add eax, edx
nop dword [eax]
cmp byte [eax], 0x5c
jne 0x403a2a
movzx ecx, byte [eax]
cmp cl, 0x5c
jne 0x403a21
xor ecx, ecx
jmp 0x403a26
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x403a31
cmp eax, edx
je 0x403a35
dec eax
jmp 0x403a10
sub eax, edx
jmp 0x403a38
or eax, 0xffffffff
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xf
cmp esi, eax
jb 0x403f01
sub esi, eax
lea ecx, [ebp - 0x12c]
or edx, 0xffffffff
cmp esi, 0xffffffff
cmovb edx, esi
cmp edi, 0x10
push edx
cmovae ecx, dword [ebp - 0x12c]
add eax, ecx
lea ecx, [ebp - 0x2d8]
push eax
call fcn.0040c3d0
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x403ac2
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403ab8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e25
push edx
push ecx
call fcn.0041e9db
add esp, 8
movups xmm0, xmmword [ebp - 0x2d8]
cmp dword [ebp - 0x148], 0x10
lea edx, [ebp - 0x15c]
push dword [ebp - 0x14c]
cmovae edx, dword [ebp - 0x15c]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
movups xmmword [ebp - 0x144], xmm0
movq xmm0, qword [ebp - 0x2c8]
movq qword [ebp - 0x134], xmm0
call fcn.004127a0
cmp dword [ebp - 0x130], 0x10
lea edx, [ebp - 0x144]
push dword [ebp - 0x134]
cmovae edx, dword [ebp - 0x144]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004127a0
mov edi, dword [ebp - 0x144]
lea ecx, [ebp - 0x144]
mov esi, dword [ebp - 0x14c]
lea edx, [ebp - 0x15c]
add esp, 8
cmp dword [ebp - 0x130], 0x10
cmovae ecx, edi
cmp dword [ebp - 0x148], 0x10
cmovae edx, dword [ebp - 0x15c]
cmp esi, dword [ebp - 0x134]
jne 0x403bcd
sub esi, 4
jb 0x403b81
nop word [eax + eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x403b86
add edx, 4
add ecx, 4
sub esi, 4
jae 0x403b70
cmp esi, 0xfffffffc
je 0x403bba
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x403bb3
cmp esi, 0xfffffffd
je 0x403bba
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x403bb3
cmp esi, 0xfffffffe
je 0x403bba
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x403bb3
cmp esi, 0xffffffff
je 0x403bba
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x403bba
sbb eax, eax
or eax, 1
jmp 0x403bbc
xor eax, eax
test eax, eax
mov eax, dword [ebp + 8]
jne 0x403bd0
test al, al
je 0x403c96
jmp 0x403bd0
mov eax, dword [ebp + 8]
test byte [ebp - 0x2b4], 0x10
je 0x403c0f
mov cl, byte [ebp - 0x2b6]
test cl, cl
je 0x403c03
mov dl, cl
lea ecx, [ebp - 0x12c]
push eax
call fcn.00403590
mov esi, eax
add esp, 4
test esi, esi
jne 0x403da8
jmp 0x403c90
mov byte [ebp - 0x2b5], 1
jmp 0x403c96
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push 0x80
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x403da0
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x12c]
cmovae ecx, dword [ebp - 0x12c]
call fcn.00401d40
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call fcn.004013a0
add esp, 4
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x403da0
mov edi, dword [ebp - 0x144]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x403cd0
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x403cc6
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e25
push ecx
push edi
call fcn.0041e9db
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
cmp edx, 0x10
jb 0x403d29
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403d1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e25
push edx
push ecx
call fcn.0041e9db
add esp, 8
mov edi, dword [ebp - 0x2c0]
mov esi, dword [ebp - 0x2bc]
lea eax, [ebp - 0x2b4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4036f0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 0x12
jne 0x403e52
cmp byte [ebp - 0x2b5], 0
jne 0x403e50
mov esi, dword [ebp - 0x2bc]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x403d83
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x403e37
call edi
mov esi, eax
jmp 0x403e52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x403dde
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403dd4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e25
push edx
push ecx
call fcn.0041e9db
add esp, 8
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
cmp edx, 0x10
jb 0x403e52
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403e2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403e2b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041e9db
add esp, 8
jmp 0x403e52
cmp dword [esi + 0x14], 0x10
jb 0x403e3f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x403e50
call edi
mov esi, eax
jmp 0x403e52
xor esi, esi
mov edx, dword [ebp - 0x160]
cmp edx, 0x10
jb 0x403e88
mov ecx, dword [ebp - 0x174]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403e7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ecf
push edx
push ecx
call fcn.0041e9db
add esp, 8
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0xf
mov byte [ebp - 0x174], 0
cmp edx, 0x10
jb 0x403edf
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403ed5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403ed5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041e9db
add esp, 8
mov eax, esi
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.0041e5ae
mov esp, ebp
pop ebp
ret
call fcn.00401600
call fcn.0040cdf0
int3