Function at 0x140175fd0
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x6e8]
sub rsp, 0x7e8
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x6d0], rax
mov r14, rcx
lea rcx, [rbp - 0x6c]
xor edx, edx
mov r8d, 0x118
call fcn.1402bfa30
lea rcx, [rbp - 0x70]
mov dword [rbp - 0x70], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140176025
or eax, 0xffffffff
jmp 0x14017637e
cmp byte [rbp + 0xaa], 1
je 0x140176035
xor eax, eax
jmp 0x14017637e
lea rax, [rsp + 0x68]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14017601d
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x808], rbx
mov qword [rsp + 0x810], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x818], rdi
mov qword [rsp + 0x7e0], r15
xor r15d, r15d
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
xor edx, edx
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, r15d
cmp dword [rsp + 0x60], r15d
jbe 0x140176347
nop word [rax + rax]
mov rcx, qword [rsp + 0x68]
lea r8, [rbp + 0xb0]
mov r9d, 0x100
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14017633b
lea rax, [rbp - 0x78]
lea rdx, [rbp + 0xb0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140176135
mov rcx, qword [rbp - 0x78]
jmp 0x140176335
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x80]
lea rdx, [rbp + 0xb0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14017633b
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2b0]
lea rdx, str.ProfileImagePath
xor r8d, r8d
mov dword [rsp + 0x64], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140176331
mov eax, dword [rsp + 0x64]
shr rax, 1
add rax, rax
cmp rax, 0x208
jae 0x140176398
cmp dword [rsp + 0x70], 2
mov word [rbp + rax + 0x2b0], r15w
jne 0x14017621c
lea rcx, [rbp + 0x2b0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
lea ecx, [rax + 2]
add rcx, rcx
call fcn.1402b7390
mov rbx, rax
test rax, rax
je 0x14017621c
lea rcx, [rbp + 0x2b0]
mov r8d, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp + 0x2b0]
mov r8, rbx
mov edx, 0x104
call fcn.1402b6e28
mov rcx, rbx
call fcn.1402b7350
lea r8, [rbp + 0x2b0]
lea rcx, [rbp + 0x4c0]
mov edx, 0x104
call fcn.1402b6e28
lea r8, [0x140345f98]
lea rcx, [rbp + 0x4c0]
mov edx, 0x104
call fcn.1402b9308
lea r8, str.NTUSER.DAT
lea rcx, [rbp + 0x4c0]
mov edx, 0x104
call fcn.1402b9308
lea r8, [rbp + 0x4c0]
lea rdx, [rbp + 0xb0]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x14017630f
lea rcx, [rbp + 0xb0]
call fcn.1402b9ff0
mov rcx, qword [r14 + 0x10]
mov rdi, rax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x78]
cmp rax, rcx
jae 0x1401762ed
mov rdx, qword [r14 + 8]
lea rax, [rsp + 0x78]
cmp rdx, rax
ja 0x1401762ed
lea rdi, [rsp + 0x78]
sub rdi, rdx
sar rdi, 3
cmp rcx, qword [r14 + 0x18]
jne 0x1401762d2
lea rcx, [r14 + 8]
call fcn.1400bb350
mov rdx, qword [r14 + 0x10]
test rdx, rdx
je 0x1401762e6
mov rax, qword [r14 + 8]
mov rcx, qword [rax + rdi*8]
mov qword [rdx], rcx
add qword [r14 + 0x10], 8
jmp 0x140176331
cmp rcx, qword [r14 + 0x18]
jne 0x1401762fc
lea rcx, [r14 + 8]
call fcn.1400bb350
mov rax, qword [r14 + 0x10]
test rax, rax
je 0x140176308
mov qword [rax], rdi
add qword [r14 + 0x10], 8
jmp 0x140176331
cmp eax, 3
je 0x140176331
lea r9, [rbp + 0x4c0]
lea rdx, [rbp + 0xb0]
lea rcx, str.Hive:__s_error__d_r_n_s
mov r8d, eax
call fcn.1402b9694
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [rsp + 0x60]
jb 0x1401760e0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [r14 + 0x10]
mov rdi, qword [rsp + 0x818]
sub rax, qword [r14 + 8]
mov rsi, qword [rsp + 0x810]
mov rbx, qword [rsp + 0x808]
mov r15, qword [rsp + 0x7e0]
sar rax, 3
mov rcx, qword [rbp + 0x6d0]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x7e8
pop r14
pop rbp
ret
call fcn.1402b8d20
int3