Function at 0x140014448
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.140019950
sub rsp, rax
mov rax, qword [0x14003b0f8]
xor rax, rsp
mov qword [rbp + 0xf50], rax
movdqa xmm0, xmmword [0x1400339e0]
lea r14, [rsp + 0x40]
mov r15d, 1
sub r14, rcx
mov rdi, rcx
mov byte [0x140043aa5], 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 0x140014745
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 0x14001e85e
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 0x140014570
cmp dword [rsp + 0x30], 4
jne 0x14001e89b
cmp dword [rsp + 0x50], r12d
setne byte [0x140043aa5]
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 0x14001e8c0
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 0x1400145ff
cmp dword [rsp + 0x30], 4
jne 0x14001e8fd
movzx eax, word [rsp + 0x50]
mov word [0x140043ab4], 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 0x14001466f
cmp dword [rsp + 0x30], 4
jne 0x14001e91e
movzx ecx, word [rsp + 0x50]
mov word [0x14003b124], cx
movzx eax, cx
mov edx, 0xffe0
sub ax, r15w
test dx, ax
jne 0x14001e94f
cmp cx, 0xd
je 0x14001e94f
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 0x14001e99b
cmp dword [rsp + 0x30], 4
jne 0x14001e95b
movzx ecx, word [rsp + 0x50]
mov word [0x14003b120], cx
movzx eax, cx
mov edx, 0xffe0
sub ax, r15w
test dx, ax
jne 0x14001e98c
cmp cx, 0xd
je 0x14001e98c
movzx eax, word [0x14003b124]
cmp ax, bx
je 0x14001e9a7
cmp cx, bx
je 0x14001e9bc
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 0x14001e9cf
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 0x1400144b0
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.1400182e0
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 0x14001e876
cmp dword [rsp + 0x50], r12d
setne byte [0x140056aa5]
jmp 0x14001451f
cmp dword [rsp + 0x30], r15d
jne 0x14001451f
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
cmp eax, r15d
sete byte [0x140056aa5]
jmp 0x14001451f
cmp dword [rsp + 0x30], r15d
jne 0x140014570
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
cmp eax, r15d
sete byte [0x140043aa5]
jmp 0x140014570
cmp dword [rsp + 0x30], 4
jne 0x14001e8d8
cmp dword [rsp + 0x50], r12d
setne byte [0x140043aa4]
jmp 0x1400145ae
cmp dword [rsp + 0x30], r15d
jne 0x1400145ae
lea rcx, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll__wtol]
cmp eax, r15d
sete byte [0x140043aa4]
jmp 0x1400145ae
cmp dword [rsp + 0x30], r15d
jne 0x1400145ff
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
nop
jmp 0x1400145f8
cmp dword [rsp + 0x30], r15d
jne 0x14001e943
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
mov ecx, eax
mov word [0x14003b124], ax
jmp 0x140014650
movzx ecx, word [0x14003b124]
jmp 0x140014650
mov word [0x14003b124], bx
jmp 0x14001466f
cmp dword [rsp + 0x30], r15d
jne 0x14001e980
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
mov ecx, eax
mov word [0x14003b120], ax
jmp 0x1400146c4
movzx ecx, word [0x14003b120]
jmp 0x1400146c4
movzx ecx, bx
mov word [0x14003b120], bx
jmp 0x1400146e3
movzx ecx, word [0x14003b120]
jmp 0x1400146e3
cmp cx, bx
jae 0x1400146f6
mov word [0x14003b124], cx
jmp 0x1400146fc
cmp ax, bx
cmovb cx, ax
mov word [0x14003b120], cx
jmp 0x1400146fc
cmp dword [rsp + 0x30], 2
jne 0x14001ea1f
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 0x14001ea14
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, 0x800
call fcn.1400106e0
jmp 0x14001ea1a
mov word [rsp + 0x50], r12w
mov ebx, 0x20
cmp word [rsp + 0x50], r12w
je 0x14001473a
lea rcx, [rsp + 0x50]
call fcn.14000b070
mov qword [rdi], rax
jmp 0x14001473a