Function at 0x46dcf9
Capabilities:
Enumerate processes

Disassembly:
push 0x2b8
mov eax, 0x5bae5d
call fcn.00581c9c
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [ebp - 0x28]
xor eax, eax
lea ecx, [ebp - 0x28]
stosd dword es:[edi], eax
push 0x1000
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.0042824f
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], ebx
jne 0x46dd70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
ja 0x46dd64
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], eax
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x46dd7c
sub eax, dword [ebp - 0x18]
push ebx
push eax
call fcn.00410d0c
jmp 0x46dd7c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.004105df
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28c], bl
lea ecx, [ebp - 0x2ac]
push dword [ebp - 0x28c]
cmovae eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
push eax
call fcn.0043ba8e
add esp, 0xc
lea eax, [ebp - 0x2c4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0042f795
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0041f95c
lea ecx, [ebp - 0x2c4]
call fcn.00410c77
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 6
call fcn.00410c77
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x28c], edi
test edi, edi
je 0x46df3b
lea eax, [ebp - 0x288]
mov dword [ebp - 0x288], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x46df38
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x58]
call fcn.0042b1a2
test al, al
je 0x46df22
push dword [ebp - 0x280]
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x294], eax
test eax, eax
je 0x46df22
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
mov ecx, 0x2000
push ecx
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x40]
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0042824f
mov edi, dword [ebp - 0x294]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x46df0d
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x30]
ja 0x46dec9
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], ecx
cmovae eax, dword [ebp - 0x40]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x46ded6
sub ecx, dword [ebp - 0x30]
push ebx
push ecx
lea ecx, [ebp - 0x40]
call fcn.00410d0c
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jne 0x46df0d
push eax
call fcn.00410e7c
pop ecx
test eax, eax
jne 0x46df0d
mov eax, dword [ebp - 0x290]
cmp dword [ebp - 0x280], eax
jne 0x46df5b
push edi
call esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00410c77
mov edi, dword [ebp - 0x28c]
lea eax, [ebp - 0x288]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46de2d
push edi
call esi
lea ecx, [ebp - 0x58]
call fcn.00410c77
lea ecx, [ebp - 0x28]
call fcn.00410c77
lea ecx, [ebp + 8]
call fcn.00410c77
mov eax, ebx
call fcn.00581c4b
ret
push edi
call esi
push dword [ebp - 0x28c]
call esi
mov ebx, dword [ebp - 0x280]
lea ecx, [ebp - 0x40]
call fcn.00410c77
jmp 0x46df3b