Function at 0x1000054c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
lea rdx, str.SYSTEMCurrentControlSetControlWinInit
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x10000850d
lea rcx, str.wls0wndh.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1000085a6
lea rdx, str.Session0ViewerWindowProcHook
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x100008601
mov rcx, qword [0x10001d208]
call qword [sym.imp.USER32.dll_SetThreadDesktop]
test eax, eax
je 0x10000865c
xor r9d, r9d
mov r8, rbx
mov rdx, rdi
lea ecx, [r9 + 4]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x10001d218], rax
test rax, rax
je 0x1000086b1
mov rcx, qword [0x10001d1e0]
lea rax, [0x10001d1e0]
cmp rcx, rax
je 0x10000559d
test byte [rcx + 0x1c], 1
je 0x10000559d
cmp byte [rcx + 0x19], 4
jb 0x10000559d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100015650]
mov edx, 0x6d
call fcn.10000121c
mov rcx, qword [0x10001d208]
xor edx, edx
call fcn.1000055d0
test rbx, rbx
je 0x1000055b9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
add rsp, 0x38
pop rdi
pop rbx
ret
and dword [rsp + 0x60], eax
and dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
lea rdx, str.DisableS0Viewer
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 4
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [rsp + 0x50], 0
je 0x1000054fc
mov rcx, qword [0x10001d1e0]
lea rax, [0x10001d1e0]
cmp rcx, rax
je 0x1000055b9
test byte [rcx + 0x1c], 1
je 0x1000055b9
cmp byte [rcx + 0x19], 3
jb 0x1000055b9
mov rcx, qword [rcx + 0x10]
lea r8, [0x100015650]
mov edx, 0x68
call fcn.10000121c
jmp 0x1000055b9
mov rcx, qword [0x10001d1e0]
lea rax, [0x10001d1e0]
cmp rcx, rax
je 0x1000055ab
test byte [rcx + 0x1c], 1
je 0x1000055ab
cmp byte [rcx + 0x19], 2
jb 0x1000055ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10001d1e0]
lea edx, [rbx + 0x69]
mov rcx, qword [rcx + 0x10]
lea r9, str.wls0wndh.dll
lea r8, [0x100015650]
mov dword [rsp + 0x20], eax
call fcn.10000a918
jmp 0x1000055ab
mov rcx, qword [0x10001d1e0]
lea rax, [0x10001d1e0]
cmp rcx, rax
je 0x1000055ab
test byte [rcx + 0x1c], 1
je 0x1000055ab
cmp byte [rcx + 0x19], 2
jb 0x1000055ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10001d1e0]
lea edx, [rdi + 0x6a]
mov rcx, qword [rcx + 0x10]
lea r9, str.Session0ViewerWindowProcHook
lea r8, [0x100015650]
mov dword [rsp + 0x20], eax
call fcn.10000a9b0
jmp 0x1000055ab
mov rcx, qword [0x10001d1e0]
lea rax, [0x10001d1e0]
cmp rcx, rax
je 0x1000055ab
test byte [rcx + 0x1c], 1
je 0x1000055ab
cmp byte [rcx + 0x19], 2
jb 0x1000055ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10001d1e0]
lea r8, [0x100015650]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x6b
call fcn.100001e70
jmp 0x1000055ab
mov rcx, qword [0x10001d1e0]
lea rax, [0x10001d1e0]
cmp rcx, rax
je 0x10000559d
test byte [rcx + 0x1c], 1
je 0x10000559d
cmp byte [rcx + 0x19], 2
jb 0x10000559d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10001d1e0]
lea r8, [0x100015650]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x6c
call fcn.100001e70
jmp 0x10000559d