Function at 0x411a70
Capabilities:
Acquire debug privileges
Enumerate process modules
Enumerate processes
Get file size
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4a8
mov eax, dword [0x5d1124]
xor eax, esp
mov dword [esp + 0x4a4], eax
push esi
push edi
push 0x128
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], 0
push 0
push eax
call fcn.00552b90
add esp, 0xc
lea eax, [esp + 0x298]
push 0x104
push 0
push eax
call fcn.00552b90
add esp, 0xc
lea eax, [esp + 0x190]
push 0x104
push 0
push eax
call fcn.00552b90
add esp, 0xc
lea eax, [esp + 0x3a0]
push 0x104
push 0
push eax
call fcn.00552b90
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x411b5a
lea eax, [esp + 0x154]
mov dword [esp + 0x150], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x168], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea eax, [esp + 0x15c]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x411b83
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x4a4]
xor ecx, esp
call fcn.0054f768
mov esp, ebp
pop ebp
ret
push 0x400
push 0x40
mov dword [esp + 0x30], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov esi, 1
lea eax, [esp + 0x28]
mov dword [esp + 0x10], esi
push eax
push dword [esp + 0x1c]
mov byte [edi], 0xce
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x411e81
nop dword [eax]
push dword [esp + 0x30]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], esi
test eax, eax
je 0x411e5f
cmp eax, 4
je 0x411e5f
cmp eax, 8
je 0x411e5f
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
push 0x104
lea eax, [esp + 0x3a4]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
test eax, eax
jne 0x411c35
push str.unknown_erro
lea eax, [esp + 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x411c48
lea edx, [esp + 0x298]
lea ecx, [esp + 0x3a0]
call fcn.00411750
push 0x104
lea eax, [esp + 0x194]
push 0
push eax
call fcn.00552b90
add esp, 0xc
lea edx, [esp + 0x190]
mov ecx, esi
call fcn.004118b0
test eax, eax
lea eax, [esp + 0x190]
je 0x411c9a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
test eax, eax
jne 0x411cac
push str.ERROR_2
lea eax, [esp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x411cac
push str.ERROR_1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x4c]
push eax
call esi
mov esi, eax
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
lea eax, [esp + 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
mov esi, dword [esp + 0x10]
add eax, 0x17
add eax, esi
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jae 0x411cfd
push 0x42
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
mov eax, dword [esp + 0x30]
mov dword [esi + edi], eax
lea eax, [esp + 0x4c]
push eax
add esi, 4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esi + edi]
push eax
call fcn.00552610
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc esi
add esi, eax
lea eax, [esp + 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esp + 0x29c]
push eax
lea eax, [esi + edi]
push eax
call fcn.00552610
add esp, 0xc
lea eax, [esp + 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [esp + 0x14]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [esi + edi + 1], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + edi + 5], eax
lea eax, [esp + 0x190]
push eax
add esi, 9
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esp + 0x194]
push eax
lea eax, [esi + edi]
push eax
call fcn.00552610
add esp, 0xc
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
xorps xmm0, xmm0
push 0x28
lea eax, [esp + 0x164]
movaps xmmword [esp + 0x164], xmm0
push eax
push dword [esp + 0x1c]
movaps xmmword [esp + 0x17c], xmm0
movq qword [esp + 0x18c], xmm0
mov dword [esp + 0x16c], 0x28
call dword [sym.imp.PSAPI.DLL_GetProcessMemoryInfo]
mov edx, dword [esp + 0x16c]
xor ecx, ecx
push 0
push 0
shr edx, 0xa
test eax, eax
push 3
push 0
cmovne ecx, edx
lea eax, [esp + 0x2a8]
push 1
mov dword [esi + edi + 1], ecx
add esi, 5
push closesocket
mov dword [esp + 0x28], esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x411e4b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [esp + 0x20]
mov esi, eax
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411e4d
xor esi, esi
mov eax, dword [esp + 0x10]
mov dword [eax + edi], esi
add eax, 4
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x411bc0
mov esi, dword [esp + 0x10]
push 0x42
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x411efa
lea eax, [esp + 0x154]
mov dword [esp + 0x150], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x168], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea eax, [esp + 0x15c]
push eax
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x4ac]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0054f768
mov esp, ebp
pop ebp
ret