Function at 0x404c00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8c1b
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x636148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x404c3f
xor eax, eax
jmp 0x404e38
push 0x22c
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.0044b370
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x404c38
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x404e2d
nop dword [eax]
nop dword [eax + eax]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
cmp word [ebp - 0x248], ax
jne 0x404cc6
xor ecx, ecx
jmp 0x404cdf
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404cd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403090
cmp word [esi], 0
jne 0x404cf9
xor eax, eax
jmp 0x404d0f
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d00
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00403090
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x270], esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x404d3c
mov eax, dword [ecx]
jmp 0x404d3e
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00403860
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x404d70
mov eax, dword [ecx]
jmp 0x404d72
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x40]
push edx
push eax
call fcn.00403860
mov byte [ebp - 4], 1
call fcn.00406260
add esp, 0x30
test al, al
jne 0x404df2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404da8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004036f0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x404dd8
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004036f0
lea eax, [ebp - 0x26c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404c90
lea esi, [eax + 1]
jmp 0x404e2f
push dword [ebp - 0x264]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00402d30
lea ecx, [ebp - 0x40]
call fcn.00402d30
jmp 0x404e36
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cd1d
mov esp, ebp
pop ebp
ret