Function at 0x5d2820
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x6536ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push ebp
xor ebx, ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], bx
mov edi, dword [esp + 0x2b0]
mov ecx, 0x6cbf74
test ecx, ecx
mov dword [esp + 0x2a8], ebx
je 0x5d2956
cmp edi, ebx
je 0x5d2956
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
call fcn.00401f20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a8], 1
call fcn.00401070
lea ecx, [esp + 0x28]
call fcn.004027c0
push ebx
push 0x6cbf74
lea ecx, [esp + 0x30]
mov byte [esp + 0x2b0], 2
call fcn.004027e0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x5d292a
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x10]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x2a8], 1
call fcn.00401070
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], bl
call fcn.00401070
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x2b0]
cmp eax, ebx
jne 0x5d295e
lea eax, [esp + 0x20]
lea edx, [esp + 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x34], esi
jne 0x5d298c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2a8], eax
call fcn.00401070
or eax, esi
jmp 0x5d2b78
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x50]
push eax
push esi
call ebp
lea ecx, [esp + 0x50]
push ecx
push esi
call ebp
test eax, eax
je 0x5d2b3d
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov word [esp + 0x14], bx
mov edx, 0x6c900c
test edx, edx
je 0x5d2b02
cmp edi, ebx
je 0x5d2b02
lea ecx, [esp + 0x7c]
test ecx, ecx
je 0x5d2b02
lea ecx, [esp + 0x38]
call fcn.004027c0
push ebx
push 0x6c900c
lea ecx, [esp + 0x40]
mov byte [esp + 0x2b0], 4
call fcn.004027e0
push edi
lea ecx, [esp + 0x2c]
call fcn.00401ee0
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x44]
push edx
mov byte [esp + 0x2ac], 5
call fcn.00401ee0
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], 6
call fcn.00401070
mov edi, dword [esp + 0x28]
cmp edi, ebx
jne 0x5d2a37
lea edi, [esp + 0x2c]
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x44]
call fcn.00401f10
push eax
call fcn.00609a4e
push edi
mov ebp, eax
call fcn.00609a4e
add esi, ebp
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.00622acb
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x5d2aba
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x44]
call fcn.00401f10
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f10
push eax
lea ecx, [esp + 0x40]
call fcn.00401f10
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a8], 5
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x2a8], 4
call fcn.00401070
lea ecx, [esp + 0x38]
mov byte [esp + 0x2a8], 3
call fcn.00401070
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x2b0]
mov esi, dword [esp + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edx, dword [esp + 0x50]
and edx, 0x10
cmp dl, 0x10
je 0x5d2b1d
cmp eax, ebx
jne 0x5d2b16
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], bl
call fcn.00401070
lea eax, [esp + 0x50]
push eax
push esi
call ebp
test eax, eax
jne 0x5d29aa
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x6fca48]
cmp eax, ebx
jne 0x5d2b52
mov eax, 0x6fca4c
push eax
call fcn.0060b2c8
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.00401070
xor eax, eax
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29c
ret