Function at 0x140016720
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140267b40]
xor rax, rsp
mov qword [rbp + 0x180], rax
call fcn.140023c3c
mov rdx, rax
xor r14d, r14d
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x140016783
mov ecx, 0x80004005
call fcn.140019e30
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rsi, [0x1402283ec]
mov rdi, rsi
shr rdi, 0x10
test rdi, rdi
jne 0x1400167c9
movzx ebx, si
mov ecx, ebx
call fcn.14002364c
test rax, rax
je 0x1400167da
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140019b00
jmp 0x1400167da
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.140019e50
nop
call fcn.140023c3c
mov rdx, rax
mov ecx, r14d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400167fa
mov ecx, 0x80004005
call fcn.140019e30
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
test rdi, rdi
jne 0x140016832
movzx edi, si
mov ecx, edi
call fcn.14002364c
test rax, rax
je 0x140016847
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140019b00
jmp 0x140016842
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140019e50
mov rbx, qword [rsp + 0x20]
mov eax, dword [0x140279c8c]
or r12, 0xffffffffffffffff
cmp eax, 2
je 0x1400168ba
xor ecx, ecx
cmp eax, 4
je 0x140016874
cmp eax, 6
je 0x14001686b
lea rdx, str.Elan_Smart_Pad
jmp 0x14001687b
lea rdx, str.Properties_for_ELAN_on_PS_2_port
jmp 0x14001687b
lea rdx, str.Touchpad
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140016a89
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140016a89
mov r8d, 0xf
lea rdx, str.DellDevices.exe
lea rcx, [rsp + 0x28]
call fcn.140019e50
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1400168ed
mov rcx, r12
jmp 0x140016a82
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140016a7f
mov rdi, qword [rsp + 0x28]
lea rax, [rsp + 0x6c]
mov rsi, r12
nop dword [rax + rax]
inc rsi
cmp word [rax + rsi*2], 0
jne 0x140016920
test esi, esi
jne 0x140016985
lea rdx, [rbx - 0x18]
mov rsi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140016a00
cmp dword [rdx + 0x10], 0
jge 0x14001695c
cmp dword [rbx - 0xc], 0
jl 0x140016a57
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x140016a00
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001696c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
mov rdi, qword [rsp + 0x28]
jmp 0x140016a00
mov r15d, dword [rbx - 0x10]
lea r14, [rsp + 0x6c]
sub r14, rbx
sar r14, 1
test esi, esi
js 0x140016acf
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x1400169be
mov edx, esi
lea rcx, [rsp + 0x20]
call fcn.140019dd0
mov rbx, qword [rsp + 0x20]
movsxd rax, esi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r14, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x1400169e2
lea r8, [rbx + r14*2]
call fcn.14019a16c
jmp 0x1400169ec
lea r8, [rsp + 0x6c]
call fcn.14019a0e4
cmp esi, dword [rbx - 0xc]
jg 0x140016ac4
mov dword [rbx - 0x10], esi
xor r14d, r14d
mov word [r15 + rbx], r14w
mov eax, r14d
test rdi, rdi
setne al
test eax, eax
je 0x140016ab9
mov rax, rbx
mov rdx, rdi
sub rdx, rbx
nop word [rax + rax]
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x140016a37
add rax, 2
test cx, cx
jne 0x140016a20
mov eax, r14d
jmp 0x140016a3c
sbb eax, eax
or eax, 1
test eax, eax
je 0x140016a62
lea rdx, [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140016a89
jmp 0x140016910
mov ecx, 0x80070057
call fcn.140019e30
int3
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140016a9e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140016ada
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140016ada
mov ecx, 0x80004005
call fcn.140019e30
int3
mov ecx, 0x80070057
call fcn.140019e30
int3
mov ecx, 0x80070057
call fcn.140019e30
nop
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140199f00
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret