Function at 0x140015b10
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x150
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006dbd0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov ebx, r8d
xor r15d, r15d
cmp qword [rdx + 0x10], r15
jne 0x140015b98
lea edx, [r15 + 0x5c]
lea rcx, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
call fcn.140034460
test rax, rax
je 0x140015b6c
inc rax
jmp 0x140015b73
lea rax, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
mov rdx, rax
lea rcx, [0x14006f3f8]
call fcn.140011448
shl rax, 0x34
movabs rcx, 0x100500060006
or rax, rcx
jmp 0x14001601d
lea rcx, [rbp - 0x38]
call fcn.140004448
nop
mov rdi, r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
sub ebx, 2
je 0x140015cf5
cmp ebx, 1
je 0x140015c09
mov edx, 0x5c
lea rcx, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
call fcn.140034460
test rax, rax
je 0x140015bdd
inc rax
jmp 0x140015be4
lea rax, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
mov rdx, rax
lea rcx, [0x14006f3f8]
call fcn.140011448
mov rbx, rax
shl rbx, 0x34
movabs rax, 0x120500060001
jmp 0x140015da9
mov byte [rbp - 0x68], r15b
mov qword [rbp - 0x60], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
lea r9, [rbp - 0x60]
mov edx, 4
lea r8d, [rdx - 3]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x140015cc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3f0
jne 0x140015c58
mov byte [rbp - 0x68], 1
mov qword [rsp + 0x58], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2011f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftAppVISV
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140015cb6
mov ebx, r15d
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x60], rdi
lea rcx, [rbp - 0x68]
call fcn.140015600
jmp 0x140015d53
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x140015c54
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbp - 0x60], r15
jmp 0x140015c58
mov qword [rsp + 0x58], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2011f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftAppVISV
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140015d53
mov ebx, r15d
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x60], rdi
test ebx, ebx
je 0x140015db1
mov edx, 0x5c
lea rcx, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
call fcn.140034460
test rax, rax
je 0x140015d72
inc rax
jmp 0x140015d79
lea rax, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
mov rdx, rax
lea rcx, [0x14006f3f8]
call fcn.140011448
shl rax, 0x34
movzx ecx, bx
or ecx, 0x80070000
test ebx, ebx
cmovle ecx, ebx
mov ebx, ecx
or rbx, rax
movabs rax, 0x122500000000
or rbx, rax
jmp 0x140015fea
mov ebx, 0x208
mov ecx, ebx
call fcn.140002928
mov r14, rax
mov qword [rbp - 0x80], rax
lea rsi, [rax + 0x208]
mov qword [rbp - 0x70], rsi
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.1400345f0
mov qword [rbp - 0x78], rsi
mov dword [rsp + 0x50], 0x104
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
lea r9, [rsp + 0x50]
mov r8, r14
lea rcx, [rsp + 0x60]
call fcn.140015308
test eax, eax
jne 0x140015e54
lea edx, [rax + 0x5c]
lea rcx, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
call fcn.140034460
test rax, rax
je 0x140015e25
inc rax
jmp 0x140015e2c
lea rax, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
mov rdx, rax
lea rcx, [0x14006f3f8]
call fcn.140011448
mov rbx, rax
shl rbx, 0x34
movabs rax, 0x130500060002
or rbx, rax
jmp 0x140015fd2
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r15
mov word [rbp - 0x58], r15w
lea rcx, [rbp - 0x68]
call qword [sym.imp.ole32.dll_CoCreateGuid]
nop dword [rax + rax]
test eax, eax
jne 0x140015f61
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x68]
call fcn.14001ab48
test rax, rax
je 0x140015f61
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x58]
call fcn.14000864c
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
test rcx, rcx
je 0x140016047
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140015ec9
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140015f55
mov edx, 0x5c
lea rcx, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
call fcn.140034460
test rax, rax
je 0x140015f1c
inc rax
jmp 0x140015f23
lea rax, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
mov rdx, rax
lea rcx, [0x14006f3f8]
call fcn.140011448
shl rax, 0x34
movzx ecx, bx
or ecx, 0x80070000
test ebx, ebx
cmovle ecx, ebx
mov ebx, ecx
or rbx, rax
movabs rax, 0x142500000000
jmp 0x140015fa3
movabs rbx, 0x8000000000
jmp 0x140015fa6
mov edx, 0x5c
lea rcx, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
call fcn.140034460
test rax, rax
je 0x140015f7c
inc rax
jmp 0x140015f83
lea rax, str.admin_appman_appv_subsystemsendpoint_mapperendpoint_mapper.cpp
mov rdx, rax
lea rcx, [0x14006f3f8]
call fcn.140011448
mov rbx, rax
shl rbx, 0x34
movabs rax, 0x140500060003
or rbx, rax
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140015fc1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
call fcn.140002984
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
test r14, r14
je 0x140015fea
sub rsi, r14
sar rsi, 1
lea rdx, [rsi + rsi]
mov rcx, r14
call fcn.140002984
nop
test rdi, rdi
je 0x140015fff
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x14001601a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
call fcn.140002984
mov rax, rbx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140032b90
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140012ed8
int3