Function at 0x40b6c7
Capabilities:
Acquire debug privileges
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
push edi
mov dword [ebp - 0x250], ecx
push 0x4188dc
push 0x4188f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x238], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x234]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
push 1
push 0x418908
call fcn.0040b9c3
add esp, 8
push 0
push 2
call dword [ebp - 0x24c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40b786
xor eax, eax
jmp 0x40b9bd
mov dword [ebp - 0x238], 0x128
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov byte [eax], 0x7d
mov dword [ebp - 0x244], 1
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40b982
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x230], 0
je 0x40b96a
cmp dword [ebp - 0x230], 4
je 0x40b96a
cmp dword [ebp - 0x230], 8
je 0x40b96a
lea ecx, [ebp - 0x110]
push ecx
push 4
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x248]
push eax
call sub.PSAPI.DLL_EnumProcessModules
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x248]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esi + eax + 6]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov edx, dword [ebp - 0x244]
add edx, dword [ebp - 0x240]
cmp eax, edx
jae 0x40b8a9
push 0x42
mov eax, dword [ebp - 0x244]
add eax, dword [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x23c], eax
push 4
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x23c]
add eax, dword [ebp - 0x244]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x244]
add ecx, 4
mov dword [ebp - 0x244], ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x23c]
add ecx, dword [ebp - 0x244]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x244]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x244], edx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x23c]
add edx, dword [ebp - 0x244]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x244]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x244], edx
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40b7ce
push 0x42
mov edx, dword [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x23c], eax
push 0
push str.SeDebugPrivilege
call fcn.0040b9c3
add esp, 8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret