Function at 0x1000fb40
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
sub esp, 0x244
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.LocalSize
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.CreateToolhelp32Snapshot
push str.KERNEL32.dll
mov dword [esp + 0x20], eax
call esi
push eax
call edi
push str.Process32Next
push str.KERNEL32.dll
mov ebx, eax
call esi
push eax
call edi
push str.LocalReAlloc
push str.kernel32.dll
mov dword [esp + 0x24], eax
call esi
push eax
call edi
mov dword [esp + 0x10], eax
xor esi, esi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], esi
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x14d]
mov byte [esp + 0x14c], al
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.SeDebugPrivilege
mov dword [esp + 0x14], esi
stosb byte es:[edi], al
call fcn.1000fd70
add esp, 8
push esi
push 2
call ebx
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x1000fbf9
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x244
ret
push ebp
push 0x400
push 0x40
mov dword [esp + 0x30], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push edi
mov byte [ebp], 0x82
mov ebx, 1
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000fd43
mov ecx, dword [esp + 0x30]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1000fd31
cmp eax, 4
je 0x1000fd31
cmp eax, 8
je 0x1000fd31
lea edx, [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x150]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x4c]
push eax
call edi
lea ecx, [esp + 0x150]
mov esi, eax
push ecx
call edi
lea eax, [esi + eax + 6]
push ebp
lea esi, [eax + ebx]
call dword [esp + 0x20]
cmp eax, esi
jae 0x1000fcbc
push 0x42
push esi
push ebp
call dword [esp + 0x20]
mov ebp, eax
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x4c]
mov dword [ebx + ebp], edx
push eax
add ebx, 4
call edi
mov ecx, eax
lea esi, [esp + 0x4c]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x4c]
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
lea ecx, [esp + 0x150]
lea ebx, [ebx + eax + 1]
push ecx
call esi
mov ecx, eax
lea esi, [esp + 0x150]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x150]
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]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x18]
lea ebx, [ebx + eax + 1]
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [esp + 0x28]
test eax, eax
jne 0x1000fc2d
push 0x42
push ebx
push ebp
call dword [esp + 0x20]
push 0
push str.SeDebugPrivilege
mov esi, eax
call fcn.1000fd70
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x244
ret