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

Disassembly:
sub esp, 0x250
push ebx
push ebp
push esi
push edi
push str.CreateToolhelp32Snapshot
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov ebx, eax
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x38]
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x15d]
mov byte [esp + 0x15c], al
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x30
stosb byte es:[edi], al
call ebp
push str.SeDebugPrivilege
call fcn.1000e4d0
push 0x30
call ebp
add esp, 0xc
push 0
push 2
call ebx
mov edi, eax
push 0x30
mov dword [esp + 0x18], edi
call ebp
add esp, 4
cmp edi, 0xffffffff
jne 0x1000b9c2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x250
ret
push 0x400
push 0x40
mov dword [esp + 0x3c], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push str.Process32Next
push str.KERNEL32.dll
mov edi, 1
mov byte [ebx], 0x7d
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call esi
push str.Process32First
push str.KERNEL32.dll
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call esi
push str.CloseHandle
push str.kernel32.dll
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call esi
push str.PSAPI.dll
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x30
mov dword [esp + 0x14], eax
call ebp
mov eax, dword [esp + 0x14]
add esp, 4
push str.EnumProcessModules
push eax
call esi
push 0x30
mov dword [esp + 0x30], eax
call ebp
push 0x30
call ebp
mov ecx, dword [esp + 0x18]
add esp, 8
push str.GetModuleFileNameExA
push ecx
call esi
push 0x30
mov dword [esp + 0x24], eax
call ebp
mov eax, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0x34]
push edx
push eax
call dword [esp + 0x20]
test eax, eax
je 0x1000bbdf
push 0x30
call ebp
mov ecx, dword [esp + 0x40]
add esp, 4
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x30
mov esi, eax
call ebp
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
je 0x1000bbc9
cmp eax, 4
je 0x1000bbc9
cmp eax, 8
je 0x1000bbc9
push 0x30
call ebp
add esp, 4
lea edx, [esp + 0x30]
lea eax, [esp + 0x1c]
push edx
push 4
push eax
push esi
call dword [esp + 0x3c]
push 0x30
call ebp
mov edx, dword [esp + 0x20]
add esp, 4
lea ecx, [esp + 0x15c]
push 0x104
push ecx
push edx
push esi
call dword [esp + 0x30]
push 0x30
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 4
lea eax, [esp + 0x58]
push eax
call esi
lea ecx, [esp + 0x15c]
mov edx, eax
push ecx
mov dword [esp + 0x1c], edx
call esi
mov edx, dword [esp + 0x18]
push ebx
lea eax, [edx + eax + 6]
lea esi, [eax + edi]
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x1000bb40
push 0x42
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x58]
mov dword [edi + ebx], eax
add edi, 4
push ecx
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x58]
inc ecx
add edi, ebx
mov edx, ecx
lea eax, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x15c]
push edx
lea edi, [ecx + eax + 1]
mov dword [esp + 0x14], edi
call esi
mov ecx, eax
lea esi, [esp + 0x15c]
inc ecx
add edi, ebx
mov eax, ecx
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, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
lea eax, [edx + eax + 1]
mov dword [esp + 0x10], eax
mov edi, eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [esp + 0x30]
test eax, eax
jne 0x1000ba84
push 0x42
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push str.SeDebugPrivilege
mov esi, eax
call fcn.1000e4d0
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret