Function at 0x45f6ad
Capabilities:
Enumerate processes

Disassembly:
push 0x2b8
mov eax, 0x5af34a
call fcn.0057798c
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.0041a713
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], ebx
jne 0x45f724
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 0x45f718
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 0x45f730
sub eax, dword [ebp - 0x18]
push ebx
push eax
call fcn.00414358
jmp 0x45f730
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040d4fd
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.0042eeff
add esp, 0xc
lea eax, [ebp - 0x2c4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00422847
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040d59c
lea ecx, [ebp - 0x2c4]
call fcn.0040e260
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 6
call fcn.0040e260
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x28c], edi
test edi, edi
je 0x45f8ef
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 0x45f8ec
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x58]
call fcn.0041dcc4
test al, al
je 0x45f8d6
push dword [ebp - 0x280]
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x294], eax
test eax, eax
je 0x45f8d6
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.0041a713
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 0x45f8c1
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x30]
ja 0x45f87d
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 0x45f88a
sub ecx, dword [ebp - 0x30]
push ebx
push ecx
lea ecx, [ebp - 0x40]
call fcn.00414358
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 0x45f8c1
push eax
call fcn.0040e415
pop ecx
test eax, eax
jne 0x45f8c1
mov eax, dword [ebp - 0x290]
cmp dword [ebp - 0x280], eax
jne 0x45f90f
push edi
call esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.0040e260
mov edi, dword [ebp - 0x28c]
lea eax, [ebp - 0x288]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x45f7e1
push edi
call esi
lea ecx, [ebp - 0x58]
call fcn.0040e260
lea ecx, [ebp - 0x28]
call fcn.0040e260
lea ecx, [ebp + 8]
call fcn.0040e260
mov eax, ebx
call fcn.0057793b
ret
push edi
call esi
push dword [ebp - 0x28c]
call esi
mov ebx, dword [ebp - 0x280]
lea ecx, [ebp - 0x40]
call fcn.0040e260
jmp 0x45f8ef