Function at 0x1000edb3
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.LocalReAlloc
push str.KERNEL32.dll
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
and dword [ebp - 0x14c], 0
push 0x49
mov dword [ebp - 0x14], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x148]
and byte [ebp - 0x250], al
push 0x40
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x24f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x18], 0
push 1
stosb byte es:[edi], al
pop edi
push edi
push str.SeDebugPrivilege
call fcn.1000effb
pop ecx
pop ecx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1000ee31
xor eax, eax
jmp 0x1000eff6
push 0x400
push 0x40
mov dword [ebp - 0x14c], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
mov byte [eax], 0x7d
lea eax, [ebp - 0x14c]
mov dword [ebp - 0xc], edi
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000efd0
push str.Process32Next
push str.KERNEL32.dll
call ebx
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x144]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp dword [ebp - 0x144], 0
mov dword [ebp - 8], eax
je 0x1000efbb
cmp dword [ebp - 0x144], 4
je 0x1000efbb
cmp dword [ebp - 0x144], 8
je 0x1000efbb
push str.GetModuleFileNameExA
push str.PSAPI.DLL
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.EnumProcessModules
push str.PSAPI.DLL
mov dword [ebp - 0x20], eax
call ebx
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x18]
push 4
push ecx
push dword [ebp - 8]
call eax
lea eax, [ebp - 0x250]
push 0x104
push eax
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [ebp - 0x20]
lea eax, [ebp - 0x128]
push eax
call esi
mov edi, eax
lea eax, [ebp - 0x250]
push eax
call esi
push dword [ebp - 4]
lea eax, [edi + eax + 6]
mov edi, dword [ebp - 0xc]
add eax, edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, dword [ebp - 8]
jae 0x1000ef44
push 0x42
push dword [ebp - 8]
push dword [ebp - 4]
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push 4
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x128]
add edi, 4
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call esi
lea edi, [edi + eax + 1]
lea eax, [ebp - 0x250]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x250]
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
call esi
lea eax, [edi + eax + 1]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x10]
call dword [ebp - 0x1c]
test eax, eax
jne 0x1000ee80
push 0x42
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [ebp - 0x14]
push 0
push str.SeDebugPrivilege
mov esi, eax
call fcn.1000effb
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret