Function at 0x14000b0b0
Capabilities:
Query environment variable
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xbc8]
sub rsp, 0xcb0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rbp + 0xba0], rax
mov rbx, rcx
xor r14d, r14d
mov esi, r14d
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r14d
mov qword [rbp - 0x80], r14
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x70]
call fcn.14001a650
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x190]
call fcn.14001a650
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x790]
call fcn.14001a650
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x590]
call fcn.14001a650
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x390]
call fcn.14001a650
mov rcx, rbx
call fcn.140005bd0
test eax, eax
je 0x14000b60f
mov dword [rsp + 0x30], r14d
lea rdi, [0x140065980]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
lea r9, [rbp - 0x70]
lea r8, [0x1400476d0]
lea rdx, str.HKEY
mov rcx, rbx
call fcn.14000e830
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
lea r9, [rbp + 0x190]
lea r8, [0x1400476d0]
lea rdx, str.SubKey
mov rcx, rbx
call fcn.14000e830
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
lea r9, [rbp + 0x590]
lea r8, [0x1400476d0]
lea rdx, str.ValueName
mov rcx, rbx
call fcn.14000e830
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
lea r9, [rbp + 0x390]
lea r8, [0x1400476d0]
lea rdx, str.Data
mov rcx, rbx
call fcn.14000e830
lea rax, [rbp + 0x390]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x590]
lea r8, [rbp + 0x190]
lea rdx, [rbp - 0x70]
lea rcx, str._nCreating_Registry_Entry__s_s___s_s
call fcn.14000b8c0
lea rcx, [rbp - 0x70]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000b264
test rax, rax
jne 0x14000b284
lea rcx, str._nHKey_not_specified
call fcn.14001c2d0
jmp 0x14000b60f
lea rcx, [rbp + 0x190]
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000b290
test rax, rax
jne 0x14000b2b0
lea rcx, str._nSubKey_not_specified
call fcn.14001c2d0
jmp 0x14000b60f
lea rcx, [rbp + 0x590]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000b2c0
test rax, rax
jne 0x14000b2e0
lea rcx, str._nValueName_not_specified
call fcn.14001c2d0
jmp 0x14000b60f
lea rcx, [rbp + 0x390]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000b2f0
test rax, rax
jne 0x14000b310
lea rcx, str._nData_not_specified
call fcn.14001c2d0
jmp 0x14000b60f
lea rdx, str.HKEY_CLASSES_ROOT
lea rcx, [rbp - 0x70]
call fcn.14001b25c
test eax, eax
jne 0x14000b330
mov rcx, 0xffffffff80000000
jmp 0x14000b3df
lea rdx, str.HKEY_CURRENT_CONFIG
lea rcx, [rbp - 0x70]
call fcn.14001b25c
test eax, eax
jne 0x14000b350
mov rcx, 0xffffffff80000005
jmp 0x14000b3df
lea rdx, str.HKEY_CURRENT_USER
lea rcx, [rbp - 0x70]
call fcn.14001b25c
test eax, eax
jne 0x14000b36d
mov rcx, 0xffffffff80000001
jmp 0x14000b3df
lea rdx, str.HKEY_LOCAL_MACHINE
lea rcx, [rbp - 0x70]
call fcn.14001b25c
test eax, eax
jne 0x14000b38a
mov rcx, 0xffffffff80000002
jmp 0x14000b3df
lea rdx, str.HKEY_USERS
lea rcx, [rbp - 0x70]
call fcn.14001b25c
test eax, eax
jne 0x14000b3a7
mov rcx, 0xffffffff80000003
jmp 0x14000b3df
lea rdx, str.HKEY_PERFORMANCE_DATA
lea rcx, [rbp - 0x70]
call fcn.14001b25c
test eax, eax
jne 0x14000b3c4
mov rcx, 0xffffffff80000004
jmp 0x14000b3df
lea rdx, str.HKEY_DYN_DATA
lea rcx, [rbp - 0x70]
call fcn.14001b25c
test eax, eax
jne 0x14000b434
mov rcx, 0xffffffff80000006
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
xor r9d, r9d
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x20], r14d
xor r8d, r8d
lea rdx, [rbp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000b53f
mov ebx, r14d
mov rsi, qword [rsp + 0x58]
jmp 0x14000b53f
lea rdx, str.HKEY_DEFAULT_USER
lea rcx, [rbp - 0x70]
call fcn.14001b25c
test eax, eax
jne 0x14000b5f5
mov r8d, 0x104
lea rdx, [rbp + 0x990]
lea rcx, str.DEFAULT_USER
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rbp + 0x990]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x14000b471
mov rax, qword [str.NTUSER.DAT]
mov qword [rcx], rax
mov rax, qword [0x14004b1e0]
mov qword [rcx + 8], rax
mov rax, qword [0x14004b1e8]
mov qword [rcx + 0x10], rax
call fcn.14000df00
cmp eax, 1
jne 0x14000b53b
lea r8, [rbp + 0x990]
lea rdx, str.DefaultUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x14000b53b
lea r8, [rbp + 0x190]
lea rdx, str.DefaultUser_s
lea rcx, [rbp + 0x790]
call fcn.14001c9d4
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x790]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000b53f
mov ebx, r14d
mov rsi, qword [rsp + 0x60]
jmp 0x14000b53f
mov ebx, dword [rsp + 0x50]
test ebx, ebx
jne 0x14000b58c
lea rax, [rbp + 0x390]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14000b550
inc edi
lea eax, [rdi + rdi]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x390]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0x590]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
jmp 0x14000b5ad
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x190]
lea rcx, str._nError_Creating_Subkey_Entry__s_under__s
call fcn.14000b8c0
mov dword [0x1400667b8], 1
test ebx, ebx
je 0x14000b5c7
lea rcx, str._nError_Creating_Registry_Entry_at_CRegKey::SetValue
call fcn.14000b8c0
mov dword [0x1400667b8], 1
test rsi, rsi
je 0x14000b5d8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r14
cmp dword [rsp + 0x50], 0
jne 0x14000b60f
lea rdx, str.DefaultUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
jmp 0x14000b60f
lea rdx, [rbp - 0x70]
lea rcx, str._nError_Creating_Registry_Entry__s_is_invalid_hkey
call fcn.14000b8c0
mov dword [0x1400667b8], 1
test rsi, rsi
je 0x14000b61d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xba0]
xor rcx, rsp
call fcn.14001a120
lea r11, [rsp + 0xcb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret