Function at 0x14002460c
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov rax, qword [0x1400b8288]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor ebx, ebx
mov qword [rbp - 0x11], r8
mov dword [rbp - 0x29], 1
xorps xmm0, xmm0
mov qword [rbp - 0x21], rbx
mov r14, rdx
mov byte [rbp - 0x39], bl
lea r12, str.WindowsSystem32configSYSTEM
mov qword [rbp - 0x31], rbx
movups xmmword [rbp + 7], xmm0
test rdx, rdx
je 0x14002494d
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rdx + rdi*2], bx
jne 0x14002466c
mov r15d, 0x1f
test edi, edi
je 0x140024697
lea ecx, [rdi - 1]
lea eax, [r15 + 0x3d]
cmp ax, word [rdx + rcx*2]
jne 0x140024697
lea r12, [0x1400a2152]
lea r15d, [rax - 0x3e]
mov rcx, qword gs:[0x60]
lea eax, [rdi + 1]
add eax, r15d
mov edx, 8
mov r13d, eax
mov rcx, qword [rcx + 0x30]
lea r8, [rax*2]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x1400246e3
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 8
jmp 0x14002495d
lea rax, [rbp - 9]
mov r9d, edi
mov qword [rsp + 0x28], rax
mov r8, r14
lea rax, [rbp - 1]
mov rdx, r13
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000c208
mov edi, eax
test eax, eax
js 0x14002491e
mov rdx, qword [rbp - 9]
mov r8, r12
mov rcx, qword [rbp - 1]
mov r9d, r15d
call fcn.14000107c
mov edi, eax
test eax, eax
js 0x14002491e
mov rax, qword gs:[0x30]
lea r9, [rbp - 0x39]
xor r8d, r8d
mov dl, 1
mov dword [rax + 0x68], ebx
lea r15d, [r8 + 0x12]
mov ecx, r15d
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x140024789
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
cmp eax, 0x13d
je 0x140024965
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov edi, eax
jmp 0x140024965
lea rcx, [rbp + 7]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
nop dword [rax + rax]
test eax, eax
je 0x1400247b2
mov ecx, eax
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
nop dword [rax + rax]
mov edi, eax
jmp 0x1400248ff
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 7]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
jne 0x14002479d
cmp qword [rbp - 0x31], rbx
jne 0x1400247d8
lea edi, [rax + 0xe]
jmp 0x1400248ff
mov rdx, qword [rbp - 0x31]
mov r14, 0xffffffff80000002
mov rcx, r14
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x1400248ff
mov rdx, qword [rbp - 0x31]
lea rax, [rbp - 0x21]
mov r9d, 0x2001b
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x1400248ec
mov rcx, qword [rbp - 0x21]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x40], rbx
lea rdx, str.Setup
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x1400248cc
mov rdx, qword [rbp - 0x11]
mov rcx, qword [rbp - 0x19]
cmp dword [rbp - 0x29], ebx
jne 0x140024897
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov edi, eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400248bc
mov edi, ebx
jmp 0x1400248bc
mov r9d, 4
lea rax, [rbp - 0x29]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x31]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
nop dword [rax + rax]
cmp byte [rbp - 0x39], bl
jne 0x140024965
lea r9, [rbp - 0x39]
xor r8d, r8d
xor edx, edx
mov ecx, r15d
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
nop dword [rax + rax]
jmp 0x140024965
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rax, qword gs:[0x30]
movzx ecx, di
mov dword [rax + 0x68], ecx
jmp 0x14002495d
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], 0x57
mov rsi, rbx
mov edi, 0xe
cmp qword [rbp - 0x31], rbx
je 0x14002497b
lea rcx, [rbp - 0x31]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
test rsi, rsi
je 0x1400249a0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test edi, edi
je 0x1400249b4
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140096bd0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret