Function at 0x1004f9d0
Capabilities:
Create thread
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ea21b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
push esi
push edi
lea edi, [ebp - 0x2cc]
mov ecx, 0xb0
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1011f764]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x13c], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1004fa8a
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.1000146a
add esp, 8
test eax, eax
jne 0x1004fa6f
mov esi, esp
mov ecx, dword [ebp - 0x134]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp esi, esp
call fcn.10004ea8
mov dword [ebp - 0x148], eax
mov esi, esp
push 0
mov edx, dword [ebp - 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp esi, esp
call fcn.10004ea8
cmp dword [0x10121c64], 1
jne 0x1004f832
push 1
push 0x40
push 8
push 0x100fd670
lea ecx, [ebp - 0x1fc]
call fcn.10005fbf
mov dword [ebp - 4], 0
push str._nPID_Scan:
lea eax, [ebp - 0x1fc]
push eax
call fcn.10003bcf
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1fc]
push edx
call fcn.10003bcf
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1fc]
call fcn.10001447
cmp dword [0x10121c74], 1
jne 0x1004f921
lea eax, [ebp - 0x20c]
push eax
call fcn.1004f5e0
add esp, 4
lea ecx, [ebp - 0x20c]
push ecx
call fcn.1004f5c0
add esp, 4
mov dword [ebp - 0x214], eax
push 1
push 0x40
push 8
push 0x100fd690
lea ecx, [ebp - 0x2c8]
call fcn.10005fbf
mov dword [ebp - 4], 1
push 0x100fd694
lea edx, [ebp - 0x2c8]
push edx
call fcn.10003bcf
add esp, 8
mov eax, dword [ebp - 0x214]
push eax
call fcn.10005353
add esp, 4
push eax
lea ecx, [ebp - 0x2c8]
push ecx
call fcn.10003bcf
add esp, 8
push str.PID_Scan:
lea edx, [ebp - 0x2c8]
push edx
call fcn.10003bcf
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c8]
push ecx
call fcn.10003bcf
add esp, 8
push 0x100fd6b4
lea edx, [ebp - 0x2c8]
push edx
call fcn.10003bcf
add esp, 8
lea ecx, [ebp - 0x2c8]
call fcn.10002f0e
mov esi, esp
push 2
push 0x100fd6dc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp esi, esp
call fcn.10004ea8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
call fcn.10001447
cmp dword [0x10121c68], 1
jne 0x1004f96d
mov esi, esp
push 0
push 0
push 0
push 0x10003cc9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.10004ea8
mov esi, esp
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.10004ea8
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x10121c68], 2
jne 0x1004f9b9
mov esi, esp
push 0
push 0
push 0
push 0x10001587
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.10004ea8
mov esi, esp
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.10004ea8
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x10121c68], 3
jne 0x1004fa05
mov esi, esp
push 0
push 0
push 0
push 0x100076fd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.10004ea8
mov esi, esp
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.10004ea8
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x10121c68], 4
jne 0x1004fa5e
mov esi, esp
push 0
push 0
push 0
push 0x10003dd2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.10004ea8
mov esi, esp
push 0x200010
push str.PID_Scan
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.10004ea8
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1004f77d
cmp dword [ebp - 0x144], 0xffffffff
je 0x1004faa9
mov esi, esp
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10004ea8
push edx
mov ecx, ebp
push eax
lea edx, [0x1004fae4]
call fcn.1000453e
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10003675
add esp, 0x2cc
cmp ebp, esp
call fcn.10004ea8
mov esp, ebp
pop ebp
ret