Function at 0x402220
Capabilities:
Enumerate processes
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x334
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x402479
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call edi
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileType]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
je 0x40227e
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x40228c
call ebp
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4023c4
mov eax, dword [esp + 0x348]
lea edx, [esp + 0x240]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4022b7
lea ecx, [esp + 0x240]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call edi
test eax, eax
push 0
je 0x4022f9
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x402310
call ebp
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x402310
xor eax, eax
mov cl, byte [esp + eax + 0x38]
mov byte [esp + eax + 0x13c], cl
inc eax
test cl, cl
jne 0x402312
lea edx, [esp + 0x13c]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
lea esi, [esp + 0x13c]
lea eax, [esp + 0x240]
mov edi, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402364
test cl, cl
je 0x402360
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402364
add eax, 2
add esi, 2
test cl, cl
jne 0x402340
xor eax, eax
jmp 0x402369
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
je 0x402404
call edi
test eax, eax
push 0
je 0x40239b
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x4023a9
call ebp
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402310
mov esi, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
call edi
test eax, eax
push 0
je 0x402464
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x334
ret
call edi
test eax, eax
push 0
je 0x40243c
push 0
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret
call ebp
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret
call ebp
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x334
ret