Function at 0x465e40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1015
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x4c4], ebx
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], ax
mov dword [ebp - 4], 1
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x466057
lea ecx, [ebp - 0x55c]
push ecx
call fcn.004059f0
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp - 0x55c]
push str.CTS_FAILED._GetLastError:
push edx
call fcn.004090a0
add esp, 0xc
push eax
call fcn.0045f6e0
push 0x21
mov edi, 0xf
push str.CProcUtility::GetProcessNameByPid
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], ebx
mov byte [ebp - 0x254], bl
call fcn.00407f60
mov byte [ebp - 4], 3
push edi
push str.ProcUtility.cpp
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x270], bl
call fcn.00407f60
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x55c]
push ecx
call fcn.00405af0
mov byte [ebp - 4], 5
push eax
push 0x23
push ebx
call fcn.004061f0
push eax
lea edx, [ebp - 0x254]
lea ecx, [ebp - 0x270]
call fcn.00462280
mov byte [ebp - 4], 4
cmp dword [ebp - 0x278], 8
jb 0x465f86
mov edx, dword [ebp - 0x28c]
push edx
call fcn.0047bd91
add esp, 4
xor eax, eax
mov dword [ebp - 0x278], 7
mov dword [ebp - 0x27c], ebx
mov word [ebp - 0x28c], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x25c], 0x10
jb 0x465fbb
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x270], bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x240], 0x10
jb 0x465fe9
mov edx, dword [ebp - 0x254]
push edx
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], ebx
mov byte [ebp - 0x254], bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x55c]
call fcn.004039b0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x238]
mov word [esi], ax
call fcn.00408590
mov dword [ebp - 0x4c4], 1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x224], 8
jb 0x466049
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0047bd91
add esp, 4
xor edx, edx
mov word [ebp - 0x238], dx
jmp 0x466316
lea eax, [ebp - 0x4bc]
push eax
push edi
mov dword [ebp - 0x4bc], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x466227
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x55c]
push ecx
call fcn.004059f0
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp - 0x55c]
push str.PF_FAILED._GetLastError:
push edx
call fcn.004090a0
add esp, 0xc
push eax
call fcn.0045f6e0
push 0x21
mov edi, 0xf
push str.CProcUtility::GetProcessNameByPid
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x270], bl
call fcn.00407f60
mov byte [ebp - 4], 7
push edi
push str.ProcUtility.cpp
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], ebx
mov byte [ebp - 0x254], bl
call fcn.00407f60
mov byte [ebp - 4], 8
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x55c]
push ecx
call fcn.00405af0
mov byte [ebp - 4], 9
push eax
push 0x2d
push ebx
call fcn.004061f0
push eax
lea edx, [ebp - 0x270]
lea ecx, [ebp - 0x254]
call fcn.00462280
mov byte [ebp - 4], 8
cmp dword [ebp - 0x278], 8
jb 0x466152
mov edx, dword [ebp - 0x28c]
push edx
call fcn.0047bd91
add esp, 4
xor eax, eax
mov dword [ebp - 0x278], 7
mov dword [ebp - 0x27c], ebx
mov word [ebp - 0x28c], ax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x240], 0x10
jb 0x466187
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], ebx
mov byte [ebp - 0x254], bl
mov byte [ebp - 4], 6
cmp dword [ebp - 0x25c], 0x10
jb 0x4661b5
mov edx, dword [ebp - 0x270]
push edx
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x270], bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x55c]
call fcn.004039b0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x238]
mov word [esi], ax
call fcn.00408590
mov dword [ebp - 0x4c4], 1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x224], 8
jb 0x466049
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0047bd91
add esp, 4
xor edx, edx
mov word [ebp - 0x238], dx
jmp 0x466316
push 0x206
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x21c], ax
call fcn.00483260
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
add esp, 0xc
lea edx, [ebp - 0x4bc]
push edx
push edi
call esi
test eax, eax
je 0x466296
lea esp, [esp]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x4b4]
je 0x46627b
lea ecx, [ebp - 0x4bc]
push ecx
push edi
call esi
test eax, eax
jne 0x466260
jmp 0x466296
lea edx, [ebp - 0x498]
push edx
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0047edf0
add esp, 0xc
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4662a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x238]
call fcn.00408600
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x4c0]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x238]
mov word [esi], cx
call fcn.00408590
mov dword [ebp - 0x4c4], 1
mov byte [ebp - 4], bl
cmp dword [ebp - 0x224], 8
jb 0x46630d
mov edx, dword [ebp - 0x238]
push edx
call fcn.0047bd91
add esp, 4
xor eax, eax
mov word [ebp - 0x238], ax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov eax, dword [ebp - 0x4c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret