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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xce0]
sub rsp, 0xde0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov rax, qword [0x14007a6a0]
xor rax, rsp
mov qword [rbp + 0xcd0], rax
mov r12, r8
mov r14, rdx
mov r15, rcx
lea rdx, str.winmgmts
mov rcx, r14
call fcn.14003a83c
test eax, eax
je 0x140010341
call fcn.1400179f4
mov rcx, rax
test rax, rax
je 0x14001036f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140001f80
xor esi, esi
lea rdi, [rsi - 1]
test al, al
jne 0x14000fca1
test r14, r14
jne 0x14000fc83
mov eax, esi
jmp 0x14000fc90
mov rax, rdi
inc rax
cmp word [r14 + rax*2], si
jne 0x14000fc86
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140002300
nop
mov word [rbp - 0x60], si
mov word [rbp + 0x6b0], si
mov rax, qword [rsp + 0x40]
cmp dword [rax - 0x10], 0
jne 0x14000fcc0
lea rdx, [rax - 0x18]
jmp 0x14001032e
lea rdx, str.CLSID
lea rcx, [rsp + 0x40]
call fcn.1400105f0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000fd61
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000fd51
cmp dword [rsp + 0x34], 1
jne 0x14000fd51
lea r8, [rbp + 0x2b0]
lea edx, [rax + 0x40]
lea rcx, [rbp + 0x6b0]
call fcn.14003f5e0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000ff7d
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140002420
nop
lea rdx, str.CurVer
lea rcx, [rsp + 0x50]
call fcn.1400105f0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ff5a
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ff5a
cmp dword [rsp + 0x34], 1
jne 0x14000ff5a
call fcn.1400179f4
mov rcx, rax
test rax, rax
je 0x140010364
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x2b0]
lea rcx, [rsp + 0x48]
call fcn.140001f80
test al, al
jne 0x14000fe51
lea rcx, [rbp + 0x2b0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000fe32
mov r8d, eax
lea rdx, [rbp + 0x2b0]
lea rcx, [rsp + 0x48]
call fcn.140002300
nop
mov rax, qword [rsp + 0x48]
cmp dword [rax - 0x10], 0
jne 0x14000fea3
lea rdx, [rax - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000fe76
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000fe95
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
jmp 0x14001032e
lea rdx, str.CLSID
lea rcx, [rsp + 0x48]
call fcn.1400105f0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ff40
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ff34
cmp dword [rsp + 0x34], 1
jne 0x14000ff34
lea r8, [rbp + 0x2b0]
lea edx, [rax + 0x40]
lea rcx, [rbp + 0x6b0]
call fcn.14003f5e0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000ff5a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000ff78
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x40]
lea r8, str.CLSID_
mov edx, 0x80
lea rcx, [rbp + 0x1b0]
call fcn.14003f5e0
lea r8, [rbp + 0x6b0]
mov edx, 0x80
lea rcx, [rbp + 0x1b0]
call fcn.14003f648
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x1b0]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001032a
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.TypeLib
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001006f
mov dword [rsp + 0x30], 0x80
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001031e
cmp dword [rsp + 0x34], 1
jne 0x14001031e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, r12
lea rdx, [rbp + 0x2b0]
mov rcx, r15
call fcn.14000f6a0
mov esi, eax
jmp 0x1400102fe
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.InprocServer32
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400101cb
mov dword [rsp + 0x30], 0x105
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400101c0
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x140010116
cmp eax, 2
jne 0x1400101c0
mov r8d, 0x104
lea rdx, [rbp + 0x8b0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140010116
lea r8, [rbp + 0x8b0]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.14003f5e0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rbp - 0x80]
mov edx, 2
lea rcx, [rbp - 0x60]
call qword [sym.imp.OLEAUT32.dll_SystemTimeToVariantTime]
test eax, eax
js 0x1400101a2
mov rcx, qword [rbp - 0x80]
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + 0x38]
test eax, eax
jne 0x1400101a2
mov rcx, qword [r15 + 0xb8]
test rcx, rcx
je 0x140010174
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x68]
movzx r9d, word [rdx + 0x1a]
movzx r8d, word [rdx + 0x18]
mov dword [rsp + 0x20], esi
call qword [rax + 0x48]
test eax, eax
jne 0x1400101a2
mov rcx, qword [r15 + 0xd8]
test rcx, rcx
je 0x14001019d
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x68]
movzx r9d, word [rdx + 0x1a]
movzx r8d, word [rdx + 0x18]
mov dword [rsp + 0x20], esi
call qword [rax + 0x48]
test eax, eax
jne 0x1400101a2
mov esi, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400101b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
jmp 0x140010343
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.LocalServer32
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001032a
mov dword [rsp + 0x30], 0x105
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001031e
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x140010272
cmp eax, 2
jne 0x14001031e
mov r8d, 0x104
lea rdx, [rbp + 0xac0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140010272
lea r8, [rbp + 0xac0]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.14003f5e0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rbp - 0x78]
mov edx, 2
lea rcx, [rbp - 0x60]
call qword [sym.imp.OLEAUT32.dll_SystemTimeToVariantTime]
test eax, eax
js 0x1400102fe
mov rcx, qword [rbp - 0x78]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0x38]
test eax, eax
jne 0x1400102fe
mov rcx, qword [r15 + 0xb8]
test rcx, rcx
je 0x1400102d0
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x70]
movzx r9d, word [rdx + 0x1a]
movzx r8d, word [rdx + 0x18]
mov dword [rsp + 0x20], esi
call qword [rax + 0x48]
test eax, eax
jne 0x1400102fe
mov rcx, qword [r15 + 0xd8]
test rcx, rcx
je 0x1400102f9
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x70]
movzx r9d, word [rdx + 0x1a]
movzx r8d, word [rdx + 0x18]
mov dword [rsp + 0x20], esi
call qword [rax + 0x48]
test eax, eax
jne 0x1400102fe
mov esi, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400101b9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
jmp 0x140010343
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140010341
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rbp + 0xcd0]
xor rcx, rsp
call fcn.1400361e0
add rsp, 0xde0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400024c0
nop
mov ecx, 0x80004005
call fcn.1400024c0
int3