Function at 0x100587e0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0xd48
mov ecx, 0x100
xor eax, eax
lea edx, [esp + 0x948]
push ebx
push esi
push edi
lea edi, [esp + 0x954]
rep stosd dword es:[edi], eax
mov edi, str.SYSTEMCurrentControlSet_services_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.VSSS
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x958]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push reloc.platform.dll_Ordinal_2
call dword [0x107ab9d4]
add esp, 0xc
test eax, eax
jne 0x10058851
pop edi
pop esi
pop ebx
add esp, 0xd48
ret
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x154]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push ecx
push str.C:Program_Files.exe
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10058889
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xd48
ret
mov edi, str.C:Program_Files_
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], edx
lea edx, [esp + 0x154]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x154]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebp, dword [sym.imp.MSVCRT.dll_remove]
mov ecx, ebx
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x100589b3
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
cmp eax, edx
jne 0x100588f3
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x558]
lea edx, [esp + 0x558]
rep stosd dword es:[edi], eax
mov edi, str.C:Program_Files_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x558]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x558]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
add esp, 4
cmp eax, 0xffffffff
jne 0x100588f3
lea ecx, [esp + 0x558]
push ecx
push 0x10227334
call fcn.10029940
add esp, 8
jmp 0x100588f3
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 1
jne 0x100589ea
lea eax, [esp + 0x158]
push eax
call ebp
add esp, 4
cmp eax, 0xffffffff
jne 0x100589ea
lea ecx, [esp + 0x158]
push ecx
push 0x10227334
call fcn.10029940
add esp, 8
mov eax, dword [esp + 0xd6c]
mov esi, dword [esp + 0xd5c]
cmp eax, 0x1bee
pop ebp
jne 0x10058a2e
mov edx, dword [esp + 0xd64]
mov eax, dword [esp + 0xd60]
mov ecx, dword [0x107ab964]
push 0
push 0
push 0x1bee
push edx
push eax
push esi
push ecx
push 0x10227334
call fcn.10029df0
add esp, 0x20
mov edx, dword [esp + 0xd5c]
mov eax, dword [0x107ab964]
push edx
push esi
push eax
call fcn.1002bac0
add esp, 0xc
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0xd48
ret