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

Disassembly:
sub esp, 0x25c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.CloseHandle
push str.KERNEL32.dll
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.LocalReAlloc
push str.KERNEL32.dll
mov dword [esp + 0x34], eax
call esi
push eax
call ebx
push str.LocalAlloc
push str.KERNEL32.dll
mov dword [esp + 0x2c], eax
call esi
push eax
call ebx
push str.LocalSize
push str.KERNEL32.dll
mov dword [esp + 0x1c], eax
call esi
push eax
call ebx
push str.CreateToolhelp32Snapshot
push str.KERNEL32.dll
mov dword [esp + 0x40], eax
call esi
push eax
call ebx
push str.Process32First
push str.KERNEL32.dll
mov dword [esp + 0x24], eax
call esi
push eax
call ebx
push str.Process32Next
push str.KERNEL32.dll
mov dword [esp + 0x18], eax
call esi
push eax
call ebx
mov dword [esp + 0x34], eax
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x44]
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x169]
mov byte [esp + 0x168], al
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x30
stosb byte es:[edi], al
call ebp
push str.SeDebugPrivilege
call fcn.100121c0
push 0x30
call ebp
add esp, 0xc
push 0
push 2
call dword [esp + 0x24]
mov edi, eax
push 0x30
mov dword [esp + 0x20], edi
call ebp
add esp, 4
cmp edi, 0xffffffff
jne 0x1000f45a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x25c
ret
push 0x400
push 0x40
mov dword [esp + 0x48], 0x128
call dword [esp + 0x1c]
push str.PSAPI.dll
mov dword [esp + 0x1c], eax
mov byte [eax], 0x7d
mov edi, 1
call esi
push 0x30
mov dword [esp + 0x18], eax
call ebp
mov eax, dword [esp + 0x18]
add esp, 4
push str.EnumProcessModules
push eax
call ebx
push 0x30
mov dword [esp + 0x2c], eax
call ebp
push 0x30
call ebp
mov ecx, dword [esp + 0x1c]
add esp, 8
push str.GetModuleFileNameExA
push ecx
call ebx
push 0x30
mov dword [esp + 0x34], eax
call ebp
mov eax, dword [esp + 0x20]
add esp, 4
lea edx, [esp + 0x40]
push edx
push eax
call dword [esp + 0x18]
test eax, eax
je 0x1000f66a
push str.OpenProcess
push str.KERNEL32.dll
call esi
push eax
call ebx
push 0x30
mov dword [esp + 0x18], eax
call ebp
mov ecx, dword [esp + 0x4c]
add esp, 4
push ecx
push 0
push 0x410
call dword [esp + 0x20]
push 0x30
mov dword [esp + 0x14], eax
call ebp
mov eax, dword [esp + 0x4c]
add esp, 4
test eax, eax
je 0x1000f654
cmp eax, 4
je 0x1000f654
cmp eax, 8
je 0x1000f654
push str.lstrlenA
push str.KERNEL32.dll
call esi
push eax
call ebx
mov esi, eax
push 0x30
mov dword [esp + 0x18], esi
call ebp
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x3c]
lea eax, [esp + 0x20]
push edx
push 4
push eax
push ecx
call dword [esp + 0x38]
push 0x30
call ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esp + 0x168]
push 0x104
push edx
push eax
push ecx
call dword [esp + 0x40]
push 0x30
call ebp
add esp, 4
lea edx, [esp + 0x64]
push edx
call esi
mov edx, eax
lea eax, [esp + 0x168]
push eax
mov dword [esp + 0x14], edx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push edx
lea eax, [ecx + eax + 6]
lea esi, [eax + edi]
call dword [esp + 0x3c]
cmp eax, esi
jae 0x1000f5bf
mov eax, dword [esp + 0x18]
push 0x42
push esi
push eax
call dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x64]
mov dword [edi + edx], ecx
add edi, 4
push eax
mov dword [esp + 0x14], edi
call dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov ecx, eax
inc ecx
lea esi, [esp + 0x64]
mov eax, ecx
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x64]
push ecx
call esi
mov edx, dword [esp + 0x10]
lea edi, [edx + eax + 1]
lea eax, [esp + 0x168]
push eax
mov dword [esp + 0x14], edi
call esi
mov edx, dword [esp + 0x18]
mov ecx, eax
inc ecx
lea esi, [esp + 0x168]
mov eax, ecx
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x168]
push ecx
call dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [edx + eax + 1]
mov dword [esp + 0x10], eax
mov edi, eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [esp + 0x3c]
test eax, eax
jne 0x1000f4d3
mov eax, dword [esp + 0x18]
push 0x42
push edi
push eax
call dword [esp + 0x30]
push str.SeDebugPrivilege
mov esi, eax
call fcn.100121c0
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret