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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e828
push 0x40cf50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb80
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0xa44], 1
or ecx, 0xffffffff
mov dword [ebp - 0xa4c], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [ebp - 0xa48], edx
cmp edx, 0x511
jle 0x403972
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xa40]
mov edi, esi
or ecx, 0xffffffff
mov dword [ebp - 0xb90], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0xb90]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp + edx - 0xa41], 0x5c
je 0x4039db
lea edx, [ebp - 0xa40]
mov edi, 0x412260
or ecx, 0xffffffff
xor eax, eax
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xa40]
lea edx, [ebp - 0x52c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x52c]
mov edi, 0x4125d0
or ecx, 0xffffffff
xor eax, eax
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0xb8c]
push eax
lea ecx, [ebp - 0x52c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xa4c], eax
cmp eax, 0xffffffff
jne 0x403a69
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x4125cc
lea eax, [ebp - 0xb60]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403a98
cmp cl, bl
je 0x403a94
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403a98
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403a74
xor eax, eax
jmp 0x403a9d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x403b50
mov esi, 0x4125c8
lea eax, [ebp - 0xb60]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403ad4
cmp cl, bl
je 0x403ad0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403ad4
add eax, 2
add esi, 2
cmp cl, bl
jne 0x403ab0
xor eax, eax
jmp 0x403ad9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x403b50
lea edi, [ebp - 0xa40]
lea edx, [ebp - 0x52c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xb60]
lea edx, [ebp - 0x52c]
or ecx, 0xffffffff
xor eax, eax
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]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x52c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x403b50
mov byte [ebp - 0xa44], bl
jmp 0x403b6c
lea ecx, [ebp - 0xb8c]
push ecx
mov edx, dword [ebp - 0xa4c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403a69
mov eax, dword [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
mov dword [ebp - 0xa4c], eax
mov dword [ebp - 4], eax
jmp 0x403bb0
mov eax, dword [ebp - 0xa44]
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret