Function at 0x410b74
Capabilities:
Acquire debug privileges
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x124
lea eax, [ebp - 0x12c]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x130], ebx
call fcn.005117f0
add esp, 0xc
cmp edi, ebx
je 0x410be2
cmp byte [edi], bl
je 0x410be2
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x144], esi
jne 0x410bf4
push str._GetLastError_
push dword [ebp + 8]
push edi
push str.:5:TerminateProcessByName__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED:__s
call fcn.004265da
add esp, 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x410c2e
push str._GetLastError_
push dword [ebp + 8]
push edi
push str.:5:TerminateProcessByName__s___d__FAILED:_Process32First___FAILED:__s
call fcn.004265da
add esp, 0x10
mov edi, esi
call fcn.0042dbeb
jmp 0x410be2
or dword [ebp - 0x138], 0xffffffff
mov esi, str._GetLastError_
cmp dword [ebp + 8], ebx
push dword [ebp - 0x140]
lea eax, [ebp - 0x10c]
push eax
je 0x410cac
cmp dword [ebp + 0xc], ebx
je 0x410c58
call fcn.005122c0
jmp 0x410c5d
call fcn.00512a33
test eax, eax
pop ecx
pop ecx
jne 0x410eca
push dword [ebp - 0x128]
mov dword [ebp - 0x138], ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x410cd9
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x410cc8
push esi
lea eax, [ebp - 0x10c]
push eax
push str.:1:TerminateProcessByName___encountered_a_problem:_TerminateProcess___FAILED_to_terminate__s:__s:_trying_once_more_with_higher_privilege...
call fcn.00426c01
add esp, 0xc
mov dword [ebp - 0x13c], ebx
jmp 0x410cd2
cmp dword [ebp + 0xc], ebx
je 0x410cc1
call fcn.00512350
test eax, eax
pop ecx
pop ecx
jne 0x410c67
jmp 0x410eca
call fcn.004c48c1
jmp 0x410cb6
mov dword [ebp - 0x13c], 1
call fcn.0042dbeb
jmp 0x410cdf
mov dword [ebp - 0x13c], ebx
cmp dword [ebp - 0x13c], ebx
jne 0x410eca
xor eax, eax
mov dword [ebp - 0x158], ebx
lea edi, [ebp - 0x154]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x168], ebx
lea edi, [ebp - 0x164]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x134]
push eax
push ebx
push 0x28
mov dword [ebp - 0x13c], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x410d8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x410d4e
push esi
lea eax, [ebp - 0x10c]
push eax
push str.:4:TerminateProcessByName___failed_to_OpenThreadToken___for___s_:__s
jmp 0x410d75
lea eax, [ebp - 0x134]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x410d8c
push esi
lea eax, [ebp - 0x10c]
push eax
push str.:4:TerminateProcessByName___failed_to_OpenProcessToken___for___s_:__s
mov dword [ebp - 0x138], 1
call fcn.00426c01
add esp, 0xc
jmp 0x410eca
lea eax, [ebp - 0x154]
push eax
xor edi, edi
push str.SeDebugPrivilege
inc edi
push ebx
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x14c], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x410dcb
push esi
lea eax, [ebp - 0x10c]
push eax
push str.:4:TerminateProcessByName___failed_to_LookupPrivilegeValue___for___s_:__s
call fcn.00426c01
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x168]
push eax
push 0x10
lea eax, [ebp - 0x158]
push eax
push ebx
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x410e24
push esi
lea eax, [ebp - 0x10c]
push eax
push str.:4:TerminateProcessByName___failed_to_AdjustTokenPrivileges___for___s_:__s
mov dword [ebp - 0x138], edi
call fcn.00426c01
mov edi, dword [ebp - 0x134]
add esp, 0xc
call fcn.0042dbeb
mov dword [ebp - 0x134], ebx
jmp 0x410eca
push dword [ebp - 0x128]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x148], eax
jne 0x410e57
push esi
lea eax, [ebp - 0x10c]
push eax
push str.:4:TerminateProcessByName___failed_to_AdjustTokenPrivileges___for___s_:__s
mov dword [ebp - 0x138], edi
call fcn.00426c01
add esp, 0xc
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x168]
push eax
push ebx
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x410e88
push esi
lea eax, [ebp - 0x10c]
push eax
push str.:3:TerminateProcessByName___failed_to_restore_the_original_privilege_state_with_AdjustTokenPrivileges___for___s_:__s
call fcn.00426c01
add esp, 0xc
mov edi, dword [ebp - 0x134]
call fcn.0042dbeb
mov edi, dword [ebp - 0x148]
cmp edi, ebx
mov dword [ebp - 0x134], ebx
je 0x410eca
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x410ec5
push esi
lea eax, [ebp - 0x10c]
push eax
push str.:8:TerminateProcessByName___encountered_a_problem:_TerminateProcess___FAILED_to_terminate__s_with_high_privilege:__s
call fcn.004265da
add esp, 0xc
call fcn.0042dbeb
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x144]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x410c3a
mov edi, dword [ebp - 0x144]
call fcn.0042dbeb
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x138]
jmp 0x410be5