Function at 0x413370
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x466f96
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4851d0]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
push esi
push edi
mov eax, dword [0x4851d0]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov eax, dword [esp + 0x468]
push eax
lea ecx, [esp + 0x18]
call fcn.00406e90
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x460], ebx
call fcn.00408120
push 0x228
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.0044d9b0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x4135e0
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x28], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x413555
lea ebx, [ebx]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x250]
push 0x46b9a0
push eax
call fcn.0044d8d3
add esp, 0xc
lea ecx, [esp + 0x24c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00406e90
mov edx, dword [esp + 0x10]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
mov byte [esp + 0x460], 1
jge 0x413479
push esi
lea ecx, [esp + 0x14]
call fcn.004066b0
mov edx, dword [esp + 0x10]
lea eax, [esi + 1]
push eax
push edx
call fcn.0044dc2f
add esp, 8
cmp esi, ebx
jl 0x4135d6
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x4135d6
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x10]
mov word [ecx + esi*2], bx
mov edi, dword [esp + 0x10]
cmp dword [edi - 4], 1
jle 0x4134c1
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00406420
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
mov esi, edi
jle 0x4134e2
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00406420
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41350a
cmp dx, bx
je 0x413506
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41350a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4134e4
xor eax, eax
jmp 0x41350f
sbb eax, eax
sbb eax, 0xffffffff
or edx, 0xffffffff
cmp eax, ebx
mov byte [esp + 0x460], bl
je 0x4135b0
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41353a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413420
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push ecx
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x4135e0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4135e0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x460], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4135a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41360d
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413551
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413551
push 0x80070057
call fcn.004062f0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x460], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41360b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.0044d5bb
add esp, 0x454
ret 4