Function at 0x45e870
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9256
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x634b28]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x298], edi
mov dword [ebp - 0x28c], 0
push 1
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push 0x5cedf0
call fcn.0045dec0
add esp, 0xc
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0
push 2
mov dword [ebp - 0x284], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x280], 0x22c
mov dword [ebp - 0x294], ebx
cmp ebx, 0xffffffff
je 0x45ebb3
lea eax, [ebp - 0x280]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45ebb0
lea eax, [ebp - 0x280]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x45ebb0
push dword [ebp - 0x278]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x288], eax
test eax, eax
je 0x45eb9b
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], vtable.ProcessHelpers::Process.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x54], eax
xor esi, esi
mov word [ebp - 0x54], ax
mov ebx, 7
mov eax, dword [ebp - 0x284]
push 0x800
or eax, 2
mov byte [ebp - 4], 3
push esi
push 0x63c878
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x28c], eax
call fcn.0057e5f0
add esp, 0xc
push 0x400
push 0x63c878
push esi
push dword [ebp - 0x288]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x45ea22
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], 0x400
push eax
push 0x63c878
push esi
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0x45ea22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x63c878
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x45ea63
mov ecx, 0x63c878
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ea40
sub ecx, edx
sar ecx, 1
push ecx
push 0x63c878
lea ecx, [ebp - 0x54]
call fcn.0040491a
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x45ea9d
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45ea93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45ebe9
push edx
push ecx
call fcn.0057b69e
add esp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x284]
and eax, 0xfffffffd
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 2
test esi, esi
jne 0x45eb00
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45eae1
sub ecx, edx
lea eax, [ebp - 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0040491a
mov ebx, dword [ebp - 0x288]
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x45eb3c
mov eax, dword [ecx]
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [eax + 8]
call eax
test al, al
je 0x45eb80
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x45eb74
mov dword [esi], vtable.ProcessHelpers::Process.0
lea ecx, [esi + 0xc]
mov eax, dword [ebp - 0x38]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 8], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00457bb0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
add dword [edi + 4], 0x2c
jmp 0x45eb80
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
push esi
call fcn.0045d8c0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0045dd40
mov ebx, dword [ebp - 0x294]
lea eax, [ebp - 0x280]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45e940
push ebx
call esi
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x45ebcb
mov esi, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
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.0057b6ac
mov esp, ebp
pop ebp
ret
call fcn.00582360
int3