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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf60]
mov eax, 0x1060
call fcn.140018740
sub rsp, rax
mov rax, qword [0x1400390f8]
xor rax, rsp
mov qword [rbp + 0xf50], rax
movdqa xmm0, xmmword [0x140031770]
lea r14, [rsp + 0x40]
mov r15d, 1
sub r14, rcx
mov rdi, rcx
mov byte [0x1400502b9], r15b
movdqu xmmword [rsp + 0x40], xmm0
xor r12d, r12d
lea esi, [r15 + 1]
lea ebx, [rsi + 0x1e]
mov rcx, qword [r14 + rdi]
lea rax, [rsp + 0x38]
mov r9d, 0x2000000
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftCommand_Processor
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ad99
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DisableUNCCheck
mov dword [rsp + 0x34], 0x1000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14001a0ec
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x34], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.EnableExtensions
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000abb4
cmp dword [rsp + 0x30], 4
jne 0x14001a129
cmp dword [rsp + 0x50], r12d
setne byte [0x1400502b9]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x34], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DelayedExpansion
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14001a14e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x34], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DefaultColor
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ac43
cmp dword [rsp + 0x30], 4
jne 0x14001a18b
movzx eax, word [rsp + 0x50]
mov word [0x1400398a8], ax
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x34], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CompletionChar
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000acb3
cmp dword [rsp + 0x30], 4
jne 0x14001a1ac
movzx ecx, word [rsp + 0x50]
mov word [0x14003912c], cx
movzx eax, cx
mov edx, 0xffe0
sub ax, r15w
test dx, ax
jne 0x14000ade2
cmp cx, 0xd
je 0x14000ade2
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x34], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PathCompletionChar
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001a20e
cmp dword [rsp + 0x30], 4
jne 0x14001a1dd
movzx ecx, word [rsp + 0x50]
mov word [0x140039128], cx
movzx eax, cx
mov edx, 0xffe0
sub ax, r15w
test dx, ax
jne 0x14000adee
cmp cx, 0xd
je 0x14000adee
movzx eax, word [0x14003912c]
cmp ax, bx
jne 0x14000adfd
cmp cx, bx
jb 0x14001a21a
jne 0x14000ad50
cmp ax, bx
cmovb cx, ax
mov word [0x140039128], cx
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x34], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AutoRun
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x14001a226
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
add rdi, 8
sub rsi, r15
jne 0x14000aaf4
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_time]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_srand]
mov rcx, qword [rbp + 0xf50]
xor rcx, rsp
call fcn.1400173b0
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov word [0x14003912c], bx
jmp 0x14000acb3
movzx ecx, bx
mov word [0x140039128], bx
jmp 0x14000ad27
cmp cx, bx
jmp 0x14000ad40
cmp dword [rsp + 0x30], 4
jne 0x14001a104
cmp dword [rsp + 0x50], r12d
setne byte [0x140054ba0]
jmp 0x14000ab63
cmp dword [rsp + 0x30], r15d
jne 0x14000ab63
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
cmp eax, r15d
sete byte [0x140054ba0]
jmp 0x14000ab63
cmp dword [rsp + 0x30], r15d
jne 0x14000abb4
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
cmp eax, r15d
sete byte [0x1400502b9]
jmp 0x14000abb4
cmp dword [rsp + 0x30], 4
jne 0x14001a166
cmp dword [rsp + 0x50], r12d
setne byte [0x1400502b8]
jmp 0x14000abf2
cmp dword [rsp + 0x30], r15d
jne 0x14000abf2
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
cmp eax, r15d
sete byte [0x1400502b8]
jmp 0x14000abf2
cmp dword [rsp + 0x30], r15d
jne 0x14000ac43
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
nop
jmp 0x14000ac3c
cmp dword [rsp + 0x30], r15d
jne 0x14001a1d1
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
mov ecx, eax
mov word [0x14003912c], ax
jmp 0x14000ac94
movzx ecx, word [0x14003912c]
jmp 0x14000ac94
cmp dword [rsp + 0x30], r15d
jne 0x14001a202
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
mov ecx, eax
mov word [0x140039128], ax
jmp 0x14000ad08
movzx ecx, word [0x140039128]
jmp 0x14000ad08
movzx ecx, word [0x140039128]
jmp 0x14000ad27
mov word [0x14003912c], cx
jmp 0x14000ad50
cmp dword [rsp + 0x30], 2
jne 0x14001a276
mov ecx, dword [rsp + 0x34]
lea rbx, [rsp + 0x54]
shr ecx, 1
mov r8d, 0x7fe
sub r8d, ecx
lea rbx, [rbx + rcx*2]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001a26b
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, 0x800
call fcn.140011620
jmp 0x14001a271
mov word [rsp + 0x50], r12w
mov ebx, 0x20
cmp word [rsp + 0x50], r12w
je 0x14000ad8e
lea rcx, [rsp + 0x50]
call fcn.14000d340
mov qword [rdi], rax
jmp 0x14000ad8e