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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x1001a280]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x124
lea eax, [ebp - 0x46c]
push 0
push eax
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x470], 0
call fcn.10008b90
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.10008b90
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.10008b90
push 0x103
lea eax, [ebp - 0x30f]
push 0
push eax
mov byte [ebp - 0x310], 0
call fcn.10008b90
add esp, 0x30
lea eax, [ebp - 0x474]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000610d
lea eax, [ebp - 0x31c]
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x314], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea eax, [ebp - 0x320]
push eax
push 0
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x474]
call edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x474], eax
cmp eax, 0xffffffff
jne 0x10006132
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008710
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x400
push 0x40
mov dword [ebp - 0x470], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x474]
mov byte [ebx], 0xf
mov esi, 1
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10006422
nop
push dword [ebp - 0x468]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp - 0x468]
mov edi, eax
mov dword [ebp - 0x478], edi
test ecx, ecx
je 0x100063ff
cmp ecx, 4
je 0x100063ff
cmp ecx, 8
je 0x100063ff
lea eax, [ebp - 0x484]
push eax
push 4
lea eax, [ebp - 0x480]
push eax
push edi
call sub.KERNEL32.dll_K32EnumProcessModules
push 0x104
lea eax, [ebp - 0x310]
push eax
push edi
call sub.KERNEL32.dll_K32GetProcessImageFileNameA
test eax, eax
lea eax, [ebp - 0x20c]
jne 0x100061eb
push str.unknown_erro
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x100061fb
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.10004a80
add esp, 8
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10008b90
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.100050a0
add esp, 0x14
test eax, eax
lea eax, [ebp - 0x108]
je 0x10006249
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call edi
test eax, eax
jne 0x1000625b
push str.ERROR_2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1000625b
push str.ERROR_1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x44c]
push eax
call edi
mov edi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add edi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x17
add edi, eax
push ebx
add edi, esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, edi
jae 0x100062a0
push 0x42
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x468]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esi + ebx], eax
lea eax, [ebp - 0x44c]
push eax
add esi, 4
call edi
inc eax
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [esi + ebx]
push eax
call fcn.10007f70
add esp, 0xc
lea eax, [ebp - 0x44c]
push eax
call edi
inc eax
add esi, eax
lea eax, [ebp - 0x20c]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + ebx]
push eax
call fcn.10007f70
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call edi
mov edi, dword [ebp - 0x478]
push edi
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [esi + ebx + 1], eax
mov eax, dword [ebp - 0x45c]
mov dword [esi + ebx + 5], eax
lea eax, [ebp - 0x108]
push eax
add esi, 9
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [esi + ebx]
push eax
call fcn.10007f70
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xorps xmm0, xmm0
add esi, eax
push 0x28
lea eax, [ebp - 0x348]
push eax
movq qword [ebp - 0x348], xmm0
push edi
movq qword [ebp - 0x340], xmm0
movq qword [ebp - 0x338], xmm0
movq qword [ebp - 0x330], xmm0
movq qword [ebp - 0x328], xmm0
mov dword [ebp - 0x348], 0x28
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x100063a7
mov eax, dword [ebp - 0x33c]
shr eax, 0xa
jmp 0x100063a9
xor eax, eax
push 0
push 0
push 3
push 0
push 1
mov dword [esi + ebx + 1], eax
push connect
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x47c], eax
cmp eax, 0xffffffff
je 0x100063f0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x47c]
mov edi, eax
shr edi, 0xa
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100063f2
xor edi, edi
mov dword [esi + ebx + 5], edi
mov edi, dword [ebp - 0x478]
add esi, 9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x474]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10006170
push 0x42
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov esi, eax
lea eax, [ebp - 0x478]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10006499
lea eax, [ebp - 0x31c]
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x320], 1
mov dword [ebp - 0x314], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea eax, [ebp - 0x320]
push eax
push 0
push dword [ebp - 0x478]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x478]
call edi
push dword [ebp - 0x474]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.10008710
mov esp, ebp
pop ebp
ret