Function at 0x40d7e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462b93
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x47b040]
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
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xorps xmm0, xmm0
mov edi, eax
movlpd qword [ebp - 0x224], xmm0
push 0x14
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call fcn.0043870c
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 1
test edi, edi
je 0x40d8af
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d8af
push 0x228
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.0043a680
add esp, 0xc
mov dword [ebp - 0x464], 0x22c
lea eax, [ebp - 0x464]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40d8fa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x224]
call fcn.00406a00
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d8dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00438436
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x224]
call fcn.00406a40
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
nop dword [eax + eax]
push edi
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x40d937
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x224]
call fcn.00406ab0
lea eax, [ebp - 0x464]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40d910
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x220], 0
je 0x40d8af
mov eax, dword [ebp - 0x224]
mov esi, dword [eax]
cmp esi, eax
je 0x40d8af
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0043a680
mov edi, dword [esi + 0x10]
add esp, 0xc
push edi
push 0
push 0x410
call ebx
mov ebx, eax
test ebx, ebx
jne 0x40d9b3
push edi
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40dae4
push 0x104
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x468], 1
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
jne 0x40da94
mov dword [ebp - 0x22c], 0x104
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x40db3d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
push str.llProcessIm
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push str.QueryFu_sageNameW
push eax
call fcn.00406a90
mov edi, dword [ebp - 0x228]
add esp, 0xc
cmp byte [0x47e044], 0
jne 0x40da4e
push edi
push str.Kernel32.dll
mov byte [0x47e044], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47e040], eax
jmp 0x40da53
mov eax, dword [0x47e040]
test eax, eax
je 0x40da6e
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0
push ebx
call eax
test eax, eax
jne 0x40da78
mov dword [ebp - 0x468], 0
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40da94
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x468], 0
je 0x40dae4
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call fcn.00442e92
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
add esp, 8
test eax, eax
jne 0x40daea
push dword [esi + 0x10]
push eax
push 1
call ebx
mov edi, eax
test edi, edi
je 0x40daea
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40daea
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40daea
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40db14
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40db10
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x40db10
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40db00
mov esi, eax
jmp 0x40db2c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40db2c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40db20
cmp esi, dword [ebp - 0x224]
jne 0x40d973
jmp 0x40d8af
push 0x80004005
call fcn.004022c0
int3