Function at 0x1800168d0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1801003f0]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rdx, qword [str.SYSTEMCurrentControlSetServices.Winhlpsvr]
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x180016d0a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, [0x1800c74cc]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0x110
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x1801161a0], 0
je 0x18001697d
lea r9, str.InstallWinhlpsvr_1___lu_
lea r8, str.WatchDog
lea rcx, [0x1801160e8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.180011c50
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, [0x1800c748c]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 2
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x1801161a0], 0
je 0x1800169de
lea r9, str.InstallWinhlpsvr_2___lu_
lea r8, str.WatchDog
lea rcx, [0x1801160e8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.180011c50
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, str.ErrorControl
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x1801161a0], 0
je 0x180016a3f
lea r9, str.InstallWinhlpsvr_3___lu_
lea r8, str.WatchDog
lea rcx, [0x1801160e8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.180011c50
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x50], 0
call fcn.1800369b0
lea rdx, str.Windows_Helper_Service
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x104
call fcn.18003756c
mov r11d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r11d
lea rdx, str.DisplayName
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x1801161a0], 0
je 0x180016aca
lea r9, str.InstallWinhlpsvr_4___lu_
lea r8, str.WatchDog
lea rcx, [0x1801160e8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.180011c50
lea rdx, str.OcularServices
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x104
call fcn.18003756c
mov r11d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r11d
lea rdx, str.Group
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x1801161a0], 0
je 0x180016b3e
lea r9, str.InstallWinhlpsvr_5___lu_
lea r8, str.WatchDog
lea rcx, [0x1801160e8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.180011c50
lea rdx, str.LocalSystem
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x104
call fcn.18003756c
mov r11d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r11d
lea rdx, str.ObjectName
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x1801161a0], 0
je 0x180016bb2
lea r9, str.InstallWinhlpsvr_6___lu_
lea r8, str.WatchDog
lea rcx, [0x1801160e8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.180011c50
lea rcx, [rbp + 0x171]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x170], 0
call fcn.1800369b0
lea rcx, [rbp + 0x170]
mov edx, 0x104
call fcn.180009170
test eax, eax
je 0x180016cfd
lea rcx, [rbp + 0x61]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0x104
mov byte [rbp + 0x60], 0
call fcn.1800369b0
mov rcx, qword [rsp + 0x38]
lea r11, [rsp + 0x30]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x40]
lea rdx, str.ImagePath
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [0x1801161a0], 0
je 0x180016c6d
lea rcx, [rbp + 0x60]
lea r9, str.InstallWinhlpsvr_7___lu____S__
lea r8, str.WatchDog
mov qword [rsp + 0x28], rcx
lea rcx, [0x1801160e8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.180011c50
lea r9, [0x1800c6508]
lea r8, [rbp + 0x170]
lea rdx, str.__s_s_
lea rcx, [rsp + 0x50]
call fcn.18003756c
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.180038268
test eax, eax
je 0x180016cfd
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rdx, str.ImagePath
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x1801161a0], 0
je 0x180016cfd
lea r9, str.InstallWinhlpsvr_8___lu_
lea r8, str.WatchDog
lea rcx, [0x1801160e8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.180011c50
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180016d32
cmp dword [0x1801161a0], 0
je 0x180016d32
lea r9, str.CMonitorThread::CheckService_8
lea r8, str.WatchDog
lea rcx, [0x1801160e8]
mov edx, 0xf
call fcn.180011c50
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.180036980
add rsp, 0x390
pop rbp
ret