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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0x100], 0xfffffffffffffffe
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x80]
call fcn.1000141d0
nop
lea rcx, [rsp + 0x50]
call fcn.100014450
nop
mov rax, qword [rsp + 0x150]
mov dword [rax], 0
mov r8d, 0x80000000
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1000746fa
jmp 0x100074afa
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x138]
call fcn.100013bb0
mov r8d, 0x80000000
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x10007474d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x10007474b
jmp 0x100074afa
jmp 0x100074755
mov dword [rsp + 0x78], 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [0x1000a87e8]
lea rcx, [rsp + 0xc8]
call fcn.100018c00
nop
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0xc8]
call fcn.100048450
nop
lea rcx, [rsp + 0xc8]
call fcn.1000144b0
lea rcx, [rsp + 0x50]
call fcn.100013bb0
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1000747f2
jmp 0x100074afa
mov dword [rsp + 0xb0], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1000a87f0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x100074862
cmp dword [rsp + 0x64], 2
je 0x100074842
jmp 0x100074afa
cmp dword [rsp + 0x78], 0
je 0x10007485d
mov rdx, qword [0x1000a87f8]
lea rcx, [rsp + 0x80]
call fcn.10004cd80
jmp 0x10007494d
cmp dword [rsp + 0x78], 0
je 0x10007494d
cmp dword [rsp + 0xb0], 0
je 0x10007494d
mov eax, dword [rsp + 0xb0]
add rax, 4
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xb0]
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0xd0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x140]
cmp qword [rax], 0
jne 0x1000748ca
jmp 0x100074afa
mov rax, qword [rsp + 0x148]
mov ecx, dword [rsp + 0xb0]
mov dword [rax], ecx
mov eax, dword [rsp + 0xb0]
mov r8, rax
xor edx, edx
mov rax, qword [rsp + 0x140]
mov rcx, qword [rax]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x140]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1000a87f0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100074935
jmp 0x100074afa
mov rax, qword [rsp + 0x140]
mov rdx, qword [rax]
lea rcx, [rsp + 0x80]
call fcn.100054c80
lea rax, [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0xe0]
call fcn.1000148e0
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x80]
call fcn.1000508f0
test eax, eax
je 0x100074a27
lea rcx, [rsp + 0x80]
call fcn.100064030
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.1000148e0
nop
lea rcx, [rsp + 0xb8]
call fcn.100013bb0
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.100013e90
test eax, eax
je 0x1000749fb
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x158]
call fcn.100015fc0
mov rax, qword [rsp + 0x150]
mov dword [rax], 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0xb8]
call fcn.1000144b0
jmp 0x100074af2
mov rcx, qword [rsp + 0x130]
call fcn.100013bb0
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.10004cd80
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x80]
call fcn.10004b610
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x100074a71
jmp 0x100074afa
mov eax, dword [rsp + 0xb0]
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [0x1000a87f0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100074aca
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x100074afa
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x60], 1
cmp dword [rsp + 0x60], 0
jne 0x100074b14
cmp qword [rsp + 0x68], 0
je 0x100074b14
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x58], 0
je 0x100074b27
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0xf8], eax
lea rcx, [rsp + 0x50]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x80]
call fcn.100014300
mov eax, dword [rsp + 0xf8]
add rsp, 0x128
ret