Function at 0x401920
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aae21
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4e42d0]
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
push 0
push 2
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401bc6
lea ecx, [ebp - 0x240]
push ecx
mov ecx, edi
call fcn.00402b20
lea edi, [ebp - 0x240]
mov dword [ebp - 4], 0
call fcn.00402010
lea edx, [ebp - 0x23c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x401b60
lea edi, [ebp - 0x218]
shr edi, 0x10
mov dword [ebp - 0x248], edi
jmp 0x4019d6
mov edi, dword [ebp - 0x248]
mov eax, dword [0x4e3f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3f18
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x244], ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
test edi, edi
jne 0x401a18
movzx edi, ax
call fcn.00402780
test eax, eax
je 0x401a4a
push eax
mov eax, edi
lea edi, [ebp - 0x244]
call fcn.00402930
jmp 0x401a44
lea edx, [eax + 2]
jmp 0x401a20
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a20
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x244]
push edx
mov ebx, eax
call fcn.00402a30
mov ebx, dword [ebp - 0x244]
mov byte [ebp - 4], 2
mov edi, dword [ebx - 0xc]
test edi, edi
js 0x401be2
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x401a7d
mov eax, edi
lea ecx, [ebp - 0x244]
call fcn.00402c80
mov ebx, dword [ebp - 0x244]
lea eax, [edi + 1]
push eax
push ebx
call fcn.00490bd4
add esp, 8
cmp edi, dword [ebx - 8]
jg 0x401be2
xor ecx, ecx
mov dword [ebx - 0xc], edi
mov word [ebx + edi*2], cx
mov ecx, dword [ebp - 0x240]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x401bec
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401ad9
test dx, dx
je 0x401ad5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401ad9
add eax, 4
add ecx, 4
test dx, dx
jne 0x401ab3
xor eax, eax
jmp 0x401ade
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401b04
mov edx, dword [ebp - 0x234]
push edx
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.004907a5
add esp, 8
test eax, eax
js 0x401be2
cmp eax, dword [ebx - 8]
jg 0x401be2
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
add ebx, 0xfffffff0
mov byte [ebp - 4], cl
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x401b4a
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea ecx, [ebp - 0x23c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4019d0
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004907a5
add esp, 8
test eax, eax
js 0x401be2
mov ecx, dword [ebp - 0x240]
cmp eax, dword [ecx - 8]
jg 0x401be2
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x240]
xor edx, edx
push esi
mov word [ecx + eax*2], dx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401bc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.0048f6cb
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004035c0
push 0x80004005
call fcn.004035c0
int3