Function at 0x140001f00
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0xa0
xor edi, edi
mov rax, r9
mov qword [r11 - 0x58], rdi
test rdx, rdx
je 0x140002496
test r8, r8
je 0x140002496
test rax, rax
je 0x140002496
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x140002496
mov rdx, 0xffffffffffffffff
mov qword [r11 - 0x10], rbx
mov dword [rcx], edx
lea rax, [r11 - 0x58]
mov rbx, qword [r9]
lea rdx, str.SOFTWAREMicrosoftPowerShell
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edx, eax
test eax, eax
je 0x14000201e
mov rcx, qword [0x140016cc0]
lea r9, str.SOFTWAREMicrosoftPowerShell
mov rax, qword [rcx]
cmp edx, 2
jne 0x140001ffa
mov rax, qword [rax + 8]
xor edx, edx
test rbx, rbx
jne 0x140001fd5
lea r8d, [rdi + 0x1e]
call qword [0x14000dd78]
mov rbx, qword [rsp + 0x98]
xor al, al
add rsp, 0xa0
pop rdi
ret
mov r8d, 0x27
mov qword [rsp + 0x20], rbx
call qword [0x14000dd78]
mov rbx, qword [rsp + 0x98]
xor al, al
add rsp, 0xa0
pop rdi
ret
mov rax, qword [rax + 0x10]
mov r8d, 0x14
call qword [0x14000dd78]
mov rbx, qword [rsp + 0x98]
xor al, al
add rsp, 0xa0
pop rdi
ret
mov ecx, 0x200
mov qword [rsp + 0x68], r15
call fcn.140003a28
mov r15, rax
test rax, rax
jne 0x14000203c
xor bl, bl
jmp 0x140002452
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x90], rbp
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov r8, r15
mov qword [rsp + 0x88], rsi
xor edx, edx
mov qword [rsp + 0x80], r12
mov r12, rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x78], r13
mov r13d, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x70], r14
mov dword [rsp + 0xb0], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov dword [rsp + 0x48], 1
mov edx, eax
cmp eax, 0x103
je 0x140002414
nop dword [rax + rax]
test edx, edx
jne 0x1400023f1
mov rdx, r15
mov dword [rsp + 0x40], edi
mov ebp, edi
call fcn.140002f40
test al, al
jne 0x1400022b5
mov r14, rdi
call fcn.140002f40
test al, al
jne 0x1400022b5
mov edx, 0x2e
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
xor edx, edx
mov rcx, r15
mov rdi, rax
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400022b3
test rdi, rdi
je 0x14000214f
lea r9, [rsp + 0x40]
mov r8, rdi
mov rdx, r15
call fcn.14000989c
movzx esi, al
test al, al
je 0x1400022b3
mov ebp, dword [rsp + 0x40]
lea r14, [rdi + 2]
jmp 0x1400021d5
movzx eax, word [rax]
mov rcx, r15
sub ax, 0x30
mov sil, 1
cmp ax, 9
ja 0x140002167
xor sil, sil
jmp 0x1400021d5
xor edi, edi
cmp di, word [r15]
je 0x1400021c6
cmp r15, rbx
jae 0x1400021c6
cmp word [rcx], 0x30
jne 0x140002183
add rcx, 2
cmp rcx, rbx
jb 0x140002174
mov rax, rbx
sub rax, rcx
and rax, 0xfffffffffffffffe
cmp rax, 0x14
jle 0x140002198
xor sil, sil
jmp 0x1400021d5
mov r8d, 0xa
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcstoul]
nop dword [rax + rax]
cmp rbx, qword [rsp + 0x40]
jne 0x140002162
cmp eax, 0x7fffffff
ja 0x140002162
mov ebp, eax
jmp 0x1400021c9
xor sil, sil
test sil, sil
je 0x1400022b5
mov r14, rdi
test sil, sil
je 0x1400022b3
test r14, r14
jne 0x1400022b3
cmp ebp, r13d
jle 0x1400022b3
mov ebx, dword [rsp + 0xb0]
mov r13d, ebp
inc ebx
test r12, r12
je 0x140002210
mov rcx, r12
call qword [sym.imp.msvcrt.dll____V_YAXPEAX_Z]
nop dword [rax + rax]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140003a28
mov r12, rax
test rax, rax
je 0x14000242e
xor edi, edi
lea rax, [rbx - 1]
cmp rax, 0x7ffffffe
mov ecx, edi
mov eax, 0x80070057
cmova ecx, eax
test ecx, ecx
js 0x14000229f
mov rcx, r12
test rbx, rbx
je 0x140002287
mov edx, 0x7ffffffe
mov r8, r15
sub rdx, rbx
sub r8, r12
lea rax, [rdx + rbx]
test rax, rax
je 0x140002287
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140002287
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x140002267
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov ecx, 0x8007007a
cmovne ecx, edi
mov word [rax], di
jmp 0x1400022a9
test rbx, rbx
je 0x1400022a9
mov word [r12], di
test ecx, ecx
js 0x14000242e
jmp 0x1400022b5
xor edi, edi
mov ebp, dword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov r8, r15
mov qword [rsp + 0x30], rdi
mov edx, ebp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0xb0], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
inc ebp
mov edx, eax
mov dword [rsp + 0x48], ebp
cmp eax, 0x103
jne 0x1400020c0
test r12, r12
je 0x140002414
mov rax, qword [rsp + 0xd0]
lea r9, [rsp + 0x48]
mov rsi, qword [rsp + 0xc8]
lea rdx, str.SOFTWAREMicrosoftPowerShell_1_ls_PowerShellEngine
mov rdi, qword [rsp + 0xc0]
lea rcx, [0x140016cb8]
mov qword [rsp + 0x28], r12
mov r8, rdi
mov dword [rsp + 0x20], SafeArrayCopy
mov qword [rsi], r12
mov dword [rax], r13d
call fcn.140002f60
test al, al
je 0x14000242e
mov rdi, qword [rdi]
mov r9d, 0x20019
mov rax, qword [rsp + 0xb8]
mov rdx, rdi
mov rsi, qword [rsi]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edx, eax
test eax, eax
je 0x140002430
mov rcx, qword [0x140016cc0]
mov r9, rdi
mov rax, qword [rcx]
cmp edx, 2
jne 0x1400023df
mov rax, qword [rax + 8]
xor edx, edx
test rsi, rsi
jne 0x1400023cc
lea r8d, [rdx + 0x1e]
call qword [0x14000dd78]
jmp 0x14000242e
mov r8d, 0x27
mov qword [rsp + 0x20], rsi
call qword [0x14000dd78]
jmp 0x14000242e
mov rax, qword [rax + 0x10]
mov r8d, 0x14
call qword [0x14000dd78]
jmp 0x14000242e
mov rcx, qword [0x140016cc0]
lea r9, str.SOFTWAREMicrosoftPowerShell
mov r8d, 0x13
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000dd78]
jmp 0x14000242e
mov rcx, qword [0x140016cc0]
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 0x1d]
mov rax, qword [rax + 8]
call qword [0x14000dd78]
xor bl, bl
mov r14, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002468
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test r15, r15
je 0x14000247c
mov rcx, r15
call qword [sym.imp.msvcrt.dll____V_YAXPEAX_Z]
nop dword [rax + rax]
mov r15, qword [rsp + 0x68]
movzx eax, bl
mov rbx, qword [rsp + 0x98]
add rsp, 0xa0
pop rdi
ret
xor al, al
add rsp, 0xa0
pop rdi
ret