Function at 0x180012380
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 qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
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 0x1800123fa
movsxd r8, ebx
lea rdx, str.SYSTEMCurrentControlSetServices_
mov rcx, rax
mov word [r8 + rax], r15w
mov dword [rsp + 0x58], ebx
call fcn.18001ca04
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x58]
mov rdx, rdi
lea r8d, [rax + rax]
call fcn.1800046d0
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 qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x180012465
movsxd r8, ebx
lea rdx, str.SYSTEMCurrentControlSetServices_
mov rcx, rax
mov word [r8 + rax], r15w
mov dword [rsp + 0x38], ebx
call fcn.18001ca04
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x38]
mov rdx, rdi
lea r8d, [rax + rax]
call fcn.1800046d0
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 qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov r13d, r15d
mov rdi, rax
test rax, rax
je 0x1800124b6
mov r13d, ebx
mov word [rbx + rax], r15w
mov rsi, qword [rsp + 0x40]
mov r8, rbx
mov rcx, rax
mov rdx, rsi
call fcn.18001ca04
add ebx, r12d
test rsi, rsi
je 0x1800124da
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
lea eax, [rbx + 2]
movsxd rcx, eax
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rsi, rax
test rax, rax
je 0x18001251a
movsxd rcx, ebx
movsxd rbx, r13d
mov rdx, rdi
mov word [rcx + rax], r15w
mov rcx, rax
mov r8, rbx
call fcn.18001ca04
lea rcx, [rbx + rsi]
lea rdx, str.Parameters
movsxd r8, r12d
call fcn.18001ca04
test rdi, rdi
je 0x180012528
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp qword [0x18002a838], r15
mov dword [rbp + 0x1e8], 0x208
mov dword [rbp + 0x1e0], r15d
jne 0x180012576
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 [0x18002a838], rax
test rax, rax
jne 0x180012576
mov eax, r15d
mov dword [rbp + 0x1e0], eax
jmp 0x1800125a1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rbp + 0x1e0]
mov rcx, rax
call qword [0x18002a838]
test eax, eax
jne 0x18001259b
mov eax, r15d
mov dword [rbp + 0x1e0], eax
jmp 0x1800125a1
mov eax, dword [rbp + 0x1e0]
mov rdi, qword [rsp + 0x60]
test eax, eax
lea rax, [rsp + 0x30]
mov r12d, 1
mov r13d, 0x101
mov rcx, 0xffffffff80000002
mov r9d, r12d
mov rdx, rdi
mov qword [rsp + 0x20], rax
cmovne r9d, r13d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x180012620
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 0x18001272f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x180012735
cmp qword [0x18002a838], r15
mov dword [rbp + 0x1e8], 0x208
mov dword [rbp + 0x1e0], r15d
jne 0x180012676
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 [0x18002a838], rax
test rax, rax
jne 0x180012676
mov eax, r15d
mov dword [rbp + 0x1e0], eax
jmp 0x1800126a1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rbp + 0x1e0]
mov rcx, rax
call qword [0x18002a838]
test eax, eax
jne 0x18001269b
mov eax, r15d
mov dword [rbp + 0x1e0], eax
jmp 0x1800126a1
mov eax, dword [rbp + 0x1e0]
test eax, eax
lea rax, [rsp + 0x30]
mov rdx, rsi
cmovne r12d, r13d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x18001270b
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 0x18001272f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x180012735
test rsi, rsi
je 0x18001271d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
test rdi, rdi
je 0x18001272b
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
jmp 0x180012786
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.180004470
mov r12d, eax
test eax, eax
jne 0x180012767
mov rcx, qword [r14 + 8]
lea rdx, [rbp - 0x80]
movsxd r8, ebx
call fcn.18001ca04
mov r12d, r15d
test rsi, rsi
je 0x180012775
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
test rdi, rdi
je 0x180012783
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
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