Function at 0x10004ac20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r14, r9
mov rdi, r8
mov rbp, rdx
mov r13, rcx
and qword [rax - 0x80], 0
xor r12d, r12d
lea rcx, [rax - 0x60]
call fcn.100018ee8
nop
lea rcx, [rsp + 0x60]
call fcn.10001e06c
nop
mov r15, qword [rsp + 0x100]
and dword [r15], r12d
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x10004afb8
xor ebx, ebx
mov r8d, 0x80000000
mov rdx, qword [rbp]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
jne 0x10004acc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x10004afb8
jmp 0x10004acd3
mov ebx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, [0x100010690]
lea rcx, [rsp + 0x100]
call fcn.10001e134
nop
lea r8, [rsp + 0x60]
mov rdx, rbp
lea rcx, [rsp + 0x100]
call fcn.10002f9d0
nop
lea rcx, [rsp + 0x100]
call fcn.10001f3ec
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10004afb8
and dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rbp, [0x100010678]
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10004adca
cmp eax, 2
jne 0x10004afb8
test ebx, ebx
je 0x10004ae3f
mov r9, qword [rsp + 0x78]
xor r8d, r8d
lea rdx, [0x100010648]
lea rcx, [rsp + 0x78]
call fcn.10001f04c
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x10004adbb
mov qword [rcx + 8], rax
jmp 0x10004adc3
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], rax
jmp 0x10004ae3f
test ebx, ebx
je 0x10004ae3f
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x10004ae3f
add eax, 4
mov dword [rsp + 0x50], eax
mov ecx, eax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov qword [rdi], rax
test rax, rax
je 0x10004afb8
mov eax, dword [rsp + 0x50]
mov dword [r14], eax
mov r8, rax
xor edx, edx
mov rcx, qword [rdi]
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x50]
mov qword [rsp + 0x28], r11
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004afb8
mov rdx, qword [rdi]
lea rcx, [rsp + 0x78]
call fcn.10003de0c
lea rax, [rsp + 0x100]
mov qword [rsp + 0x70], rax
mov rdx, r13
lea rcx, [rsp + 0x100]
call fcn.10001e09c
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.100032ac4
test eax, eax
je 0x10004af1f
xor eax, eax
mov rdx, qword [rsp + 0x78]
test rdx, rdx
setne al
test eax, eax
jne 0x10004ae8e
mov ecx, 0x80004005
call fcn.10001f28c
int3
add rdx, 0x10
lea rcx, [rsp + 0x100]
call fcn.10001e09c
nop
xor ecx, ecx
mov rax, qword [rsp + 0x100]
test rax, rax
setne cl
test ecx, ecx
jne 0x10004aebf
mov ecx, 0x80004005
call fcn.10001f28c
int3
mov rcx, qword [r13]
sub rax, rcx
movzx edx, word [rcx]
cmp dx, word [rcx + rax]
jne 0x10004aedc
add rcx, 2
test dx, dx
jne 0x10004aec6
xor eax, eax
jmp 0x10004aee1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10004aefa
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x108]
call fcn.10001e1c8
mov dword [r15], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x100]
call fcn.10001f3ec
jmp 0x10004afb0
mov r9, qword [rsp + 0x78]
xor r8d, r8d
mov rdx, qword [r13]
lea rcx, [rsp + 0x78]
call fcn.10001f04c
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x10004af45
mov qword [rcx + 8], rax
jmp 0x10004af4d
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.100031ad4
mov rbx, rax
test rax, rax
je 0x10004afb8
mov eax, dword [rsp + 0x50]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 7
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10004af9d
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10004afb8
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12d, 1
jmp 0x10004afc8
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x10004afc8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x10004afd7
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rsp + 0x60]
call fcn.10001f3ec
nop
lea rcx, [rsp + 0x78]
call fcn.10001a784
mov eax, r12d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret