Function at 0x18000fc94
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x180019018]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov r13, qword [r8 + 8]
mov r12, rdx
mov qword [rsp + 0x48], rcx
mov edi, 0x208
mov r8d, edi
lea rcx, [rsp + 0x50]
xor edx, edx
call sub.msvcrt.dll_memset
xor esi, esi
lea rcx, [rbp + 0x160]
mov r8d, edi
mov dword [rsp + 0x30], esi
xor edx, edx
call sub.msvcrt.dll_memset
or rdi, 0xffffffffffffffff
mov rbx, rdi
inc rbx
cmp word [r12 + rbx*2], si
jne 0x18000fd02
add ebx, 8
mov ecx, 0x40
mov r14d, ebx
lea r15, [rbx + rbx]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x18000febb
mov r8, r15
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, str.Auth
mov edx, r14d
mov qword [rsp + 0x28], rax
lea r8d, [rbx - 1]
lea r9, [0x1800150f8]
mov qword [rsp + 0x20], r12
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__snwprintf_s]
nop dword [rax + rax]
mov r14, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
mov rcx, r14
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor r15d, r15d
mov ebx, eax
test eax, eax
jne 0x18000fe74
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r12, str.User
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0x206
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x18000fe63
cmp dword [rsp + 0x40], 1
jne 0x18000fe63
mov eax, dword [rsp + 0x30]
and rax, 0xfffffffffffffffe
cmp rax, 0x208
jae 0x18000ff99
mov rcx, qword [rsp + 0x38]
mov rdx, r12
mov word [rsp + rax + 0x50], r15w
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
lea rax, [rsp + 0x50]
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x18000fe27
mov rcx, qword [rsp + 0x38]
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 3
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop dword [rax + rax]
test ebx, ebx
jne 0x18000fee6
cmp dword [rsp + 0x30], 1
jbe 0x18000fee6
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x50]
call fcn.18000e390
lea r8, [rbp + 0x160]
lea rcx, [r13 + 0x10]
mov edx, 0x104
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.180001570
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x18000ff66
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.DefaultUserName
lea rax, [rsp + 0x50]
mov word [rsp + 0x50], r15w
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x206
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x18000febb
cmp dword [rsp + 0x30], 1
jbe 0x18000febb
mov eax, dword [rsp + 0x30]
and rax, 0xfffffffffffffffe
cmp rax, 0x208
jae 0x18000ff99
mov word [rsp + rax + 0x50], r15w
lea r8, [rsp + 0x50]
jmp 0x18000fea6
call fcn.180001748
int3