Function at 0x479aa0
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dad26
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x65eb68]
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 str.SeDebugPrivilege
call fcn.00479050
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 0x479de3
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 0x479de0
lea eax, [ebp - 0x280]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x479de0
push dword [ebp - 0x278]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x288], eax
test eax, eax
je 0x479dcb
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 0x668d40
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x28c], eax
call fcn.0059dbb0
add esp, 0xc
push 0x400
push 0x668d40
push esi
push dword [ebp - 0x288]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
jne 0x479c52
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], 0x400
push eax
push 0x668d40
push esi
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0x479c52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x668d40
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x479c93
mov ecx, 0x668d40
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479c70
sub ecx, edx
sar ecx, 1
push ecx
push 0x668d40
lea ecx, [ebp - 0x54]
call fcn.004049aa
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x479ccd
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x479cc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x479e19
push edx
push ecx
call fcn.00599f8e
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 0x479d30
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479d11
sub ecx, edx
lea eax, [ebp - 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.004049aa
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 0x479d6c
mov eax, dword [ecx]
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [eax + 8]
call eax
test al, al
je 0x479db0
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x479da4
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.0046e3c0
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 0x479db0
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
push esi
call fcn.00475a00
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00475fd0
mov ebx, dword [ebp - 0x294]
lea eax, [ebp - 0x280]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x479b70
push ebx
call esi
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x479dfb
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.00599f9c
mov esp, ebp
pop ebp
ret
call fcn.005a1930
int3