Function at 0x14001bf60
Capabilities:
Create thread
Shutdown system

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x30], 0
cmp dword [rsp + 0x70], 0
jne 0x14001bf91
xor eax, eax
jmp 0x14001c21f
cmp dword [rsp + 0x70], 6
jne 0x14001bfb8
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, 1
jmp 0x14001c21f
cmp dword [rsp + 0x70], 7
jne 0x14001bfd4
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, 1
jmp 0x14001c21f
cmp dword [rsp + 0x70], 8
jne 0x14001bff0
mov ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
mov eax, 1
jmp 0x14001c21f
cmp dword [rsp + 0x70], 9
jne 0x14001c03e
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140015920]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14001c034
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14001c21f
cmp dword [rsp + 0x70], 5
jle 0x14001c04c
xor eax, eax
jmp 0x14001c21f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14001c070
xor eax, eax
jmp 0x14001c21f
mov eax, listen
imul rax, rax, 0
lea rax, [rsp + rax + 0x44]
mov r8, rax
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [rsp + 0x40], 1
mov eax, listen
imul rax, rax, 0
mov dword [rsp + rax + 0x4c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14001c0ec
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001c21f
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 1
je 0x14001c124
cmp dword [rsp + 0x34], 2
je 0x14001c154
cmp dword [rsp + 0x34], 3
je 0x14001c178
cmp dword [rsp + 0x34], 4
je 0x14001c19c
cmp dword [rsp + 0x34], 5
je 0x14001c1b1
jmp 0x14001c1c1
cmp dword [rsp + 0x78], 0
je 0x14001c141
mov edx, 0x80000000
mov ecx, 4
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [rsp + 0x30], eax
jmp 0x14001c152
mov edx, 0x80000000
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [rsp + 0x30], eax
jmp 0x14001c1c1
mov dword [rsp + 0x20], 0
mov r9d, 1
mov r8d, 0x1e
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov dword [rsp + 0x30], eax
jmp 0x14001c1c1
mov dword [rsp + 0x20], 1
mov r9d, 1
mov r8d, 0x1e
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov dword [rsp + 0x30], eax
jmp 0x14001c1c1
mov edx, dword [rsp + 0x78]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov dword [rsp + 0x30], eax
jmp 0x14001c1c1
mov edx, dword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14001c1d7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001c21f
mov eax, listen
imul rax, rax, 0
mov dword [rsp + rax + 0x4c], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x68
ret