Function at 0x14001d2d0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
xor esi, esi
mov rbx, rcx
lea rcx, [rax - 0x58]
lea r15d, [rsi + 1]
mov dword [rsp + 0xb8], esi
mov dword [rax + 0x18], esi
mov dword [rsp + 0x34], esi
call fcn.14004be6c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x38], eax
mov byte [rsp + 0x20], r15b
call fcn.140056690
mov r11, qword [rsp + 0x40]
lea ecx, [rsi + 0x2d]
mov qword [rsp + 0xa8], r11
mov r13b, sil
lea eax, [rsi + 0x2a]
mov bpl, sil
cmp cx, word [r11]
jne 0x14001d352
mov al, byte [r11]
movsx edi, al
movzx eax, word [r11]
mov ebx, 9
lea r14d, [rbx - 5]
cmp edi, eax
jne 0x14001d57f
add r11, 2
mov qword [rsp + 0xa8], r11
je 0x14001d48c
lea rdx, [rsp + 0xa8]
lea rcx, [0x1400d92ec]
mov r8d, 5
call fcn.14004e558
cmp al, sil
je 0x14001d3a3
or r13b, r15b
jmp 0x14001d478
mov rdx, qword [rsp + 0xa8]
lea rcx, str.svr2
mov r8d, r14d
call fcn.140045fc8
cmp al, sil
jne 0x14001d4dc
mov rdx, qword [rsp + 0xa8]
lea rcx, str.exitcode
mov r8d, ebx
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, esi
jne 0x14001d42d
mov rax, qword [rsp + 0xa8]
mov dword [rsp + 0x30], esi
lea rdx, [rsp + 0x30]
add rax, 0x14
mov qword [rsp + 0xa8], rax
movzx ecx, word [rax]
sub cx, 0x30
cmp cx, bx
lea rcx, [rsp + 0xa8]
setbe bl
call fcn.14004fc04
cmp bl, sil
mov ebx, 9
je 0x14001d478
mov ecx, dword [rsp + 0x30]
mov dword [rsp + 0xb8], ecx
jmp 0x14001d478
lea rdx, [rsp + 0xa8]
lea rcx, str.explorer
mov r8d, 8
call fcn.14004e558
cmp al, sil
je 0x14001d456
mov dword [rsp + 0xb8], r15d
jmp 0x14001d478
lea rdx, [rsp + 0xa8]
lea rcx, [0x1400d92b8]
mov r8d, 3
call fcn.14004e558
cmp al, sil
je 0x14001d4d1
mov bpl, r15b
mov r11, qword [rsp + 0xa8]
movzx eax, word [r11]
cmp edi, eax
je 0x14001d36a
cmp bpl, sil
je 0x14001d57f
mov rax, qword [str.26:INDATA]
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x48]
mov qword [rcx], rax
mov rax, qword [0x1400d92a8]
mov qword [rcx + 8], rax
mov rax, qword [0x1400d92b0]
mov qword [rcx + 0x10], rax
mov rcx, qword [rsp + 0xa0]
call fcn.140039598
jmp 0x14001d7bc
sub qword [rsp + 0xa8], 2
jmp 0x14001d48c
lea rbp, [0x1400f2c58]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11b, byte [0x1400f2ccc]
test r11b, 8
jne 0x14001d51c
or r11b, 8
lea rcx, str.SeShutdownPrivilege
mov edx, 2
mov byte [0x1400f2ccc], r11b
call fcn.140016130
mov r11b, byte [0x1400f2ccc]
mov bl, sil
test r14b, r11b
jne 0x14001d542
or r11b, r14b
lea rcx, str.SeDebugPrivilege
mov edx, 2
mov bl, r15b
mov byte [0x1400f2ccc], r11b
call fcn.140016130
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
cmp bl, sil
je 0x14001d565
and byte [0x1400f2ccc], 0xfb
lea rcx, str.SeDebugPrivilege
mov edx, r14d
call fcn.140016130
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x40]
call fcn.140044f24
xor eax, eax
jmp 0x14001d7c8
lea rbp, [0x1400f2c58]
mov rcx, rbp
mov rbx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r14d, 0x8000
mov dil, sil
cmp r13b, sil
je 0x14001d5c8
mov al, byte [0x1400f2ccc]
test al, 4
jne 0x14001d5c8
or al, 4
lea rcx, str.SeDebugPrivilege
mov edx, 2
mov dil, r15b
mov byte [0x1400f2ccc], al
call fcn.140016130
jmp 0x14001d5d4
mov rcx, rbp
mov rbx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0xa8]
mov eax, 0x2a
cmp ax, word [rcx]
jne 0x14001d69e
add rcx, 2
mov qword [rsp + 0xa8], rcx
lea rcx, [rsp + 0xa8]
call fcn.140011910
mov rcx, qword [rsp + 0xa8]
mov edx, 9
movzx eax, word [rcx]
sub ax, 0x30
cmp ax, dx
jbe 0x14001d651
cmp dil, sil
je 0x14001d639
and byte [0x1400f2ccc], 0xfb
lea rcx, str.SeDebugPrivilege
mov edx, 4
call fcn.140016130
cmp rbx, rsi
je 0x14001d647
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 0x80070057
jmp 0x14001d7bc
cmp word [rcx], si
je 0x14001d670
cmp word [rcx], 0x30
jb 0x14001d662
cmp word [rcx], 0x39
jbe 0x14001d670
add rcx, 2
mov qword [rsp + 0xa8], rcx
jmp 0x14001d651
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa8]
call fcn.14004fc04
mov eax, dword [rsp + 0xb0]
mov qword [rsp + 0xa8], rsi
mov r13b, byte [rsp + 0xa8]
jmp 0x14001d70b
call fcn.140012d94
mov rcx, rax
call fcn.140015cb4
mov qword [rsp + 0xa8], rax
cmp word [rax], si
je 0x14001d61c
mov edx, 0x5c
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrChrW]
neg rax
mov eax, dword [rsp + 0xb0]
sbb r13b, r13b
and r13b, 0x20
mov rcx, qword [rsp + 0xa8]
cmp rcx, rsi
je 0x14001d705
movsx edx, r13b
xor r9d, r9d
xor r8d, r8d
or edx, 0x10
mov dword [rsp + 0x20], esi
call fcn.14001ca38
mov dword [rsp + 0xb0], eax
cmp dword [rsp + 0x38], eax
je 0x14001d74b
cmp eax, esi
je 0x14001d74b
xor edx, edx
mov r8d, eax
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
cmp rax, rsi
je 0x14001d744
mov edx, dword [rsp + 0xb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbp
cmp eax, esi
cmovne r15d, esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0xb0]
cmp qword [rsp + 0xa8], rsi
je 0x14001d78e
cmp eax, esi
je 0x14001d78e
cmp dword [rsp + 0x34], eax
jne 0x14001d77a
mov rcx, qword [rsp + 0xa0]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140013908
mov eax, dword [rsp + 0xb0]
cmp eax, esi
mov dword [rsp + 0x34], eax
jle 0x14001d78e
dec r14d
cmp r14d, esi
jg 0x14001d6db
cmp dil, sil
je 0x14001d7ab
and byte [0x1400f2ccc], 0xfb
lea rcx, str.SeDebugPrivilege
mov edx, 4
call fcn.140016130
cmp rbx, rsi
je 0x14001d7b9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, r15d
lea rcx, [rsp + 0x40]
call fcn.140044f24
mov eax, esi
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret