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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x5f2e68]
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.005306b0
add esp, 0xc
cmp edi, ebx
je 0x412809
cmp byte [edi], bl
je 0x412809
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x144], esi
jne 0x41281b
push str._GetLastError_
push dword [ebp + 8]
push edi
push str.:5:TerminateProcessByName__s___d__FAILED:_CreateToolhelp32Snapshot___FAILED:__s
call fcn.0042b70b
add esp, 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x412855
push str._GetLastError_
push dword [ebp + 8]
push edi
push str.:5:TerminateProcessByName__s___d__FAILED:_Process32First___FAILED:__s
call fcn.0042b70b
add esp, 0x10
mov edi, esi
call fcn.00435716
jmp 0x412809
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 0x4128d3
cmp dword [ebp + 0xc], ebx
je 0x41287f
call fcn.00531180
jmp 0x412884
call fcn.005318fe
test eax, eax
pop ecx
pop ecx
jne 0x412af1
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 0x412900
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4128ef
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.0042bd38
add esp, 0xc
mov dword [ebp - 0x13c], ebx
jmp 0x4128f9
cmp dword [ebp + 0xc], ebx
je 0x4128e8
call fcn.00531210
test eax, eax
pop ecx
pop ecx
jne 0x41288e
jmp 0x412af1
call fcn.004cd9f0
jmp 0x4128dd
mov dword [ebp - 0x13c], 1
call fcn.00435716
jmp 0x412906
mov dword [ebp - 0x13c], ebx
cmp dword [ebp - 0x13c], ebx
jne 0x412af1
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 0x4129b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x412975
push esi
lea eax, [ebp - 0x10c]
push eax
push str.:4:TerminateProcessByName___failed_to_OpenThreadToken___for___s_:__s
jmp 0x41299c
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 0x4129b3
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.0042bd38
add esp, 0xc
jmp 0x412af1
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 0x4129f2
push esi
lea eax, [ebp - 0x10c]
push eax
push str.:4:TerminateProcessByName___failed_to_LookupPrivilegeValue___for___s_:__s
call fcn.0042bd38
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 0x412a4b
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.0042bd38
mov edi, dword [ebp - 0x134]
add esp, 0xc
call fcn.00435716
mov dword [ebp - 0x134], ebx
jmp 0x412af1
push dword [ebp - 0x128]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x148], eax
jne 0x412a7e
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.0042bd38
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 0x412aaf
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.0042bd38
add esp, 0xc
mov edi, dword [ebp - 0x134]
call fcn.00435716
mov edi, dword [ebp - 0x148]
cmp edi, ebx
mov dword [ebp - 0x134], ebx
je 0x412af1
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x412aec
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.0042b70b
add esp, 0xc
call fcn.00435716
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x144]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412861
mov edi, dword [ebp - 0x144]
call fcn.00435716
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x138]
jmp 0x41280c