Function at 0x403770
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x45ead9
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4739a8]
xor eax, esp
mov dword [esp + 0x140], eax
push ebp
push esi
push edi
mov eax, dword [0x4739a8]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
cmp dword [eax - 0xc], 0
mov dword [esp + 0x15c], 0
je 0x4039fc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [esp + 0x20], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x28]
mov ebp, eax
push ecx
push ebp
mov dword [esp + 0x30], 0x128
call sub.KERNEL32.dll_Process32First
mov edi, eax
call fcn.0042c542
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40380a
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x46177f
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 1
call fcn.00401770
lea ecx, [esp + 0x164]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 2
call fcn.00402cb0
lea ecx, [esp + 0x14]
call fcn.00402950
test edi, edi
je 0x4039a2
lea ebx, [ebx]
lea edx, [esp + 0x28]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403876
sub eax, edx
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
call fcn.00401550
mov esi, dword [esp + 0x10]
push 0x5c
push esi
call fcn.00449c80
add esp, 8
test eax, eax
je 0x403909
sub eax, esi
js 0x403909
push 0x5c
push esi
call fcn.00449c80
add esp, 8
test eax, eax
jne 0x4038b9
or eax, 0xffffffff
jmp 0x4038bb
sub eax, esi
dec eax
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.004029b0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 3
call fcn.00402cb0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x15c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403905
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40392b
push edi
lea ecx, [esp + 0x14]
call fcn.00401330
mov esi, dword [esp + 0x10]
lea ecx, [edi + 1]
push ecx
push esi
call fcn.00449eda
push eax
call fcn.00401c40
add esp, 0xc
test edi, edi
jl 0x403a5f
cmp edi, dword [esi - 8]
jg 0x403a5f
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov ecx, dword [esp + 0x14]
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403980
test dl, dl
je 0x40397c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403980
add eax, 2
add ecx, 2
test dl, dl
jne 0x403960
xor eax, eax
jmp 0x403985
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403997
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x18]
jne 0x403a46
cmp dword [esp + 0x1c], 0
jne 0x403860
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x15c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4039d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x15c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x164]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x15c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004492d4
add esp, 0x150
ret
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4039a2
push 0x80070057
call fcn.00401020
int3