Function at 0x10007e840
Capabilities:
Delete registry value
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, 0x118
mov qword [rsp + 0xf8], 0xfffffffffffffffe
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
call fcn.1000141d0
nop
mov rax, qword [rsp + 0x138]
mov dword [rax], 1
lea rcx, [rsp + 0x30]
call fcn.100014450
nop
lea rcx, [rsp + 0x88]
call fcn.100014450
nop
lea rdx, [0x100010df0]
lea rcx, [rsp + 0xb8]
call fcn.100018c00
nop
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0xb8]
call fcn.100048450
nop
lea rcx, [rsp + 0xb8]
call fcn.1000144b0
mov rdx, qword [0x1000a8800]
lea rcx, [rsp + 0xc0]
call fcn.100018c00
nop
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x30]
call fcn.100048450
nop
lea rcx, [rsp + 0xc0]
call fcn.1000144b0
lea rcx, [rsp + 0x88]
call fcn.100013bb0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10007e95d
jmp 0x10007ed3e
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1000a8808]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x10007e9c9
cmp dword [rsp + 0x38], 2
jne 0x10007e9c4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 1
jmp 0x10007ed3e
mov eax, dword [rsp + 0x80]
add rax, 4
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0xc8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x140]
cmp qword [rax], 0
jne 0x10007ea18
jmp 0x10007ed3e
mov rax, qword [rsp + 0x148]
mov ecx, dword [rsp + 0x80]
mov dword [rax], ecx
mov eax, dword [rsp + 0x80]
mov r8, rax
xor edx, edx
mov rax, qword [rsp + 0x140]
mov rcx, qword [rax]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x80]
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 [0x1000a8808]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10007ea83
jmp 0x10007ed3e
mov rax, qword [rsp + 0x140]
mov rdx, qword [rax]
lea rcx, [rsp + 0x50]
call fcn.100054c80
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0xd8]
call fcn.1000148e0
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x50]
call fcn.1000508f0
test eax, eax
jne 0x10007eaf0
jmp 0x10007ec5c
lea rcx, [rsp + 0x98]
call fcn.100014450
nop
lea rcx, [rsp + 0x90]
call fcn.100014450
nop
lea rcx, [rsp + 0x50]
call fcn.100013bb0
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.100013bc0
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.100015fc0
mov rcx, qword [rsp + 0x120]
call fcn.100013bb0
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.100013e90
test eax, eax
jne 0x10007ec21
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x50]
call fcn.100056c00
lea rcx, [rsp + 0x50]
call fcn.100013ba0
movzx eax, al
test eax, eax
jne 0x10007ec1f
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x130]
call fcn.100076b70
lea rcx, [rsp + 0x50]
call fcn.100013bb0
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x50]
call fcn.100013bc0
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.100015fc0
mov rdx, qword [0x1000a8810]
lea rcx, [rsp + 0x90]
call fcn.100013e90
test eax, eax
jne 0x10007ec1f
mov rdx, qword [0x1000a8810]
lea rcx, [rsp + 0xa8]
call fcn.100018c00
nop
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x50]
call fcn.100056c00
nop
lea rcx, [rsp + 0xa8]
call fcn.1000144b0
jmp 0x10007ec41
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x50]
call fcn.100056c00
mov rax, qword [rsp + 0x138]
mov dword [rax], 0
lea rcx, [rsp + 0x90]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x98]
call fcn.1000144b0
lea rcx, [rsp + 0x50]
call fcn.100013ba0
movzx eax, al
test eax, eax
jne 0x10007ed13
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.10004b610
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
jne 0x10007ec9b
jmp 0x10007ed3e
mov eax, dword [rsp + 0x80]
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [0x1000a8808]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10007ecf4
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10007ed3e
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
jmp 0x10007ed2b
mov rdx, qword [0x1000a8808]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10007ed2b
jmp 0x10007ed3e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x48], 1
cmp dword [rsp + 0x48], 0
jne 0x10007ed58
cmp qword [rsp + 0x40], 0
je 0x10007ed58
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0xf0], eax
lea rcx, [rsp + 0x88]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x30]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x50]
call fcn.100014300
mov eax, dword [rsp + 0xf0]
add rsp, 0x118
ret