Function at 0x1000b8a6
Capabilities:
Acquire debug privileges
Enumerate processes
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
and dword [ebp - 0x14c], 0
push ebx
push esi
push edi
push 0x49
xor eax, eax
and byte [ebp - 0x250], al
pop ecx
lea edi, [ebp - 0x148]
push 0x40
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x24f]
rep stosd dword es:[edi], eax
and dword [ebp - 0x14], 0
push 1
stosw word es:[edi], ax
push str.SeDebugPrivilege
stosb byte es:[edi], al
call fcn.1000bb1f
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
mov ebx, str.KERNEL32.dll
push str.CreateToolhelp32Snapshot
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
push 2
call eax
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1000b91d
xor eax, eax
jmp 0x1000bb1a
push str.LocalAlloc
push ebx
mov dword [ebp - 0x14c], 0x128
call esi
push eax
call edi
push 0x400
push 0x40
call eax
push str.LocalReAlloc
push ebx
mov dword [ebp - 8], eax
mov byte [eax], 0x7d
mov dword [ebp - 4], 1
call esi
push eax
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000baeb
push dword [ebp - 0x144]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp dword [ebp - 0x144], 0
mov dword [ebp - 0xc], eax
je 0x1000bad7
cmp dword [ebp - 0x144], 4
je 0x1000bad7
cmp dword [ebp - 0x144], 8
je 0x1000bad7
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push 4
push ecx
push eax
call fcn.10013f38
lea eax, [ebp - 0x250]
push 0x104
push eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call fcn.10013f26
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x128]
push eax
call ebx
mov edx, eax
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0xc], edx
call ebx
mov ecx, dword [ebp - 0xc]
mov ebx, str.KERNEL32.dll
push str.LocalSize
push ebx
lea eax, [ecx + eax + 6]
mov dword [ebp - 0xc], eax
call esi
push eax
call edi
push str.LocalReAlloc
push ebx
mov dword [ebp - 0x18], eax
call esi
push eax
call edi
mov ecx, dword [ebp - 4]
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 0xc], eax
call dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jae 0x1000ba3d
push 0x42
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x144]
push 4
push eax
mov eax, dword [ebp - 4]
add eax, ecx
push eax
call sub.MSVCRT.dll_memcpy
add dword [ebp - 4], 4
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 8]
inc eax
push eax
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 4]
add eax, ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 8]
inc eax
push eax
lea eax, [ebp - 0x250]
push eax
mov eax, dword [ebp - 4]
add eax, ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_Process32Next
jmp 0x1000b965
push 0x42
push dword [ebp - 4]
push dword [ebp - 8]
call dword [ebp - 0x20]
push 0
push str.SeDebugPrivilege
mov dword [ebp - 8], eax
call fcn.1000bb1f
pop ecx
pop ecx
push str.CloseHandle
push ebx
call esi
push eax
call edi
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret