Function at 0x7ff743e926c0
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 0x7ff743e92c56
test r8, r8
je 0x7ff743e92c56
test rax, rax
je 0x7ff743e92c56
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x7ff743e92c56
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 0x7ff743e927de
mov rcx, qword [0x7ff743eb0fe8]
lea r9, str.SOFTWAREMicrosoftPowerShell
mov rax, qword [rcx]
cmp edx, 2
jne 0x7ff743e927ba
mov rax, qword [rax + 8]
xor edx, edx
test rbx, rbx
jne 0x7ff743e92795
lea r8d, [rdi + 0x1e]
call qword [0x7ff743ea5f00]
mov rbx, qword [rsp + 0x98]
xor al, al
add rsp, 0xa0
pop rdi
ret
mov r8d, 0x27
mov qword [rsp + 0x20], rbx
call qword [0x7ff743ea5f00]
mov rbx, qword [rsp + 0x98]
xor al, al
add rsp, 0xa0
pop rdi
ret
mov rax, qword [rax + 0x10]
mov r8d, 0x14
call qword [0x7ff743ea5f00]
mov rbx, qword [rsp + 0x98]
xor al, al
add rsp, 0xa0
pop rdi
ret
mov ecx, 0x200
mov qword [rsp + 0x68], r15
call fcn.7ff743e943f8
mov r15, rax
test rax, rax
jne 0x7ff743e927fc
xor bl, bl
jmp 0x7ff743e92c12
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 0x7ff743e92bd4
nop dword [rax + rax]
test edx, edx
jne 0x7ff743e92bb1
mov rdx, r15
mov dword [rsp + 0x40], edi
mov ebp, edi
call fcn.7ff743e93700
test al, al
jne 0x7ff743e92a75
mov r14, rdi
call fcn.7ff743e93700
test al, al
jne 0x7ff743e92a75
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 0x7ff743e92a73
test rdi, rdi
je 0x7ff743e9290f
lea r9, [rsp + 0x40]
mov r8, rdi
mov rdx, r15
call fcn.7ff743ea180c
movzx esi, al
test al, al
je 0x7ff743e92a73
mov ebp, dword [rsp + 0x40]
lea r14, [rdi + 2]
jmp 0x7ff743e92995
movzx eax, word [rax]
mov rcx, r15
sub ax, 0x30
mov sil, 1
cmp ax, 9
ja 0x7ff743e92927
xor sil, sil
jmp 0x7ff743e92995
xor edi, edi
cmp di, word [r15]
je 0x7ff743e92986
cmp r15, rbx
jae 0x7ff743e92986
cmp word [rcx], 0x30
jne 0x7ff743e92943
add rcx, 2
cmp rcx, rbx
jb 0x7ff743e92934
mov rax, rbx
sub rax, rcx
and rax, 0xfffffffffffffffe
cmp rax, 0x14
jle 0x7ff743e92958
xor sil, sil
jmp 0x7ff743e92995
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 0x7ff743e92922
cmp eax, 0x7fffffff
ja 0x7ff743e92922
mov ebp, eax
jmp 0x7ff743e92989
xor sil, sil
test sil, sil
je 0x7ff743e92a75
mov r14, rdi
test sil, sil
je 0x7ff743e92a73
test r14, r14
jne 0x7ff743e92a73
cmp ebp, r13d
jle 0x7ff743e92a73
mov ebx, dword [rsp + 0xb0]
mov r13d, ebp
inc ebx
test r12, r12
je 0x7ff743e929d0
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.7ff743e943f8
mov r12, rax
test rax, rax
je 0x7ff743e92bee
xor edi, edi
lea rax, [rbx - 1]
cmp rax, 0x7ffffffe
mov ecx, edi
mov eax, 0x80070057
cmova ecx, eax
test ecx, ecx
js 0x7ff743e92a5f
mov rcx, r12
test rbx, rbx
je 0x7ff743e92a47
mov edx, 0x7ffffffe
mov r8, r15
sub rdx, rbx
sub r8, r12
lea rax, [rdx + rbx]
test rax, rax
je 0x7ff743e92a47
movzx eax, word [r8 + rcx]
test ax, ax
je 0x7ff743e92a47
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x7ff743e92a27
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov ecx, 0x8007007a
cmovne ecx, edi
mov word [rax], di
jmp 0x7ff743e92a69
test rbx, rbx
je 0x7ff743e92a69
mov word [r12], di
test ecx, ecx
js 0x7ff743e92bee
jmp 0x7ff743e92a75
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 0x7ff743e92880
test r12, r12
je 0x7ff743e92bd4
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, [0x7ff743eb0fe0]
mov qword [rsp + 0x28], r12
mov r8, rdi
mov dword [rsp + 0x20], SafeArrayCopy
mov qword [rsi], r12
mov dword [rax], r13d
call fcn.7ff743e93720
test al, al
je 0x7ff743e92bee
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 0x7ff743e92bf0
mov rcx, qword [0x7ff743eb0fe8]
mov r9, rdi
mov rax, qword [rcx]
cmp edx, 2
jne 0x7ff743e92b9f
mov rax, qword [rax + 8]
xor edx, edx
test rsi, rsi
jne 0x7ff743e92b8c
lea r8d, [rdx + 0x1e]
call qword [0x7ff743ea5f00]
jmp 0x7ff743e92bee
mov r8d, 0x27
mov qword [rsp + 0x20], rsi
call qword [0x7ff743ea5f00]
jmp 0x7ff743e92bee
mov rax, qword [rax + 0x10]
mov r8d, 0x14
call qword [0x7ff743ea5f00]
jmp 0x7ff743e92bee
mov rcx, qword [0x7ff743eb0fe8]
lea r9, str.SOFTWAREMicrosoftPowerShell
mov r8d, 0x13
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x7ff743ea5f00]
jmp 0x7ff743e92bee
mov rcx, qword [0x7ff743eb0fe8]
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 0x1d]
mov rax, qword [rax + 8]
call qword [0x7ff743ea5f00]
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 0x7ff743e92c28
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test r15, r15
je 0x7ff743e92c3c
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