Function at 0x1800190c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rdi, rcx
lea rcx, str.SYSTEMCurrentControlSetServices_
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
add ebx, ebx
lea r8d, [rbx + 2]
movsxd rcx, r8d
call fcn.1800251fc
xor r15d, r15d
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x58], r15d
test rax, rax
je 0x180019139
movsxd r8, ebx
lea rdx, str.SYSTEMCurrentControlSetServices_
mov rcx, rax
mov word [r8 + rax], r15w
mov dword [rsp + 0x58], ebx
call fcn.18002525c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x58]
mov rdx, rdi
lea r8d, [rax + rax]
call fcn.180005da0
lea rcx, str.SYSTEMCurrentControlSetServices_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
add ebx, ebx
lea ecx, [rbx + 2]
movsxd rcx, ecx
call fcn.1800251fc
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1800191a3
movsxd r8, ebx
lea rdx, str.SYSTEMCurrentControlSetServices_
mov rcx, rax
mov word [r8 + rax], r15w
mov dword [rsp + 0x38], ebx
call fcn.18002525c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x38]
mov rdx, rdi
lea r8d, [rax + rax]
call fcn.180005da0
lea rcx, str.Parameters
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, dword [rsp + 0x38]
mov r12d, eax
lea ecx, [rbx + 2]
movsxd rcx, ecx
add r12d, r12d
call fcn.1800251fc
mov r13d, r15d
mov rdi, rax
test rax, rax
je 0x1800191f3
mov r13d, ebx
mov word [rbx + rax], r15w
mov rsi, qword [rsp + 0x40]
mov r8, rbx
mov rcx, rax
mov rdx, rsi
call fcn.18002525c
add ebx, r12d
test rsi, rsi
je 0x180019216
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
lea eax, [rbx + 2]
movsxd rcx, eax
call fcn.1800251fc
mov rsi, rax
test rax, rax
je 0x180019255
movsxd rcx, ebx
movsxd rbx, r13d
mov rdx, rdi
mov word [rcx + rax], r15w
mov rcx, rax
mov r8, rbx
call fcn.18002525c
lea rcx, [rbx + rsi]
lea rdx, str.Parameters
movsxd r8, r12d
call fcn.18002525c
test rdi, rdi
je 0x180019262
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
cmp qword [0x180037b18], r15
mov dword [rbp + 0x1e8], 0x208
mov dword [rbp + 0x1e0], r15d
jne 0x1800192aa
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037b18], rax
test rax, rax
jne 0x1800192aa
mov ecx, r15d
jmp 0x1800192c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rbp + 0x1e0]
mov rcx, rax
call qword [0x180037b18]
mov ecx, r15d
test eax, eax
setne cl
mov rdi, qword [rsp + 0x60]
test ecx, ecx
lea rax, [rsp + 0x30]
mov dword [rbp + 0x1e0], ecx
mov r12d, 1
mov r13d, 0x101
mov r9d, r12d
mov rdx, rdi
mov rcx, 0xffffffff80000002
cmovne r9d, r13d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x18001934d
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1e8]
lea rdx, str.ServiceDll
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
je 0x18001944d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x180019453
cmp qword [0x180037b18], r15
mov dword [rbp + 0x1e8], 0x208
mov dword [rbp + 0x1e0], r15d
jne 0x18001939d
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037b18], rax
test rax, rax
jne 0x18001939d
mov ecx, r15d
jmp 0x1800193bb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rbp + 0x1e0]
mov rcx, rax
call qword [0x180037b18]
mov ecx, r15d
test eax, eax
setne cl
test ecx, ecx
lea rax, [rsp + 0x30]
mov dword [rbp + 0x1e0], ecx
cmovne r12d, r13d
mov rdx, rsi
mov rcx, 0xffffffff80000002
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x18001942b
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1e8]
lea rdx, str.ServiceDll
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test eax, eax
je 0x18001944d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x180019453
test rsi, rsi
je 0x18001943c
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
test rdi, rdi
je 0x180019449
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
mov eax, ebx
jmp 0x1800194a2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r14
mov ebx, eax
add ebx, ebx
mov edx, ebx
call fcn.180005b40
mov r12d, eax
test eax, eax
jne 0x180019485
mov rcx, qword [r14 + 8]
lea rdx, [rbp - 0x80]
movsxd r8, ebx
call fcn.18002525c
mov r12d, r15d
test rsi, rsi
je 0x180019492
mov rcx, rsi
call sub.KERNEL32.dll_LocalFree
test rdi, rdi
je 0x18001949f
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
mov eax, r12d
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret