Function at 0x140001810
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x98]
sub rsp, 0x188
mov rax, qword [0x140016608]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov qword [r11 - 0x18], rdi
mov ebx, ecx
mov qword [r11 - 0x20], r12
mov rdi, rdx
xor r12d, r12d
mov dword [rbp - 0x50], ecx
xor ecx, ecx
mov qword [rsp + 0x68], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
mov qword [r11 - 0x30], r14
mov qword [rbp - 0x40], rdx
call qword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
nop dword [rax + rax]
call fcn.1400034f0
test al, al
je 0x14000189e
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop dword [rax + rax]
test byte [rbp + 0xc], 1
je 0x14000189e
cmp word [rbp + 0x10], r12w
je 0x14000189e
lea rcx, [rbp - 0x30]
call fcn.140006d18
mov r14, 0xffffffffffffffff
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x68]
lea rax, [rbp - 0x48]
mov dword [rbp - 0x78], r14d
mov qword [rsp + 0x40], rax
mov rdx, rdi
lea rax, [rsp + 0x78]
mov dword [rbp - 0x68], r14d
mov qword [rsp + 0x38], rax
mov ecx, ebx
lea rax, [rbp - 0x60]
mov dword [rsp + 0x78], r14d
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], r14d
mov dword [rbp - 0x70], r14d
call fcn.1400031d0
mov ebx, eax
test eax, eax
jne 0x140001e95
lea rax, [rbp - 0x70]
mov qword [rsp + 0x170], r13
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlMiniNT
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
lea ebx, [r14 + 4]
lea r13d, [r14 + 2]
test eax, eax
jne 0x1400019ae
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov edx, dword [rsp + 0x60]
lea eax, [rdx - 1]
cmp eax, r13d
ja 0x1400019be
mov rcx, qword [0x140016cd0]
lea ebx, [r14 + 0x24]
movsd xmm0, qword [0x1400117b8]
mov r9d, edx
mov r8d, ebx
movsd qword [rsp + 0x20], xmm0
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14000dd78]
jmp 0x140001e8d
mov edx, dword [rsp + 0x60]
cmp edx, 2
jne 0x1400019be
mov dword [rsp + 0x60], r13d
jmp 0x1400019cb
lea eax, [rdx - 4]
cmp eax, r13d
cmovbe edx, ebx
mov dword [rsp + 0x60], edx
mov edi, dword [rbp - 0x68]
lea rax, [rbp - 0x58]
mov r9d, dword [rbp - 0x78]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x1b0], rsi
lea rax, [rbp - 0x80]
cmp edi, r14d
mov qword [rsp + 0x160], r15
mov qword [rsp + 0x20], rax
sete sil
mov byte [rsp + 0x64], sil
call fcn.1400024b0
mov r15, qword [rsp + 0x68]
mov ebx, eax
test eax, eax
jne 0x140001ede
mov rdx, qword [rbp - 0x60]
cmp edi, r14d
mov qword [rbp - 0x78], rdx
cmovg r14d, edi
mov edi, 3
cmp dword [rsp + 0x70], r14d
cmovg r14d, dword [rsp + 0x70]
cmp dword [rsp + 0x78], r14d
cmovg r14d, dword [rsp + 0x78]
inc r14d
cmp dword [rsp + 0x60], 2
mov dword [rbp - 0x70], r14d
cmove edi, r13d
test rdx, rdx
jne 0x140001a6a
mov rax, qword [rbp - 0x80]
mov r13, r12
mov qword [rbp - 0x78], rax
jmp 0x140001a8b
mov rcx, qword [0x140016cd0]
mov r9, rdx
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 0x24]
mov rax, qword [rax + 8]
call qword [0x14000dd78]
mov r13, qword [rbp - 0x80]
xor ecx, ecx
mov qword [rbp - 0x68], r15
mov qword [rsp + 0x70], r12
mov rsi, r12
mov qword [rsp + 0x68], r12
mov ebx, ecx
mov dword [rsp + 0x60], ecx
test r15, r15
jne 0x140001adc
lea rax, [rbp - 0x70]
lea r9, [rbp - 0x68]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
call fcn.140001f00
mov rsi, qword [rsp + 0x68]
test al, al
jne 0x140001cc6
mov ebx, 0xfffb0000
jmp 0x140001cc6
mov rdx, r15
mov qword [rbp - 0x80], rcx
call fcn.140002f40
test al, al
jne 0x140001cbb
mov r9d, 0xa
lea rdx, [rbp + 0x40]
mov ecx, edi
lea r8d, [r9 + 1]
call qword [sym.imp.msvcrt.dll__itow_s]
nop dword [rax + rax]
xor ecx, ecx
mov rdx, r15
mov edi, ecx
mov qword [rbp - 0x60], rcx
mov qword [rsp + 0x68], rcx
call fcn.140002f40
test al, al
jne 0x140001c00
lea rdx, [rbp + 0x40]
call fcn.140002f40
test al, al
jne 0x140001c00
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], SafeArrayCopy
lea rdx, str.SOFTWAREMicrosoftPowerShell_1_ls_
lea rcx, [0x140016cb8]
call fcn.140002f60
mov r14, qword [rbp - 0x60]
mov ebx, 0xfffb0000
test al, al
jne 0x140001b78
mov edi, ebx
jmp 0x140001bcf
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140001bcf
cmp eax, 2
mov ecx, 0xfffa0000
mov edi, ebx
mov r9, r15
cmove edi, ecx
mov rcx, qword [0x140016cc0]
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 0x19]
mov rax, qword [rax + 8]
call qword [0x14000dd78]
test r14, r14
je 0x140001be3
mov rcx, r14
call qword [sym.imp.msvcrt.dll____V_YAXPEAX_Z]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001c07
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rsp + 0x68], rsi
jmp 0x140001c07
mov ebx, 0xfffb0000
mov edi, ebx
test edi, edi
jne 0x140001cc0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x80]
mov dword [rsp + 0x20], SafeArrayCopy
lea rdx, str.SOFTWAREMicrosoftPowerShell_1_ls_PowerShellEngine
lea rcx, [0x140016cb8]
call fcn.140002f60
test al, al
jne 0x140001c44
mov edi, ebx
jmp 0x140001cc0
mov r14, qword [rbp - 0x80]
lea rax, [rsp + 0x70]
mov rdx, r14
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edx, eax
test eax, eax
je 0x140001cb6
mov rcx, qword [0x140016cc0]
mov r9, r14
mov rax, qword [rcx]
cmp edx, 2
jne 0x140001ca2
mov rax, qword [rax + 8]
xor edx, edx
mov qword [rsp + 0x20], r15
lea r8d, [rdx + 0x27]
call qword [0x14000dd78]
mov edi, ebx
jmp 0x140001cc0
mov rax, qword [rax + 0x10]
mov r8d, 0x14
call qword [0x14000dd78]
mov edi, ebx
jmp 0x140001cc0
mov rsi, r14
jmp 0x140001cc0
mov edi, 0xfffb0000
mov r14d, dword [rbp - 0x70]
mov ebx, edi
test ebx, ebx
jne 0x140001dc1
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.NetFrameworkV4IsInstalled
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001dc1
mov ecx, dword [rsp + 0x60]
mov eax, 2
shr rcx, 1
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140003a28
mov r12, rax
test rax, rax
jne 0x140001d37
mov ebx, 0xffff0000
jmp 0x140001dc1
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.NetFrameworkV4IsInstalled
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140001dc1
lea r8d, [rax + 2]
mov rcx, r12
lea rdx, [0x14000eb54]
call qword [sym.imp.msvcrt.dll_wcsncmp]
nop dword [rax + rax]
test eax, eax
jne 0x140001dc1
mov rdx, qword [rbp - 0x68]
mov ebx, 0xffff0000
mov rcx, qword [0x140016cd0]
mov r9, qword [rbp - 0x78]
mov qword [rsp + 0x20], rdx
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 3]
mov rax, qword [rax + 8]
call qword [0x14000dd78]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140001de0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rsp + 0x70], 0
test rsi, rsi
je 0x140001df4
mov rcx, rsi
call qword [sym.imp.msvcrt.dll____V_YAXPEAX_Z]
nop dword [rax + rax]
test r12, r12
je 0x140001e08
mov rcx, r12
call qword [sym.imp.msvcrt.dll____V_YAXPEAX_Z]
nop dword [rax + rax]
mov rdi, qword [rbp - 0x58]
test ebx, ebx
jne 0x140001e3c
mov rax, qword [rbp - 0x40]
mov rcx, r15
mov r9, qword [rbp - 0x78]
mov r8, qword [rbp - 0x48]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp - 0x50]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], rdi
call fcn.1400010a0
mov ebx, eax
movzx esi, byte [rsp + 0x64]
test r13, r13
je 0x140001e55
mov rcx, r13
call qword [sym.imp.msvcrt.dll____V_YAXPEAX_Z]
nop dword [rax + rax]
test rdi, rdi
je 0x140001e69
mov rcx, rdi
call qword [sym.imp.msvcrt.dll____V_YAXPEAX_Z]
nop dword [rax + rax]
test sil, sil
mov rsi, qword [rsp + 0x1b0]
je 0x140001e85
mov rcx, r15
call qword [sym.imp.msvcrt.dll____V_YAXPEAX_Z]
nop dword [rax + rax]
mov r15, qword [rsp + 0x160]
mov r13, qword [rsp + 0x170]
mov rcx, qword [0x140016f18]
mov r14, qword [rsp + 0x168]
mov r12, qword [rsp + 0x178]
mov rdi, qword [rsp + 0x180]
test rcx, rcx
je 0x140001ec5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.140003d70
add rsp, 0x188
pop rbx
pop rbp
ret
mov r13, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x58]
jmp 0x140001e41