Function at 0x10000efc8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x10003c108]
xor rax, rsp
mov qword [rsp + 0x180], rax
and qword [rsp + 0x70], 0
and qword [rsp + 0x58], 0
xor eax, eax
and qword [rsp + 0x68], rax
mov rbx, rcx
lea rdx, [0x100002530]
lea rcx, [r11 - 0xa8]
mov r8d, 0x8e
mov dword [rsp + 0x50], 2
mov qword [r11 - 0x118], rax
mov qword [r11 - 0x110], rax
call sub.msvcrt.dll_memcpy
and dword [rsp + 0x88], 0
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0xf0]
lea edx, [r9 + 1]
mov dword [rsp + 0x78], 0x18
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x10000f068
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10000f2ba
mov rax, qword [rsp + 0x68]
lea rdx, [0x1000025c0]
xor r9d, r9d
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x10000f2ba
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x50]
lea rdx, [0x1000026a8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x10000f2ba
mov rcx, qword [rsp + 0x58]
lea rax, [0x1000023e8]
lea r9d, [rdi + 2]
lea rdx, [0x100002630]
xor r8d, r8d
mov dword [rsp + 0x28], 0xe
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x10000f2ba
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea r9d, [rdi + 4]
lea rdx, [0x100002650]
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x54], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x10000f2ba
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x54]
lea r9d, [rdi + 4]
lea rdx, [0x100002660]
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x54], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x10000f2ba
jmp 0x10000f2b1
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rsp + 0x58]
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x10000f29e
mov rax, qword [rbx + 8]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xa0]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x90], xmm0
call fcn.10000eec8
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0xa0]
lea r9d, [rdi + 1]
lea rdx, [0x100002680]
xor r8d, r8d
mov dword [rsp + 0x28], 0x4a
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11, qword [rbx + 0x18]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r11
lea rdx, [0x100002690]
mov r9d, 1
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x10000f2ae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x10000f1c2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x10000f2d5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x10000f2e5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.10002d830
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x190
pop rdi
ret