Function at 0x14001e120
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140093080]
xor rax, rsp
mov qword [rbp + 0x10], rax
xor esi, esi
mov qword [rbp - 0x58], 7
xorps xmm0, xmm0
mov qword [rbp - 0x60], rsi
movups xmmword [rbp - 0x70], xmm0
lea rcx, [rbp - 0x70]
mov word [rbp - 0x70], si
movups xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x50], si
movups xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x30], si
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov dword [rbp - 0x10], esi
mov word [rbp - 0xc], si
call fcn.14001d260
test al, al
jne 0x14001e1a1
mov edi, esi
jmp 0x14001e6fc
movzx eax, byte [rbp - 0xc]
mov dword [0x1400969c8], eax
mov qword [rsp + 0x130], rbx
cmp qword [rbp - 0x40], rsi
je 0x14001e55f
mov byte [rsp + 0x40], sil
mov byte [rsp + 0x41], 0x4b
mov byte [rsp + 0x42], 0x4e
mov byte [rsp + 0x43], 0x26
mov byte [rsp + 0x44], 0x4e
mov byte [rsp + 0x45], 0x26
mov byte [rsp + 0x46], 0x4e
mov byte [rsp + 0x47], 0x4e
mov byte [rsp + 0x48], 0x4e
movzx eax, byte [rsp + 0x41]
movzx eax, byte [rsp + 0x40]
test al, al
jne 0x14001e258
mov r9, rsi
nop dword [rax + rax]
movzx ecx, byte [rsp + r9 + 0x41]
mov eax, 0x81020409
sub ecx, 0x4e
lea r8d, [rcx + rcx*4]
add r8d, r8d
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov eax, 0x81020409
add r8d, 0x7f
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov byte [rsp + r9 + 0x41], r8b
inc r9
cmp r9, 8
jb 0x14001e200
cmp qword [rbp - 0x38], 7
lea rbx, [rbp - 0x50]
mov edx, 0xf
mov r8d, 0xcd7328ca
cmova rbx, qword [rbp - 0x50]
lea r9d, [rdx + 0x42]
call fcn.140005830
lea rdx, [rsp + 0x41]
mov rcx, rbx
call rax
test eax, eax
jne 0x14001e297
mov dword [0x140093cd0], 0xa
jmp 0x14001e55f
mov byte [rsp + 0x60], sil
mov byte [rsp + 0x61], 0x5c
mov byte [rsp + 0x62], 0x11
mov byte [rsp + 0x63], 0x14
mov byte [rsp + 0x64], 0x11
mov byte [rsp + 0x65], 0x36
mov byte [rsp + 0x66], 0x11
mov byte [rsp + 0x67], 0x66
mov byte [rsp + 0x68], 0x11
mov byte [rsp + 0x69], 0x5c
mov byte [rsp + 0x6a], 0x11
mov byte [rsp + 0x6b], 0x11
mov byte [rsp + 0x6c], 0x11
movzx eax, byte [rsp + 0x61]
movzx eax, byte [rsp + 0x60]
test al, al
jne 0x14001e345
mov r9, rsi
nop dword [rax]
movzx ecx, byte [rsp + r9 + 0x61]
mov eax, 0x81020409
sub ecx, 0x11
imul r8d, ecx, 0x25
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov eax, 0x81020409
add r8d, 0x7f
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov byte [rsp + r9 + 0x61], r8b
inc r9
cmp r9, 0xc
jb 0x14001e2f0
cmp qword [rbp - 0x38], 7
lea rbx, [rbp - 0x50]
mov edx, 0xf
mov r8d, 0xcd7328ca
cmova rbx, qword [rbp - 0x50]
lea r9d, [rdx + 0x42]
call fcn.140005830
lea rdx, [rsp + 0x61]
mov rcx, rbx
call rax
test eax, eax
jne 0x14001e384
mov dword [0x140093cd0], 0xb
jmp 0x14001e55f
mov byte [rsp + 0x50], sil
mov byte [rsp + 0x51], 0x53
mov byte [rsp + 0x52], 0x44
mov byte [rsp + 0x53], 0x4c
mov byte [rsp + 0x54], 0x44
mov byte [rsp + 0x55], 3
mov byte [rsp + 0x56], 0x44
mov byte [rsp + 0x57], 0x44
mov byte [rsp + 0x58], 0x44
movzx eax, byte [rsp + 0x51]
movzx eax, byte [rsp + 0x50]
test al, al
jne 0x14001e421
mov r8, rsi
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rsp + r8 + 0x51]
mov eax, 0x44
sub eax, ecx
imul ecx, eax, 0x23
mov eax, 0x81020409
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov eax, 0x81020409
add ecx, 0x7f
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov byte [rsp + r8 + 0x51], cl
inc r8
cmp r8, 8
jb 0x14001e3d0
cmp qword [rbp - 0x38], 7
lea rbx, [rbp - 0x50]
mov edx, 0xf
mov r8d, 0xcd7328ca
cmova rbx, qword [rbp - 0x50]
lea r9d, [rdx + 0x42]
call fcn.140005830
lea rdx, [rsp + 0x51]
mov rcx, rbx
call rax
test eax, eax
jne 0x14001e460
mov dword [0x140093cd0], 0xc
jmp 0x14001e55f
mov byte [rsp + 0x70], sil
mov byte [rsp + 0x71], 3
mov byte [rsp + 0x72], 0x15
mov byte [rsp + 0x73], 0x7d
mov byte [rsp + 0x74], 0x15
mov byte [rsp + 0x75], 8
mov byte [rsp + 0x76], 0x15
mov byte [rsp + 0x77], 0x30
mov byte [rsp + 0x78], 0x15
mov byte [rsp + 0x79], 0x62
mov byte [rsp + 0x7a], 0x15
mov byte [rsp + 0x7b], 0x49
mov byte [rsp + 0x7c], 0x15
mov byte [rsp + 0x7d], 0x58
mov byte [rsp + 0x7e], 0x15
mov byte [rsp + 0x7f], 0x15
mov byte [rbp - 0x80], 0x15
movzx eax, byte [rsp + 0x71]
movzx eax, byte [rsp + 0x70]
test al, al
jne 0x14001e525
mov r11, rsi
nop word [rax + rax]
movzx ecx, byte [rsp + r11 + 0x71]
mov eax, 0x81020409
sub ecx, 0x15
imul r10d, ecx, 0x33
imul r10d
add edx, r10d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r10d, eax
mov eax, 0x81020409
add r10d, 0x7f
imul r10d
add edx, r10d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r10d, eax
mov byte [rsp + r11 + 0x71], r10b
inc r11
cmp r11, 0x10
jb 0x14001e4d0
cmp qword [rbp - 0x38], 7
lea rbx, [rbp - 0x50]
mov edx, 0xf
mov r8d, 0xcd7328ca
cmova rbx, qword [rbp - 0x50]
lea r9d, [rdx + 0x42]
call fcn.140005830
lea rdx, [rsp + 0x71]
mov rcx, rbx
call rax
test eax, eax
jne 0x14001e55f
mov dword [0x140093cd0], 0xd
cmp qword [rbp - 0x60], rsi
je 0x14001e59a
cmp qword [rbp - 0x58], 7
lea rdx, [rbp - 0x70]
mov dword [0x140093cd0], 0xe
mov r8, 0xffffffffffffffff
cmova rdx, qword [rbp - 0x70]
inc r8
cmp word [rdx + r8*2], si
jne 0x14001e584
lea rcx, [0x140093cf0]
call fcn.1400188b0
mov edi, 1
cmp qword [rbp - 0x20], rsi
je 0x14001e633
cmp qword [rbp - 0x18], 7
lea rbx, [rbp - 0x30]
lea edx, [rdi + 0xe]
mov r8d, 0xddde40d3
cmova rbx, qword [rbp - 0x30]
lea r9d, [rdi + 0x48]
call fcn.140005830
lea rcx, [0x1400969a0]
call rax
lea edx, [rdi + 0xe]
mov r8d, 0x17610e8
lea r9d, [rdi + 0x60]
call fcn.140005830
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80000000
mov r8d, edi
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov rcx, rbx
call rax
lea edx, [rdi + 0xe]
mov qword [0x140093ce8], rax
lea r9d, [rdi + 0x10]
mov r8d, 0x29103c8c
mov rbx, rax
call fcn.140005830
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call rax
mov rbx, qword [rsp + 0x130]
cmp byte [rbp - 0xb], sil
je 0x14001e6fc
lea rdx, str.Shutdown_parameter_detected._The_system_will_shut_down.
lea rcx, [0x140095170]
call fcn.1400224f0
mov rcx, rax
call fcn.1400227c0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x78]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14001e685
lea rdx, str.Failed_to_open_process_token.
jmp 0x14001e6e8
lea r8, [rbp + 4]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rbp - 0x78]
lea r8, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rbp], edi
mov dword [rbp + 0xc], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14001e6d2
lea rdx, str.Failed_to_adjust_token_privileges.
jmp 0x14001e6e8
xor edx, edx
lea ecx, [rdx + 5]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x14001e6fc
lea rdx, str.Failed_to_shut_down_the_system.
lea rcx, [0x140095300]
call fcn.1400224f0
mov rcx, rax
call fcn.1400227c0
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x14001e73c
mov rcx, qword [rbp - 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e737
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e7f7
call fcn.14004f024
mov rdx, qword [rbp - 0x38]
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
cmp rdx, 7
jbe 0x14001e788
mov rcx, qword [rbp - 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e783
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e7f7
call fcn.14004f024
mov rdx, qword [rbp - 0x58]
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], si
cmp rdx, 7
jbe 0x14001e7d4
mov rcx, qword [rbp - 0x70]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e7cf
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e7f7
call fcn.14004f024
mov eax, edi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14004ea00
lea r11, [rsp + 0x120]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140055814
int3