Function at 0x10000ee4c
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x10001d1d0]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edi, edi
mov rbx, rcx
mov rcx, qword [rcx + 8]
lea edx, [rdi + 0x25]
mov r15d, edi
mov qword [rsp + 0x48], rdi
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbp, rax
cmp rax, rdi
je 0x10000ef3b
mov edx, 0x208
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
cmp rax, rdi
je 0x10000f268
mov rcx, qword [rbx + 8]
mov esi, 0x104
mov rdx, rax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x30], eax
cmp eax, edi
je 0x10000eed7
cmp eax, esi
jbe 0x10000ef2e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x30]
cmp eax, edi
je 0x10000f268
lea edx, [rax + 1]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
cmp rax, rdi
je 0x10000f268
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rbx + 8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x30], eax
cmp eax, edi
jne 0x10000ef2e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10000f268
mov rax, qword [rbx + 8]
mov qword [rbx + 8], rbp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10000f268
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x30], 0x100
lea rsi, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, edi
je 0x10000effc
cmp eax, 3
je 0x10000f0bc
cmp eax, 2
je 0x10000f0bc
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x38]
mov rsi, rax
cmp rax, rdi
je 0x10000f262
mov rdx, qword [rbx]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, edi
jne 0x10000f233
mov eax, dword [rsp + 0x30]
mov r12, rsi
mov r14, rsi
shr rax, 1
mov word [rsi + rax*2 - 2], di
cmp rsi, rdi
je 0x10000f134
mov eax, 0x2c
cmp word [r12], di
je 0x10000f134
mov edx, eax
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcschr]
mov r12, rax
cmp rax, rdi
je 0x10000f03d
mov word [rax], di
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, edi
jne 0x10000f115
mov eax, dword [rbx + 0x10]
cmp eax, edi
je 0x10000f233
cmp eax, 1
je 0x10000f233
cmp eax, 2
jne 0x10000f115
cmp r12, rdi
je 0x10000f106
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [r12 + 2]
repne scasw ax, word [rdi]
mov eax, dword [rsp + 0x30]
not rcx
shr rax, 1
mov edx, ecx
add rax, rax
sub rax, r12
lea rcx, [rax + rsi - 2]
sar rcx, 1
cmp edx, ecx
cmovb ecx, edx
lea rdx, [r12 + 2]
mov r8d, ecx
mov rcx, r14
add r8, r8
call sub.msvcrt.dll_memmove
xor edi, edi
jmp 0x10000f10a
cmp dword [rbx + 0x10], edi
je 0x10000f0cb
cmp dword [rbx + 0x10], 1
jne 0x10000f25d
mov r8, qword [rbx + 8]
mov rdx, qword [rbx]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
mov r9d, 1
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
jmp 0x10000f25d
mov word [r14], di
mov eax, 0x2c
lea r15d, [rax - 0x2b]
jmp 0x10000f12b
cmp r12, rdi
je 0x10000f134
mov eax, 0x2c
mov word [r12], ax
add r12, 2
mov r14, r12
cmp r12, rdi
jne 0x10000f01c
cmp dword [rbx + 0x10], 1
je 0x10000f143
cmp dword [rbx + 0x10], edi
jne 0x10000f1fa
mov rdi, qword [rbx + 8]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
mov eax, dword [rsp + 0x30]
not rcx
lea r14, [rax + rcx*2 + 2]
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
xor edi, edi
mov r12, rax
cmp rax, rdi
je 0x10000f1fa
mov word [rax], di
cmp dword [rbx + 0x10], 1
jne 0x10000f1a7
mov r8, qword [rbx + 8]
mov rdi, r14
mov rcx, rax
shr rdi, 1
mov rdx, rdi
call fcn.100006764
lea r8, [0x100018bcc]
mov rdx, rdi
mov rcx, r12
call fcn.1000016b4
xor edi, edi
shr r14, 1
mov r8, rsi
mov rcx, r12
mov rdx, r14
call fcn.1000016b4
cmp dword [rbx + 0x10], edi
jne 0x10000f1de
lea r8, [0x100018bcc]
mov rdx, r14
mov rcx, r12
call fcn.1000016b4
mov r8, qword [rbx + 8]
mov rdx, r14
mov rcx, r12
call fcn.1000016b4
lea rax, [rsp + 0x50]
cmp rsi, rax
je 0x10000f1f1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, r12
mov r15d, 1
cmp r15d, edi
je 0x10000f233
mov rdx, qword [rbx]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
mov r9d, 1
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
xor edi, edi
lea rax, [rsp + 0x50]
cmp rsi, rax
je 0x10000f246
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rbp, rdi
je 0x10000f25d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x48]
mov qword [rbx + 8], rdx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.100001000
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret