Function at 0x402fd0
Capabilities:
Acquire debug privileges
Enumerate processes
Resolve function by parsing pe exports
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x44b10c
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
lea eax, [esp + 0x28]
push eax
mov esi, ecx
xor ebp, ebp
push 0xf01ff
mov dword [esp + 0x1c], esi
xor ebx, ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0x34]
push ecx
push 0x4526cc
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push ebx
push ebx
push 0x10
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x38]
push ebx
push edx
mov dword [esp + 0x54], 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x403487
lea ecx, [esp + 0x9c]
push ecx
push edi
mov dword [esp + 0xa4], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4033ba
mov eax, esi
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4030d6
sub eax, edi
push eax
push esi
lea ecx, [esp + 0x88]
call fcn.004024f0
mov dword [esp + 0x1d0], ebx
lea ebx, [esp + 0x54]
lea edi, [esp + 0x80]
call fcn.004109e0
mov esi, dword [eax]
mov ebp, dword [eax + 4]
lea ebx, [esp + 0x5c]
call fcn.00410a30
mov edx, dword [eax]
mov eax, dword [eax + 4]
lea ebx, [esp + 0x4c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
call fcn.004109e0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], ecx
push ebp
push esi
mov byte [esp + 0x28], 0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
lea ecx, [esp + 0x40]
push ecx
call fcn.00412f70
mov eax, dword [esp + 0x34]
add esp, 0x18
lea edx, [esp + 0x9c]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x403383
lea eax, [esp + 0xc0]
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403190
sub eax, edx
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x6c]
call fcn.004024f0
mov byte [esp + 0x1d0], 1
mov edx, dword [esp + 0x7c]
cmp edx, 0x10
mov ecx, dword [esp + 0x68]
jb 0x40333e
test ecx, ecx
mov ebx, ecx
je 0x4031f0
cmp edx, 0x10
mov eax, ecx
jae 0x4031d7
lea eax, [esp + 0x68]
cmp eax, ebx
ja 0x4031f0
cmp edx, 0x10
mov eax, ecx
jae 0x4031e6
lea eax, [esp + 0x68]
mov ebp, dword [esp + 0x78]
add eax, ebp
cmp ebx, eax
jbe 0x403201
call fcn.00432c1e
mov edx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x68]
cmp edx, 0x10
mov eax, ecx
jae 0x40320c
lea eax, [esp + 0x68]
lea edi, [eax + ebp]
test edi, edi
je 0x403233
cmp edx, 0x10
mov eax, ecx
jae 0x40321e
lea eax, [esp + 0x68]
cmp eax, edi
ja 0x403233
cmp edx, 0x10
mov eax, ecx
jae 0x40322d
lea eax, [esp + 0x68]
add eax, ebp
cmp edi, eax
jbe 0x403244
call fcn.00432c1e
mov edx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov ecx, dword [esp + 0x68]
cmp edx, 0x10
jb 0x403347
test ecx, ecx
mov esi, ecx
je 0x403273
cmp edx, 0x10
mov eax, ecx
jae 0x40325e
lea eax, [esp + 0x68]
cmp eax, esi
ja 0x403273
cmp edx, 0x10
mov eax, ecx
jae 0x40326d
lea eax, [esp + 0x68]
add eax, ebp
cmp esi, eax
jbe 0x403278
call fcn.00432c1e
push ebx
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x28], 0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x5c]
push edi
push ecx
mov eax, esi
call fcn.00412f70
mov ecx, dword [esp + 0x9c]
mov ebx, 0x10
add esp, 0x18
cmp dword [esp + 0x98], ebx
jae 0x4032b9
lea ecx, [esp + 0x84]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x94]
cmp esi, edi
mov eax, esi
jb 0x4032cc
mov eax, edi
cmp dword [esp + 0x7c], ebx
mov edx, dword [esp + 0x68]
jae 0x4032da
lea edx, [esp + 0x68]
call fcn.004016d0
test eax, eax
jne 0x403307
cmp esi, edi
jb 0x403307
cmp esi, edi
setne al
test eax, eax
jne 0x403307
mov edx, dword [esp + 0xa4]
push edx
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x403350
mov byte [esp + 0x1d0], 0
cmp dword [esp + 0x7c], ebx
jb 0x403322
mov eax, dword [esp + 0x68]
push eax
call fcn.00416c01
add esp, 4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x9c]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403170
jmp 0x403388
lea ebx, [esp + 0x68]
jmp 0x4031cc
lea esi, [esp + 0x68]
jmp 0x403253
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x403367
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x7c], ebx
jb 0x403388
mov eax, dword [esp + 0x68]
push eax
call fcn.00416c01
add esp, 4
jmp 0x403388
mov ebx, 0x10
mov dword [esp + 0x1d0], 0xffffffff
cmp dword [esp + 0x98], ebx
jb 0x4033ac
mov ecx, dword [esp + 0x84]
push ecx
call fcn.00416c01
add esp, 4
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, ebx
je 0x403487
mov edx, dword [0x462410]
mov eax, dword [edx + 0xc]
mov ecx, 0x462410
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebp
push esi
push str.Kill__s_fail__GetLastError______u_
lea edi, [esp + 0x20]
mov dword [esp + 0x1dc], 2
call fcn.00412b00
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x3c], esp
push 4
mov esi, 0xf
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.fail
mov byte [ecx + 4], bl
call fcn.004024f0
sub esp, 0x1c
mov byte [esp + 0x208], 3
mov ecx, esp
mov dword [ecx + 0x18], esi
mov esi, dword [esp + 0x4c]
mov eax, esi
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x50], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x403441
sub eax, edi
push eax
push esi
call fcn.004024f0
mov byte [esp + 0x208], 2
call fcn.004041e0
lea eax, [esi - 0x10]
mov dword [esp + 0x1d0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403487
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.004322f2
add esp, 0x1c0
ret