Function at 0x401360
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8c
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.004023c0
push 0x3e80
mov dword [ebp - 0xa8c], eax
call fcn.00402821
add esp, 4
mov dword [ebp - 0xa88], eax
lea edx, [ebp - 0xa68]
mov dword [ebp - 0xa68], 0x3e8
mov ecx, eax
call fcn.004020c0
neg eax
push 0
sbb ebx, ebx
and ebx, dword [ebp - 0xa68]
push 2
mov dword [ebp - 0xa84], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0xa80], eax
cmp eax, 0xffffffff
jne 0x4013e2
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004026f1
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 0xa64]
mov dword [ebp - 0xa64], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401746
push esi
nop word [eax + eax]
push dword [ebp - 0xa5c]
xor eax, eax
mov dword [ebp - 0xa7c], 0xffffffff
push eax
push 0x410
mov word [ebp - 0x61c], ax
mov dword [ebp - 0xa78], 0xffffffff
mov word [ebp - 0x204], ax
mov dword [ebp - 0x82c], 0x100
mov dword [ebp - 0xa74], eax
mov dword [ebp - 0xa70], eax
mov dword [ebp - 0xa68], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4014ac
push 0x104
lea eax, [ebp - 0x410]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x4014a9
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
ja 0x4014a9
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call edi
mov esi, dword [ebp - 0xa5c]
lea eax, [ebp - 0x820]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x401522
cmp dword [ebp - 0x820], edi
je 0x401522
push esi
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40153f
lea eax, [ebp - 0x824]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40150f
xor eax, eax
mov edi, 1
cmp dword [ebp - 0x824], eax
sete al
mov dword [ebp - 0xa6c], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40153f
mov eax, dword [ebp - 0xa6c]
jmp 0x40152a
xor eax, eax
mov dword [ebp - 0xa6c], eax
test eax, eax
mov ecx, 0x20
mov eax, 0x40
cmovne ecx, eax
mov dword [ebp - 0xa7c], ecx
push dword [ebp - 0xa5c]
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40164b
lea edx, [ebp - 0xa78]
mov ecx, edi
call fcn.00401990
lea eax, [ebp - 0x838]
xor ebx, ebx
push eax
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401631
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], ebx
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x401621
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401621
push dword [ebp - 0x834]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x401621
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x834]
push esi
push 1
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40161a
lea eax, [ebp - 0x830]
mov dword [ebp - 0x828], 0x100
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x838]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x40163a
xor eax, eax
mov word [ebp - 0x204], ax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov ebx, dword [ebp - 0xa84]
jmp 0x401651
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xa5c]
xor eax, eax
test ebx, ebx
je 0x4016c2
mov edx, dword [ebp - 0xa88]
mov ecx, edx
cmp dword [ecx], esi
je 0x401673
inc eax
add ecx, 0x10
cmp eax, ebx
jb 0x401665
jmp 0x4016c2
add eax, eax
mov ecx, 0x7277
movzx eax, word [edx + eax*8 + 4]
cmp ax, cx
jne 0x401690
mov dword [ebp - 0xa74], 1
jmp 0x4016c2
mov ecx, 0x7273
cmp ax, cx
jne 0x4016a6
mov dword [ebp - 0xa70], 1
jmp 0x4016c2
mov ecx, dword [ebp - 0xa68]
mov edx, 0x7268
cmp ax, dx
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0xa68], ecx
mov eax, dword [ebp - 0xa8c]
xor ecx, ecx
mov eax, dword [eax + 4]
mov edx, dword [eax]
test edx, edx
je 0x4016e6
mov eax, dword [eax + 8]
cmp dword [eax], esi
je 0x401760
inc ecx
add eax, 4
cmp ecx, edx
jb 0x4016d6
xor eax, eax
push eax
push dword [ebp - 0xa68]
lea eax, [ebp - 0x204]
push dword [ebp - 0xa70]
push dword [ebp - 0xa74]
push eax
push dword [ebp - 0xa78]
lea eax, [ebp - 0x61c]
push dword [ebp - 0xa7c]
push eax
lea eax, [ebp - 0xa40]
push eax
push esi
push str._ld_s_s_ld_ld_s_ld_ld_ld_ld_n
call fcn.00401010
add esp, 0x2c
lea eax, [ebp - 0xa64]
push eax
push dword [ebp - 0xa80]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401410
pop esi
push dword [ebp - 0xa80]
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004026f1
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x4016e8