Function at 0x14001dfe0
Capabilities:
Create thread
Shutdown system

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xa0]
mov rax, qword [0x140575740]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x54], 0
cmp dword [rsp + 0xa0], 0
jne 0x14001e033
xor eax, eax
jmp 0x14001e2ef
cmp dword [rsp + 0xa0], 6
jne 0x14001e05d
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, 1
jmp 0x14001e2ef
cmp dword [rsp + 0xa0], 7
jne 0x14001e07c
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, 1
jmp 0x14001e2ef
cmp dword [rsp + 0xa0], 8
jne 0x14001e09b
mov ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
mov eax, 1
jmp 0x14001e2ef
cmp dword [rsp + 0xa0], 9
jne 0x14001e0ed
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140018530]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14001e0e3
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 1
jmp 0x14001e2ef
cmp dword [rsp + 0xa0], 5
jle 0x14001e0fe
xor eax, eax
jmp 0x14001e2ef
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14001e122
xor eax, eax
jmp 0x14001e2ef
mov eax, ntohs
imul rax, rax, 0
lea rax, [rsp + rax + 0x3c]
mov r8, rax
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [rsp + 0x38], 1
mov eax, ntohs
imul rax, rax, 0
mov dword [rsp + rax + 0x44], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14001e19e
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001e2ef
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 1
je 0x14001e1eb
cmp dword [rsp + 0x80], 2
je 0x14001e21e
cmp dword [rsp + 0x80], 3
je 0x14001e242
cmp dword [rsp + 0x80], 4
je 0x14001e266
cmp dword [rsp + 0x80], 5
je 0x14001e27e
jmp 0x14001e291
cmp dword [rsp + 0xa8], 0
je 0x14001e20b
mov edx, 0x80000000
mov ecx, 4
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [rsp + 0x54], eax
jmp 0x14001e21c
mov edx, 0x80000000
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [rsp + 0x54], eax
jmp 0x14001e291
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 + 0x54], eax
jmp 0x14001e291
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 + 0x54], eax
jmp 0x14001e291
mov edx, dword [rsp + 0xa8]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov dword [rsp + 0x54], eax
jmp 0x14001e291
mov edx, dword [rsp + 0xa8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x14001e2a7
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001e2ef
mov eax, ntohs
imul rax, rax, 0
mov dword [rsp + rax + 0x44], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14037c300
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14037c650
add rsp, 0x90
pop rdi
ret