Function at 0x140056a60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
xor edi, edi
mov qword [rbp - 0x78], rcx
xorps xmm0, xmm0
mov qword [rsp + 0x70], rdi
lea rcx, [rbp + 0x4f0]
mov dword [rbp + 0x4e8], edi
lea r8, [rsp + 0x78]
mov qword [rbp - 0x80], rdi
mov edx, 0x20019
mov dword [rsp + 0x78], 0x30
movdqu xmmword [rbp - 0x68], xmm0
mov dword [rbp - 0x70], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x140056acf
lfence
lea r9, [0x1400590c0]
mov r8d, eax
lea edx, [rdi + 0x11]
jmp 0x140056d86
lea rax, [rsp + 0x60]
mov dword [rsp + 0x78], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
lea rdx, [0x1400590e0]
mov qword [rbp - 0x80], rdi
lea rcx, [rsp + 0x60]
mov dword [rbp - 0x70], 0x40
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, 0x200
lea rax, [rbp + 0x4e0]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x40]
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x60]
mov dword [rbp + 0x4e0], ecx
mov r8d, 2
mov rcx, qword [rbp + 0x4f0]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov rcx, qword [rbp + 0x4f0]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
jns 0x140056b59
mov edx, 0x22
jmp 0x140056d7b
mov eax, dword [rbp - 0x3c]
dec eax
cmp eax, 1
ja 0x140056d76
cmp dword [rbp - 0x38], 4
jb 0x140056d76
mov eax, dword [rbp - 0x38]
mov r8d, 0x5c
shr rax, 1
mov word [rbp + rax*2 - 0x36], di
cmp word [rbp - 0x34], r8w
je 0x140056bd4
movsd xmm0, qword [0x140059100]
lea rcx, [rbp + 0x1c0]
movzx eax, word [0x140059108]
sub rcx, 2
movsd qword [rbp + 0x1c0], xmm0
mov word [rbp + 0x1c8], ax
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x140056bb2
lea r9, [rbp - 0x34]
xor edx, edx
movzx eax, word [r9 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x140056bc1
jmp 0x140056bed
mov rcx, rdi
movzx eax, word [rbp + rcx - 0x34]
mov word [rbp + rcx + 0x1c0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140056bd7
mov edx, r8d
lea rcx, [rbp + 0x1c0]
call sub.ntoskrnl.exe_wcsrchr
test rax, rax
je 0x140056c04
mov word [rax], di
mov rcx, qword [0x140052050]
lea rdx, [rbp + 0x1c0]
mov r8b, 1
call fcn.140014c78
mov qword [0x140052058], rax
test rax, rax
jne 0x140056c37
xor r9d, r9d
lea edx, [rax + 0x44]
mov r8d, 0xc000009a
jmp 0x140056d86
lea rdx, [rbp + 0x1c0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rdi
lea r9, [rbp - 0x58]
mov dword [rsp + 0x40], 0x21
lea r8, [rsp + 0x78]
mov dword [rsp + 0x38], 1
lea rcx, [rbp + 0x4f0]
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
mov dword [rsp + 0x28], edi
mov edx, 0x120089
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x78], 0x30
mov qword [rbp - 0x80], rdi
mov dword [rbp - 0x70], 0x40
mov qword [rbp - 0x78], rax
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jns 0x140056cc3
mov r8d, eax
mov edx, 0x55
jmp 0x140056d7e
mov rcx, qword [rbp + 0x4f0]
lea rax, [rbp + 0x4f8]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
test eax, eax
jns 0x140056d09
lfence
mov rcx, qword [rbp + 0x4f0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov r8d, ebx
mov edx, 0x66
jmp 0x140056d81
mov rdx, qword [rbp + 0x4f8]
lea r9, [rbp + 0x4e8]
mov rcx, qword [0x140052050]
lea r8, [rsp + 0x70]
call fcn.140014d90
mov rcx, qword [rbp + 0x4f8]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x4f0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
jns 0x140056d4f
mov edx, 0x77
jmp 0x140056d7b
mov rax, qword [rsp + 0x70]
or rcx, 0xffffffffffffffff
mov rdx, qword [rax + 8]
mov qword [0x140052060], rdx
inc rcx
cmp word [rdx + rcx*2], di
jne 0x140056d63
mov dword [0x140052068], ecx
mov al, 1
jmp 0x140056d92
mov edx, 0x33
mov r8d, ebx
lfence
mov r9, qword [rsp + 0x68]
mov ecx, 0xc1010452
call fcn.140014bb8
xor al, al
add rsp, 0x5c0
pop rdi
pop rbx
pop rbp
ret