Function at 0x10007a670
Capabilities:
Persist via windows service
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, 0x138
mov qword [rsp + 0x110], 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
lea rcx, [rsp + 0xb8]
call fcn.100014450
nop
mov rax, qword [rsp + 0x160]
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 0x10007a708
jmp 0x10007ab38
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x148]
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 0x10007a75b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x10007a759
jmp 0x10007ab38
jmp 0x10007a763
mov dword [rsp + 0x78], 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, [0x100010df0]
lea rcx, [rsp + 0xd0]
call fcn.100018c00
nop
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x148]
lea rcx, [rsp + 0xd0]
call fcn.100048450
nop
lea rcx, [rsp + 0xd0]
call fcn.1000144b0
mov rdx, qword [0x1000a8800]
lea rcx, [rsp + 0xd8]
call fcn.100018c00
nop
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x50]
call fcn.100048450
nop
lea rcx, [rsp + 0xd8]
call fcn.1000144b0
lea rcx, [rsp + 0xb8]
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 0x10007a840
jmp 0x10007ab38
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 [0x1000a8808]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x10007a8b0
cmp dword [rsp + 0x64], 2
je 0x10007a890
jmp 0x10007ab38
cmp dword [rsp + 0x78], 0
je 0x10007a8ab
mov rdx, qword [0x1000a8810]
lea rcx, [rsp + 0x80]
call fcn.10004cd80
jmp 0x10007a99b
cmp dword [rsp + 0x78], 0
je 0x10007a99b
cmp dword [rsp + 0xb0], 0
je 0x10007a99b
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 + 0xe0], rax
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0xe0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x150]
cmp qword [rax], 0
jne 0x10007a918
jmp 0x10007ab38
mov rax, qword [rsp + 0x158]
mov ecx, dword [rsp + 0xb0]
mov dword [rax], ecx
mov eax, dword [rsp + 0xb0]
mov r8, rax
xor edx, edx
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x150]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1000a8808]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10007a983
jmp 0x10007ab38
mov rax, qword [rsp + 0x150]
mov rdx, qword [rax]
lea rcx, [rsp + 0x80]
call fcn.100054c80
lea rax, [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0xf0]
call fcn.1000148e0
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x80]
call fcn.1000508f0
test eax, eax
je 0x10007aa65
lea rcx, [rsp + 0x80]
call fcn.100064030
mov rdx, rax
lea rcx, [rsp + 0xc0]
call fcn.1000148e0
nop
lea rcx, [rsp + 0xc0]
call fcn.100013bb0
mov rdx, rax
mov rcx, qword [rsp + 0x140]
call fcn.100013e90
test eax, eax
je 0x10007aa45
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x168]
call fcn.100015fc0
mov rax, qword [rsp + 0x160]
mov dword [rax], 1
lea rcx, [rsp + 0xc0]
call fcn.1000144b0
jmp 0x10007ab25
mov rcx, qword [rsp + 0x140]
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 + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x10007aaaf
jmp 0x10007ab38
mov eax, dword [rsp + 0xb0]
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [0x1000a8808]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10007ab08
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10007ab38
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x100]
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 0x10007ab52
cmp qword [rsp + 0x68], 0
je 0x10007ab52
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x58], 0
je 0x10007ab65
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x108], eax
lea rcx, [rsp + 0xb8]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x50]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x80]
call fcn.100014300
mov eax, dword [rsp + 0x108]
add rsp, 0x138
ret