Function at 0x140002520
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x80
xor ebp, ebp
mov r13, r9
mov qword [r11 - 0x50], rbp
mov r15, r8
test rdx, rdx
je 0x14000290a
test r8, r8
je 0x14000290a
test r9, r9
je 0x14000290a
mov rsi, qword [rsp + 0xd0]
test rsi, rsi
je 0x14000290a
or rax, 0xffffffffffffffff
mov qword [r11 + 0x20], rbx
mov dword [rsi], eax
lea rdx, str.SOFTWAREMicrosoftPowerShell
mov rbx, qword [r9]
lea rax, [r11 - 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, eax
test eax, eax
jne 0x140004900
mov ecx, 0x200
mov qword [rsp + 0x78], rdi
call fcn.140002ef0
mov rdi, rax
test rax, rax
je 0x140002902
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
mov r8, rdi
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x70], r14
mov esi, ebp
mov qword [rsp + 0x20], rbp
mov r14d, ebp
mov dword [rsp + 0xb0], ebp
mov dword [rsp + 0x40], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x50], 1
mov edx, eax
cmp eax, 0x103
je 0x140004a4f
test edx, edx
jne 0x140004a28
mov rdx, rdi
mov dword [rsp + 0x48], ebp
call fcn.140002a50
test al, al
jne 0x1400027e7
xor r12d, r12d
call fcn.140002a50
test al, al
jne 0x1400027e7
lea edx, [r12 + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
xor edx, edx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
test rax, rax
je 0x1400049cc
test rsi, rsi
jne 0x140004951
movzx eax, word [rax]
mov rcx, rdi
sub ax, 0x30
mov r15b, 1
cmp ax, 9
jbe 0x140004976
xor edx, edx
cmp dx, word [rdi]
je 0x140004998
cmp rdi, rbx
jae 0x140004998
cmp word [rcx], 0x30
je 0x14000497e
mov rax, rbx
sub rax, rcx
and rax, 0xfffffffffffffffe
cmp rax, 0x14
jg 0x140004990
mov qword [rsp + 0x48], rdx
mov r8d, 0xa
lea rdx, [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_wcstoul]
cmp rbx, qword [rsp + 0x48]
jne 0x140004976
cmp eax, 0x7fffffff
ja 0x140004976
mov ebp, eax
xor edx, edx
test r15b, r15b
je 0x1400049cc
mov r12, rdx
mov esi, dword [rsp + 0xb0]
test r15b, r15b
je 0x1400027e7
test r12, r12
jne 0x1400027e7
cmp ebp, esi
jle 0x1400027e7
mov ebx, dword [rsp + 0x40]
mov esi, ebp
inc ebx
mov dword [rsp + 0xb0], ebp
test r14, r14
je 0x140002749
mov rcx, r14
call sub.msvcrt.dll_free
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140002ef0
mov r14, rax
test rax, rax
je 0x140002906
xor r10d, r10d
lea rax, [rbx - 1]
mov r9d, r10d
cmp rax, 0x7ffffffe
ja 0x1400049a0
test r9d, r9d
js 0x1400049ba
mov rcx, r14
mov r9d, r10d
test rbx, rbx
je 0x1400049ab
mov edx, 0x7ffffffe
mov r8, rdi
sub rdx, rbx
sub r8, r14
lea rax, [rdx + rbx]
test rax, rax
je 0x1400027d1
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400027d1
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x1400027ac
jmp 0x1400049ab
test rbx, rbx
je 0x1400049ab
mov word [rcx], r10w
test r9d, r9d
js 0x140002906
mov ebp, dword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov r8, rdi
xor eax, eax
mov dword [rsp + 0x40], pe_nt_image_headers64
mov qword [rsp + 0x30], rax
mov edx, ebp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc ebp
mov edx, eax
mov dword [rsp + 0x50], ebp
cmp eax, 0x103
je 0x140002839
xor ebp, ebp
jmp 0x14000262a
test r14, r14
je 0x140004a4f
mov rax, qword [rsp + 0xd0]
lea r9, [rsp + 0xb0]
mov r15, qword [rsp + 0xc0]
lea rdx, str.SOFTWAREMicrosoftPowerShell_1_ls_PowerShellEngine
mov qword [r13], r14
lea rcx, [0x140015be8]
mov qword [rsp + 0x28], r14
mov r8, r15
mov dword [rax], esi
mov dword [rsp + 0x20], AtlComPtrAssign
call fcn.140002910
test al, al
je 0x140002906
mov rsi, qword [r15]
mov r9d, 0x20019
mov rax, qword [rsp + 0xb8]
mov rdx, rsi
mov rbp, qword [r13]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, eax
test eax, eax
jne 0x1400049d8
mov r14, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400028d5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x1400028e2
mov rcx, rdi
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x78]
movzx eax, bl
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
xor bl, bl
jmp 0x1400028c5
xor bl, bl
jmp 0x1400028c0
xor al, al
jmp 0x1400028f2
mov rcx, qword [0x140015bf0]
lea r9, str.SOFTWAREMicrosoftPowerShell
mov rax, qword [rcx]
cmp edx, 2
jne 0x14000493a
mov rax, qword [rax + 8]
xor edx, edx
test rbx, rbx
jne 0x140004927
lea r8d, [rdx + 0x1e]
jmp 0x140004944
mov r8d, 0x27
mov qword [rsp + 0x20], rbx
call qword [0x14000d338]
jmp 0x14000494a
mov rax, qword [rax + 0x10]
mov r8d, 0x14
call qword [0x14000d338]
xor al, al
jmp 0x1400028ea
lea r9, [rsp + 0x48]
mov r8, rsi
mov rdx, rdi
call fcn.140005224
movzx r15d, al
test al, al
je 0x1400049cc
mov ebp, dword [rsp + 0x48]
lea r12, [rsi + 2]
jmp 0x14000270c
xor r15b, r15b
jmp 0x14000270c
add rcx, 2
cmp rcx, rbx
jb 0x1400026b2
jmp 0x1400026bc
xor r15b, r15b
jmp 0x14000270c
xor r15b, r15b
jmp 0x140002700
mov r9d, 0x80070057
jmp 0x140002786
sub rcx, 2
mov r9d, 0x8007007a
jmp 0x1400027da
test rbx, rbx
je 0x1400027de
mov word [r14], r10w
jmp 0x1400027de
mov esi, dword [rsp + 0xb0]
jmp 0x1400027e7
mov rcx, qword [0x140015bf0]
mov r9, rsi
mov rax, qword [rcx]
cmp edx, 2
jne 0x140004a12
mov rax, qword [rax + 8]
xor edx, edx
test rbp, rbp
jne 0x1400049fb
lea r8d, [rdx + 0x1e]
jmp 0x140004a1c
mov r8d, 0x27
mov qword [rsp + 0x20], rbp
call qword [0x14000d338]
nop
jmp 0x140002906
mov rax, qword [rax + 0x10]
mov r8d, 0x14
call qword [0x14000d338]
nop
jmp 0x140002906
mov rcx, qword [0x140015bf0]
lea r9, str.SOFTWAREMicrosoftPowerShell
mov r8d, 0x13
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14000d338]
nop
jmp 0x140002906
mov rcx, qword [0x140015bf0]
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 0x1d]
mov rax, qword [rax + 8]
call qword [0x14000d338]
nop
jmp 0x140002906