Function at 0x14001fb38
Capabilities:
Acquire debug privileges

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
xor esi, esi
mov rbx, rcx
lea rcx, [rax - 0x70]
mov r12d, 1
mov dword [rsp + 0x30], esi
mov dword [rax + 0x20], esi
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x38], esi
mov qword [rax - 0x78], r12
call fcn.140055fcc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rdx, qword [rsp + 0xc8]
lea r8, [rsp + 0x48]
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x20], r12b
call fcn.140069b2c
mov r11, qword [rsp + 0x48]
lea eax, [rsi + 0x2d]
mov r14b, sil
mov qword [rsp + 0xc8], r11
mov cl, 0x2a
mov bpl, sil
mov r15b, sil
mov byte [rsp + 0xd0], sil
cmp ax, word [r11]
jne 0x14001fbcd
mov cl, byte [r11]
movzx edi, cl
mov r13d, 4
cmp di, word [r11]
jne 0x14001fe2c
lea ebx, [r13 + 5]
add r11, 2
mov qword [rsp + 0xc8], r11
je 0x14001fd4c
lea rdx, [rsp + 0xc8]
lea rcx, [0x1400ecba4]
mov r8d, 5
call fcn.140058710
cmp al, sil
je 0x14001fc1d
or r14b, r12b
jmp 0x14001fd3a
mov rdx, qword [rsp + 0xc8]
lea rcx, str.svr2
mov r8d, r13d
call fcn.14004fdfc
cmp al, sil
jne 0x14001fd9c
mov rdx, qword [rsp + 0xc8]
lea rcx, str.exitcode
mov r8d, ebx
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, esi
jne 0x14001fcab
mov rax, qword [rsp + 0xc8]
mov dword [rsp + 0x3c], esi
lea rdx, [rsp + 0x3c]
add rax, 0x14
mov qword [rsp + 0xc8], rax
movzx ecx, word [rax]
sub cx, 0x30
cmp cx, bx
lea rcx, [rsp + 0xc8]
setbe bl
call fcn.1400640cc
cmp bl, sil
mov ebx, 9
je 0x14001fd3a
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x30], eax
jmp 0x14001fd3a
lea rdx, [rsp + 0xc8]
lea rcx, str.explorer
mov r8d, 8
call fcn.140058710
cmp al, sil
je 0x14001fcd1
mov dword [rsp + 0x30], r12d
jmp 0x14001fd3a
lea rdx, [rsp + 0xc8]
lea rcx, [0x1400ecb74]
mov r8d, 3
call fcn.140058710
cmp al, sil
je 0x14001fcf5
mov bpl, r12b
jmp 0x14001fd3a
lea rdx, [rsp + 0xc8]
lea rcx, str.tree
mov r8d, r13d
call fcn.140058710
cmp al, sil
je 0x14001fd16
mov r15b, 0xc0
jmp 0x14001fd3a
lea rdx, [rsp + 0xc8]
lea rcx, [0x1400ecb68]
mov r8d, r12d
call fcn.140058710
cmp al, sil
je 0x14001fd91
mov byte [rsp + 0xd0], r12b
mov r11, qword [rsp + 0xc8]
cmp di, word [r11]
je 0x14001fbe4
cmp bpl, sil
je 0x14001fe2c
mov rax, qword [str.26:INDATA]
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x58]
mov qword [rcx], rax
mov rax, qword [0x1400ecb58]
mov qword [rcx + 8], rax
mov rax, qword [0x1400ecb60]
mov qword [rcx + 0x10], rax
mov rcx, qword [rsp + 0xc0]
call fcn.1400425e4
jmp 0x1400200a9
sub qword [rsp + 0xc8], 2
jmp 0x14001fd4c
lea rbp, [0x140107de8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, 2
lea rcx, str.SeShutdownPrivilege
lea r8d, [rdx + 6]
call fcn.140018d60
mov al, byte [0x140107e5c]
mov bl, sil
lea r12, str.SeDebugPrivilege
test r13b, al
jne 0x14001fdf0
xor r8d, r8d
or al, r13b
mov rcx, r12
lea edx, [r8 + 2]
mov bl, 1
mov byte [0x140107e5c], al
call fcn.140018d60
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
cmp bl, sil
je 0x14001fe12
and byte [0x140107e5c], 0xfb
xor r8d, r8d
mov edx, r13d
mov rcx, r12
call fcn.140018d60
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
xor eax, eax
jmp 0x1400200b6
lea rbp, [0x140107de8]
mov rcx, rbp
mov rbx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13d, 0x8000
mov dil, sil
lea r12, str.SeDebugPrivilege
cmp r14b, sil
je 0x14001fe7a
mov al, byte [0x140107e5c]
test al, 4
jne 0x14001fe7a
xor r8d, r8d
or al, 4
mov rcx, r12
lea edx, [r8 + 2]
mov dil, 1
mov byte [0x140107e5c], al
call fcn.140018d60
jmp 0x14001fe86
mov rcx, rbp
mov rbx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0xc8]
mov eax, 0x2a
cmp ax, word [rcx]
jne 0x14001ff3d
add rcx, 2
lea rdx, [rsp + 0xd8]
mov qword [rsp + 0xc8], rcx
lea rcx, [rsp + 0xc8]
call fcn.1400640cc
cmp eax, esi
jg 0x14001fef6
cmp dil, sil
je 0x14001fedc
and byte [0x140107e5c], 0xfb
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 4]
call fcn.140018d60
cmp rbx, rsi
je 0x14001feea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, 0xffffffff80070057
jmp 0x1400200a9
mov ecx, dword [rsp + 0xd8]
mov r14d, dword [rsp + 0x30]
mov dword [rsp + 0x34], ecx
cmp r15b, sil
je 0x14001ff28
lea rax, [0x1400e94a4]
or r15b, 1
mov qword [rsp + 0xc8], rax
mov bpl, byte [rsp + 0xc8]
jmp 0x14001ff89
mov qword [rsp + 0xc8], rsi
mov bpl, byte [rsp + 0xc8]
jmp 0x14002000b
call fcn.140015c5c
mov rcx, rax
call fcn.1400188a8
mov qword [rsp + 0xc8], rax
cmp word [rax], si
je 0x14001fec1
mov edx, 0x5c
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov ecx, dword [rsp + 0xd8]
mov r14d, dword [rsp + 0x30]
neg rax
sbb bpl, bpl
and bpl, 0x20
cmp qword [rsp + 0xc8], rsi
je 0x14001ffe3
mov al, r15b
movsx edx, bpl
neg al
movzx eax, r15b
sbb ecx, ecx
or edx, eax
mov eax, dword [rsp + 0x34]
and ecx, r14d
or edx, 0x10
xor r9d, r9d
mov r8d, ecx
mov rcx, qword [rsp + 0xc8]
mov dword [rsp + 0x20], eax
call fcn.14001f090
mov rcx, rax
mov dword [rsp + 0xd8], eax
mov eax, dword [rsp + 0x34]
cmp eax, esi
je 0x14001ffe3
lea r8, [rsp + 0x40]
mov edx, r14d
mov ecx, eax
call fcn.140016f40
mov ecx, dword [rsp + 0xd8]
cmp r15b, sil
je 0x140020005
cmp ecx, esi
mov rax, rsi
sete al
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0xc8], rsi
je 0x14002007b
cmp ecx, esi
je 0x14002007b
jmp 0x140020023
cmp dword [rsp + 0x50], ecx
je 0x140020023
cmp ecx, esi
je 0x140020023
lea r8, [rsp + 0x40]
mov edx, r14d
call fcn.140016f40
mov ecx, dword [rsp + 0xd8]
cmp byte [rsp + 0xd0], sil
jne 0x14002007b
cmp qword [rsp + 0xc8], rsi
je 0x14002007b
cmp ecx, esi
je 0x14002007b
cmp dword [rsp + 0x38], ecx
jne 0x14002005f
mov rcx, qword [rsp + 0xc0]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
call fcn.14001bbe8
mov ecx, dword [rsp + 0xd8]
cmp r15b, sil
mov eax, ecx
cmovne eax, esi
cmp ecx, esi
mov dword [rsp + 0x38], eax
jle 0x14002007b
dec r13d
cmp r13d, esi
jg 0x14001ff7f
cmp dil, sil
je 0x140020096
and byte [0x140107e5c], 0xfb
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 4]
call fcn.140018d60
cmp rbx, rsi
je 0x1400200a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
mov rax, rsi
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret