Function at 0x140006098
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.140015d20
sub rsp, rax
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rbp + 0xf50], rax
movdqa xmm0, xmmword [0x140028d50]
lea r14, [rsp + 0x40]
mov r15d, 1
sub r14, rcx
mov rdi, rcx
mov byte [0x140046d39], 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 0x1400063a5
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 0x14001806a
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 0x1400061c0
cmp dword [rsp + 0x30], 4
jne 0x1400180a7
cmp dword [rsp + 0x50], r12d
setne byte [0x140046d39]
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 0x1400180cc
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 0x14000624f
cmp dword [rsp + 0x30], 4
jne 0x140018109
movzx eax, word [rsp + 0x50]
mov word [0x140030368], 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 0x1400062bf
cmp dword [rsp + 0x30], 4
jne 0x14001812a
movzx ecx, word [rsp + 0x50]
mov word [0x14002f030], cx
movzx eax, cx
mov edx, 0xffe0
sub ax, r15w
test dx, ax
jne 0x1400063ee
cmp cx, 0xd
je 0x1400063ee
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 0x14001818c
cmp dword [rsp + 0x30], 4
jne 0x14001815b
movzx ecx, word [rsp + 0x50]
mov word [0x14002f034], cx
movzx eax, cx
mov edx, 0xffe0
sub ax, r15w
test dx, ax
jne 0x1400063fa
cmp cx, 0xd
je 0x1400063fa
movzx eax, word [0x14002f030]
cmp ax, bx
jne 0x140006409
cmp cx, bx
jb 0x140018198
jne 0x14000635c
cmp ax, bx
cmovb cx, ax
mov word [0x14002f034], 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 0x1400181a4
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 0x140006100
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.1400151c0
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 [0x14002f030], bx
jmp 0x1400062bf
movzx ecx, bx
mov word [0x14002f034], bx
jmp 0x140006333
cmp cx, bx
jmp 0x14000634c
cmp dword [rsp + 0x30], 4
jne 0x140018082
cmp dword [rsp + 0x50], r12d
setne byte [0x14004b114]
jmp 0x14000616f
cmp dword [rsp + 0x30], r15d
jne 0x14000616f
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
cmp eax, r15d
sete byte [0x14004b114]
jmp 0x14000616f
cmp dword [rsp + 0x30], r15d
jne 0x1400061c0
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
cmp eax, r15d
sete byte [0x140046d39]
jmp 0x1400061c0
cmp dword [rsp + 0x30], 4
jne 0x1400180e4
cmp dword [rsp + 0x50], r12d
setne byte [0x140046d38]
jmp 0x1400061fe
cmp dword [rsp + 0x30], r15d
jne 0x1400061fe
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
cmp eax, r15d
sete byte [0x140046d38]
jmp 0x1400061fe
cmp dword [rsp + 0x30], r15d
jne 0x14000624f
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
nop
jmp 0x140006248
cmp dword [rsp + 0x30], r15d
jne 0x14001814f
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
mov ecx, eax
mov word [0x14002f030], ax
jmp 0x1400062a0
movzx ecx, word [0x14002f030]
jmp 0x1400062a0
cmp dword [rsp + 0x30], r15d
jne 0x140018180
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
mov ecx, eax
mov word [0x14002f034], ax
jmp 0x140006314
movzx ecx, word [0x14002f034]
jmp 0x140006314
movzx ecx, word [0x14002f034]
jmp 0x140006333
mov word [0x14002f030], cx
jmp 0x14000635c
cmp dword [rsp + 0x30], 2
jne 0x1400181f4
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_2_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400181e9
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, 0x800
call fcn.14000dc10
jmp 0x1400181ef
mov word [rsp + 0x50], r12w
mov ebx, 0x20
cmp word [rsp + 0x50], r12w
je 0x14000639a
lea rcx, [rsp + 0x50]
call fcn.140008660
mov qword [rdi], rax
jmp 0x14000639a