Function at 0x140182b20
Capabilities:
Create thread
Query or enumerate registry value
Shutdown system

Disassembly:
push rdi
sub rsp, 0x40
mov eax, dword [rcx + 0xcc]
mov rdi, rcx
test eax, eax
je 0x140182c8f
cmp eax, 1
jne 0x140182c0e
mov qword [rsp + 0x38], rbp
xor ecx, ecx
mov qword [rsp + 0x30], rsi
xor bpl, bpl
call fcn.1400f3b20
mov rsi, rax
test rax, rax
je 0x140182c07
mov rcx, qword [rsi + 8]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.EULA37
xor r8d, r8d
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x68]
jne 0x140182bbe
cmp dword [rsp + 0x50], 0
setne bpl
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
test bpl, bpl
je 0x140182c07
mov rax, qword [rdi + 0xc0]
cmp byte [rax + 0x34], 0
jne 0x140182c00
cmp byte [rax + 0x2c], 0
jne 0x140182c00
mov edx, 5
mov rcx, rdi
call fcn.140180b80
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
mov edx, 7
jmp 0x140182be8
mov edx, 2
jmp 0x140182be8
cmp eax, 2
jne 0x140182c44
mov rax, qword [rcx + 0xc0]
cmp byte [rax + 0x34], 0
jne 0x140182c35
cmp byte [rax + 0x2c], 0
jne 0x140182c35
mov edx, 5
add rsp, 0x40
pop rdi
jmp fcn.140180b80
mov edx, 7
add rsp, 0x40
pop rdi
jmp fcn.140180b80
cmp eax, 5
jne 0x140182c70
mov rcx, qword [rcx + 0x120]
test rcx, rcx
je 0x140182c5e
call fcn.14011e490
test al, al
je 0x140182bfa
mov edx, 7
mov rcx, rdi
add rsp, 0x40
pop rdi
jmp fcn.140180b80
cmp eax, 3
je 0x140182c8f
cmp eax, 0xd
je 0x140182c8f
cmp eax, 4
jne 0x140182c9e
mov rax, qword [rcx + 0xc0]
cmp dword [rax + 0x218], 2
jne 0x140182ccc
mov edx, 1
add rsp, 0x40
pop rdi
jmp fcn.140180b80
cmp eax, 7
jne 0x140182cb0
lea edx, [rax + 1]
add rsp, 0x40
pop rdi
jmp fcn.140180b80
cmp eax, 8
jne 0x140182cdb
mov rcx, qword [rcx + 0xc0]
call fcn.1400f9630
mov rcx, rdi
test al, al
je 0x140182dad
mov edx, 9
add rsp, 0x40
pop rdi
jmp fcn.140180b80
cmp eax, 9
jne 0x140182d96
mov r8, qword [rcx + 0xc0]
mov rcx, r8
call fcn.1400f9630
test al, al
je 0x140182d84
mov rcx, r8
call fcn.1400f97d0
test al, al
jne 0x140182d29
mov rax, qword [rdi + 0xc0]
cmp dword [rax + 0x100], 1
jne 0x140182d20
cmp byte [rax + 0x104], 0
je 0x140182d29
call fcn.140168990
test al, al
je 0x140182d3b
mov edx, 0xa
mov rcx, rdi
add rsp, 0x40
pop rdi
jmp fcn.140180b80
mov rcx, qword [rdi + 0xc0]
cmp byte [rcx + 0x1d], 0
je 0x140182d72
call fcn.14010fa00
mov rcx, rdi
test al, al
je 0x140182d63
mov edx, 0xa
add rsp, 0x40
pop rdi
jmp fcn.140180b80
mov edx, 4
add rsp, 0x40
pop rdi
jmp fcn.140180b80
mov edx, 4
mov rcx, rdi
add rsp, 0x40
pop rdi
jmp fcn.140180b80
mov edx, 0xc
mov rcx, rdi
add rsp, 0x40
pop rdi
jmp fcn.140180b80
cmp eax, 0xa
jne 0x140182da8
lea edx, [rax + 1]
add rsp, 0x40
pop rdi
jmp fcn.140180b80
cmp eax, 0xb
jne 0x140182dbc
mov edx, 0xc
add rsp, 0x40
pop rdi
jmp fcn.140180b80
cmp eax, 0xc
jne 0x140182bfa
mov rax, qword [rcx + 0xc0]
cmp byte [rax + 0x264], 0
je 0x140182e08
lea rcx, str.SeShutdownPrivilege
call fcn.1400ffc40
mov edx, 0x80030013
mov ecx, 6
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140182e08
mov rax, qword [0x1403fd7a8]
test rax, rax
je 0x140182e08
mov byte [rax + 0x265], 1
mov rax, qword [rdi]
mov rcx, rdi
add rsp, 0x40
pop rdi
jmp qword [rax + 0x120]