Function at 0x140015554
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.14001a5f0
sub rsp, rax
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rbp + 0xf50], rax
movdqa xmm0, xmmword [0x140035a60]
lea r14, [rsp + 0x40]
mov r15d, 1
sub r14, rcx
mov rdi, rcx
mov byte [0x140045b25], 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]
nop dword [rax + rax]
test eax, eax
jne 0x140015887
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]
nop dword [rax + rax]
test eax, eax
je 0x14001f1f8
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]
nop dword [rax + rax]
test eax, eax
jne 0x14001568e
cmp dword [rsp + 0x30], 4
jne 0x14001f23b
cmp dword [rsp + 0x50], r12d
setne byte [0x140045b25]
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]
nop dword [rax + rax]
test eax, eax
je 0x14001f266
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]
nop dword [rax + rax]
test eax, eax
jne 0x140015729
cmp dword [rsp + 0x30], 4
jne 0x14001f2a9
movzx eax, word [rsp + 0x50]
mov word [0x140045b34], 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]
nop dword [rax + rax]
test eax, eax
jne 0x14001579f
cmp dword [rsp + 0x30], 4
jne 0x14001f2d0
movzx ecx, word [rsp + 0x50]
mov word [0x14003d124], cx
movzx eax, cx
mov edx, 0xffe0
sub ax, r15w
test dx, ax
jne 0x14001f307
cmp cx, 0xd
je 0x14001f307
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]
nop dword [rax + rax]
test eax, eax
jne 0x14001f359
cmp dword [rsp + 0x30], 4
jne 0x14001f313
movzx ecx, word [rsp + 0x50]
mov word [0x14003d120], cx
movzx eax, cx
mov edx, 0xffe0
sub ax, r15w
test dx, ax
jne 0x14001f34a
cmp cx, 0xd
je 0x14001f34a
movzx eax, word [0x14003d124]
cmp ax, bx
je 0x14001f365
cmp cx, bx
je 0x14001f37a
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]
nop dword [rax + rax]
test eax, eax
je 0x14001f38d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rdi, 8
sub rsi, r15
jne 0x1400155bc
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_time]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_srand]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xf50]
xor rcx, rsp
call fcn.140018f90
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
cmp dword [rsp + 0x30], 4
jne 0x14001f210
cmp dword [rsp + 0x50], r12d
setne byte [0x1400586fd]
jmp 0x140015637
cmp dword [rsp + 0x30], r15d
jne 0x140015637
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
nop dword [rax + rax]
cmp eax, r15d
sete byte [0x1400586fd]
jmp 0x140015637
cmp dword [rsp + 0x30], r15d
jne 0x14001568e
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
nop dword [rax + rax]
cmp eax, r15d
sete byte [0x140045b25]
jmp 0x14001568e
cmp dword [rsp + 0x30], 4
jne 0x14001f27e
cmp dword [rsp + 0x50], r12d
setne byte [0x140045b24]
jmp 0x1400156d2
cmp dword [rsp + 0x30], r15d
jne 0x1400156d2
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
nop dword [rax + rax]
cmp eax, r15d
sete byte [0x140045b24]
jmp 0x1400156d2
cmp dword [rsp + 0x30], r15d
jne 0x140015729
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
nop dword [rax + rax]
nop
jmp 0x140015722
cmp dword [rsp + 0x30], r15d
jne 0x14001f2fb
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
nop dword [rax + rax]
mov ecx, eax
mov word [0x14003d124], ax
jmp 0x140015780
movzx ecx, word [0x14003d124]
jmp 0x140015780
mov word [0x14003d124], bx
jmp 0x14001579f
cmp dword [rsp + 0x30], r15d
jne 0x14001f33e
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
nop dword [rax + rax]
mov ecx, eax
mov word [0x14003d120], ax
jmp 0x1400157fa
movzx ecx, word [0x14003d120]
jmp 0x1400157fa
movzx ecx, bx
mov word [0x14003d120], bx
jmp 0x140015819
movzx ecx, word [0x14003d120]
jmp 0x140015819
cmp cx, bx
jae 0x14001582c
mov word [0x14003d124], cx
jmp 0x140015832
cmp ax, bx
cmovb cx, ax
mov word [0x14003d120], cx
jmp 0x140015832
cmp dword [rsp + 0x30], 2
jne 0x14001f3e3
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]
nop dword [rax + rax]
test eax, eax
je 0x14001f3d8
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, 0x800
call fcn.1400113e0
jmp 0x14001f3de
mov word [rsp + 0x50], r12w
mov ebx, 0x20
cmp word [rsp + 0x50], r12w
je 0x140015876
lea rcx, [rsp + 0x50]
call fcn.14000b900
mov qword [rdi], rax
jmp 0x140015876