Function at 0x14008392c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x39b8]
mov eax, 0x3a90
call fcn.1400ad950
sub rsp, rax
mov rax, qword [0x1400e6870]
xor rax, rsp
mov qword [rbp + 0x3980], rax
mov rdi, rcx
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov rsi, qword [rcx + 8]
mov rbx, qword [rcx]
cmp rbx, rsi
je 0x140083997
mov rcx, rbx
call fcn.14006da78
add rbx, 0xcb0
cmp rbx, rsi
jne 0x140083980
mov rbx, qword [rdi]
mov qword [rdi + 8], rbx
lea rcx, [rdi + 0xcc8]
call fcn.1400836cc
test al, al
je 0x140083e83
lea rcx, [rdi + 0x18]
call fcn.1400836cc
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], r13
mov dword [rbp - 0x80], 0x240
lea rax, [0x1400b3028]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
lea r8, [rsp + 0x68]
mov edx, 0x20119
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
jns 0x140083a06
mov ecx, eax
jmp 0x140083e69
mov r12d, r13d
mov dword [rsp + 0x48], r13d
mov esi, 2
lea r14d, [rsi - 1]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2028
lea r9, [rbp + 0x1950]
xor r8d, r8d
mov edx, r12d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140083e4f
cmp dword [rsp + 0x30], 0x2028
je 0x140083e4f
mov ecx, dword [rbp + 0x195c]
mov word [rbp - 0x68], cx
lea eax, [rsi + rcx]
mov word [rbp - 0x66], ax
lea rax, [rbp + 0x1960]
mov qword [rbp - 0x60], rax
movzx eax, cx
shr rax, 1
mov word [rbp + rax*2 + 0x1960], r13w
mov qword [rsp + 0x38], r13
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x58]
call fcn.1400462e0
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140082998
nop
lea rcx, [rbp - 0x58]
call fcn.140046270
lea rcx, [rbp - 0x10]
call fcn.1400836cc
test al, al
je 0x140083b12
mov ecx, 0xc0000034
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, ebx
je 0x140083b12
mov rax, qword [rdi + 8]
cmp qword [rdi + 0x10], rax
je 0x140083b03
lea rdx, [rbp - 0x10]
mov rcx, rax
call fcn.140082c80
add qword [rdi + 8], 0xcb0
jmp 0x140083b12
lea r8, [rbp - 0x10]
mov rdx, rax
mov rcx, rdi
call fcn.140085c4c
mov dword [rsp + 0x68], 0x30
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x80], 0x240
lea rax, [rbp - 0x68]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
lea r8, [rsp + 0x68]
mov edx, 0x20119
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
jns 0x140083b87
mov ebx, r13d
lea rcx, [rbp - 0x10]
call fcn.14006da78
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140083e4f
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
jmp 0x140083e4f
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2028
lea r9, [rbp + 0x1950]
mov r8d, esi
lea rdx, [0x1400b3018]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x140083b5b
cmp dword [rbp + 0x1954], 4
jne 0x140083b5b
cmp dword [rbp + 0x1958], 4
jne 0x140083b5b
cmp dword [rbp + 0x195c], r13d
je 0x140083b5b
mov r15d, r13d
mov r12d, 2
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2028
lea r9, [rbp + 0x1950]
xor r8d, r8d
mov edx, r15d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
nop dword [rax + rax]
mov esi, eax
test eax, eax
js 0x140083e17
mov ebx, 0x2028
cmp dword [rsp + 0x30], ebx
je 0x140083e17
mov ecx, dword [rbp + 0x195c]
mov word [rsp + 0x50], cx
lea eax, [r12 + rcx]
mov word [rsp + 0x52], ax
lea rax, [rbp + 0x1960]
mov qword [rsp + 0x58], rax
movzx eax, cx
shr rax, 1
mov word [rbp + rax*2 + 0x1960], r13w
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x68], 0x30
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x80], 0x240
lea rax, [rsp + 0x50]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
lea r8, [rsp + 0x68]
mov edx, 0x20119
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x140083dfe
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0x1950]
mov r8d, r12d
lea rdx, [0x1400b3038]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov esi, eax
test eax, eax
js 0x140083dfe
cmp dword [rbp + 0x1954], r14d
jne 0x140083dfe
mov edx, dword [rbp + 0x1958]
cmp edx, 0xfffe
ja 0x140083dfe
movzx eax, dx
sub ax, r12w
movzx ecx, ax
mov word [rsp + 0x50], cx
mov word [rsp + 0x52], dx
lea rdx, [rbp + 0x195c]
mov qword [rsp + 0x58], rdx
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 + 0x195c], r13w
je 0x140083d64
cmp dword [rsp + 0x30], ebx
je 0x140083e01
add cx, r12w
mov word [rsp + 0x50], cx
movzx eax, cx
shr rax, 1
mov word [rbp + rax*2 + 0x195c], r13w
add word [rsp + 0x52], r12w
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x38]
call fcn.1400462e0
nop
mov rdx, rax
lea rcx, [rbp + 0xca0]
call fcn.140082998
nop
lea rcx, [rbp - 0x38]
call fcn.140046270
lea rcx, [rbp + 0xca0]
call fcn.1400836cc
test al, al
je 0x140083df0
mov ecx, 0xc0000034
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, ebx
je 0x140083df0
mov rax, qword [rdi + 8]
cmp qword [rdi + 0x10], rax
je 0x140083ddd
lea rdx, [rbp + 0xca0]
mov rcx, rax
call fcn.140082c80
add qword [rdi + 8], 0xcb0
jmp 0x140083df0
lea r8, [rbp + 0xca0]
mov rdx, rax
mov rcx, rdi
call fcn.140085c4c
nop
lea rcx, [rbp + 0xca0]
call fcn.14006da78
jmp 0x140083e01
mov esi, r13d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140083e17
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
add r15d, r14d
test esi, esi
jns 0x140083be3
mov ebx, r13d
lea rcx, [rbp - 0x10]
call fcn.14006da78
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
mov r12d, dword [rsp + 0x48]
je 0x140083e4a
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov esi, 2
add r12d, r14d
mov dword [rsp + 0x48], r12d
test ebx, ebx
jns 0x140083a17
cmp ebx, 0x8000001a
je 0x140083e86
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov r14b, r13b
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140083e9c
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov al, r14b
mov rcx, qword [rbp + 0x3980]
xor rcx, rsp
call fcn.1400abb00
lea r11, [rsp + 0x3a90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret