Function at 0x100077790
Capabilities:
Delete registry key
Persist via windows service
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x4c], 1
mov rax, qword [rsp + 0x110]
mov dword [rax], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x80], 0
lea rcx, [rsp + 0x30]
call fcn.100014450
nop
lea rcx, [rsp + 0x88]
call fcn.100014450
nop
lea rdx, [0x100010df0]
lea rcx, [rsp + 0xa0]
call fcn.100018c00
nop
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0xf0]
lea rcx, [rsp + 0xa0]
call fcn.100048450
nop
lea rcx, [rsp + 0xa0]
call fcn.1000144b0
mov rdx, qword [0x1000a8800]
lea rcx, [rsp + 0xa8]
call fcn.100018c00
nop
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x30]
call fcn.100048450
nop
lea rcx, [rsp + 0xa8]
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]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x100077916
cmp dword [rsp + 0x38], 2
je 0x1000778f5
mov rax, qword [rsp + 0xf0]
mov r9, qword [rax]
mov r8d, dword [rsp + 0x38]
lea rdx, [0x10000f3a0]
mov ecx, 3
call fcn.100053cc0
mov dword [rsp + 0x48], 0
jmp 0x1000779a1
mov rax, qword [rsp + 0xf0]
mov r8, qword [rax]
lea rdx, [0x10000f2d0]
mov ecx, 1
call fcn.100053cc0
jmp 0x1000779a1
cmp qword [rsp + 0x100], 0
jne 0x100077930
mov dword [rsp + 0x80], 1
jmp 0x1000779a1
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x100]
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]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x100077999
mov rax, qword [rsp + 0xf0]
mov r9, qword [rax]
mov r8d, dword [rsp + 0x38]
lea rdx, [0x10000f210]
mov ecx, 3
call fcn.100053cc0
mov dword [rsp + 0x48], 0
jmp 0x1000779a1
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0x40], 0
je 0x1000779b4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x80], 0
je 0x100077a96
lea rcx, [rsp + 0x88]
call fcn.100013bb0
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x90], 0
mov r8d, 0x80000000
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x100077a96
mov rcx, qword [rsp + 0xf0]
call fcn.100013bb0
mov r8d, 0x80000000
mov rdx, rax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x100077a7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x100077a78
lea rcx, [rsp + 0x30]
call fcn.100013bb0
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x100077a88
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [rsp + 0x50]
call fcn.1000141d0
nop
cmp qword [rsp + 0x100], 0
je 0x100077abe
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x50]
call fcn.100054c80
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xb8]
call fcn.1000148e0
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
mov r9, qword [rsp + 0x110]
lea r8, [rsp + 0x50]
mov edx, dword [rsp + 0xf8]
mov rcx, qword [rsp + 0xd8]
call fcn.10007c680
test eax, eax
jne 0x100077b3b
lea rdx, [0x10000f1a0]
mov ecx, 3
call fcn.100053cc0
mov dword [rsp + 0x4c], 0
jmp 0x100077b43
mov dword [rsp + 0x4c], 1
cmp dword [rsp + 0x48], 0
je 0x100077b51
cmp dword [rsp + 0x4c], 0
jne 0x100077b5b
mov dword [rsp + 0x38], 0x643
jmp 0x100077b63
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0xc0], eax
lea rcx, [rsp + 0x50]
call fcn.100014300
nop
lea rcx, [rsp + 0x88]
call fcn.1000144b0
nop
lea rcx, [rsp + 0x30]
call fcn.1000144b0
mov eax, dword [rsp + 0xc0]
add rsp, 0xe8
ret