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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ac4b
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x4c4184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str._end__TN_ASUSASUSUpdateTaskMachineCore
push str.schtasks.exe
call fcn.0041fd50
push str._end__TN_ASUSASUSUpdateTaskMachineUA
push str.schtasks.exe
call fcn.0041fd50
add esp, 0x10
mov dword [ebp - 0x44c], 0x22c
xor edi, edi
mov dword [ebp - 0x458], edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x44c]
push eax
push esi
mov dword [ebp - 0x454], esi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x420502
lea eax, [ebp - 0x44c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x420502
lea eax, [ebp - 0x428]
push str.AsusUpdate.exe
push eax
call fcn.0046c6d2
add esp, 8
test eax, eax
jne 0x4204e6
lea eax, [ebp - 0x450]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x420374
lea eax, [ebp - 0x460]
xorps xmm0, xmm0
push eax
push str.SeDebugPrivilege
push 0
movlpd qword [ebp - 0x460], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x420374
mov eax, dword [ebp - 0x460]
mov ecx, dword [ebp - 0x45c]
push 0
push 0
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x450]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x450]
call ebx
push dword [ebp - 0x444]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
mov dword [ebp - 0x45c], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x42041b
mov ecx, dword [0x4c6eac]
test ecx, ecx
je 0x4204de
cmp dword [ecx + 4], 4
jl 0x4204de
push eax
push eax
push 0x4a0d84
push 0x209
push str.AsusUpdateDlg::StopAsusUpdate
push 4
lea ecx, [ebp - 0x120]
call fcn.00413ac0
mov ebx, eax
lea ecx, [ebx + 0x28]
mov dword [ebp - 4], 0
push str.TerminateProcess_succeed.
push ecx
call fcn.004160f0
mov edi, dword [0x4c6eac]
add esp, 8
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0xc]
je 0x420410
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [edi + 0xc]
jne 0x420400
lea ecx, [ebp - 0x120]
jmp 0x4204c6
mov dword [ebp - 0x458], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4c6eac]
mov edi, eax
test ecx, ecx
je 0x4204de
cmp dword [ecx + 4], 3
jl 0x4204de
push 0
push 0
push 0x4a0d84
push 0x20e
push str.AsusUpdateDlg::StopAsusUpdate
push 3
lea ecx, [ebp - 0x220]
call fcn.00413ac0
mov ebx, eax
lea esi, [ebx + 0x28]
mov dword [ebp - 4], 1
push str.TerminateProcess_fail_
push esi
call fcn.004160f0
mov ecx, dword [esi]
add esp, 8
mov edx, dword [ecx + 4]
mov ecx, esi
push edi
mov eax, dword [edx + esi + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [edx + esi + 0x14], eax
call fcn.00415d90
mov edi, dword [0x4c6eac]
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0xc]
je 0x4204c0
nop dword [eax]
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [edi + 0xc]
jne 0x4204b0
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0xffffffff
call fcn.004151d0
mov esi, dword [ebp - 0x454]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x45c]
call ebx
lea eax, [ebp - 0x44c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x4202e3
mov edi, dword [ebp - 0x458]
push esi
call ebx
test edi, edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044a466
mov esp, ebp
pop ebp
ret