Function at 0x10050070
Capabilities:
Create thread
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ea94b
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 [0x10120764]
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 0x1005012a
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.1000146a
add esp, 8
test eax, eax
jne 0x1005010f
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.10004ead
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.10004ead
cmp dword [0x10122c64], 1
jne 0x1004fed2
push 1
push 0x40
push 8
push 0x100fe7d4
lea ecx, [ebp - 0x1fc]
call fcn.10005fc9
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 [0x10122c74], 1
jne 0x1004ffc1
lea eax, [ebp - 0x20c]
push eax
call fcn.1004fc80
add esp, 4
lea ecx, [ebp - 0x20c]
push ecx
call fcn.1004fc60
add esp, 4
mov dword [ebp - 0x214], eax
push 1
push 0x40
push 8
push 0x100fe7f4
lea ecx, [ebp - 0x2c8]
call fcn.10005fc9
mov dword [ebp - 4], 1
push 0x100fe7f8
lea edx, [ebp - 0x2c8]
push edx
call fcn.10003bcf
add esp, 8
mov eax, dword [ebp - 0x214]
push eax
call fcn.10005358
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 0x100fe818
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 0x100fe840
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp esi, esp
call fcn.10004ead
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
call fcn.10001447
cmp dword [0x10122c68], 1
jne 0x1005000d
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.10004ead
mov esi, esp
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.10004ead
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x10122c68], 2
jne 0x10050059
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.10004ead
mov esi, esp
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.10004ead
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x10122c68], 3
jne 0x100500a5
mov esi, esp
push 0
push 0
push 0
push 0x10007707
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.10004ead
mov esi, esp
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.10004ead
mov esi, esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x10122c68], 4
jne 0x100500fe
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.10004ead
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.10004ead
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 0x1004fe1d
cmp dword [ebp - 0x144], 0xffffffff
je 0x10050149
mov esi, esp
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10004ead
push edx
mov ecx, ebp
push eax
lea edx, [0x10050184]
call fcn.10004543
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.10004ead
mov esp, ebp
pop ebp
ret