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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.CreateToolhelp32Snapshot
push str.KERNEL32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
and dword [ebp - 0x148], 0
push 0x49
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x144]
and byte [ebp - 0x24c], al
push 0x40
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x24b]
rep stosd dword es:[edi], eax
and dword [ebp - 0x10], 0
push 1
stosw word es:[edi], ax
push str.SeDebugPrivilege
stosb byte es:[edi], al
call fcn.1000ae9c
pop ecx
pop ecx
push 0
push 2
call dword [ebp - 8]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x1000acc3
xor eax, eax
jmp 0x1000ae97
push 0x400
push 0x40
mov dword [ebp - 0x148], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push str.Process32First
push str.kernel32.dll
mov dword [ebp - 4], 1
mov byte [edi], 0x7f
call esi
push eax
call ebx
lea ecx, [ebp - 0x148]
push ecx
push dword [ebp - 8]
call eax
test eax, eax
je 0x1000ae70
push str.Process32Next
push str.kernel32.dll
call esi
push eax
call ebx
push str.GetModuleFileNameExA
push str.PSAPI.dll
mov dword [ebp - 0x1c], eax
call esi
push eax
call ebx
push str.EnumProcessModules
push str.PSAPI.dll
mov dword [ebp - 0x18], eax
call esi
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x140]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp dword [ebp - 0x140], 0
mov dword [ebp - 0xc], eax
je 0x1000ae52
cmp dword [ebp - 0x140], 4
je 0x1000ae52
cmp dword [ebp - 0x140], 8
je 0x1000ae52
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x14]
lea eax, [ebp - 0x24c]
push 0x104
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [ebp - 0x18]
lea eax, [ebp - 0x124]
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x24c]
push eax
call esi
lea eax, [ebx + eax + 6]
mov ebx, dword [ebp - 4]
add eax, ebx
push edi
mov dword [ebp - 4], eax
call dword [0x1001a444]
cmp eax, dword [ebp - 4]
jae 0x1000ade1
push 0x42
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
lea eax, [ebp - 0x140]
push 4
push eax
lea eax, [ebx + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x124]
add ebx, 4
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call esi
lea ebx, [ebx + eax + 1]
lea eax, [ebp - 0x24c]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebx + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
call esi
lea eax, [ebx + eax + 1]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 8]
call dword [ebp - 0x1c]
test eax, eax
jne 0x1000ad45
push 0x42
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push 0
push str.SeDebugPrivilege
mov esi, eax
call fcn.1000ae9c
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret