Function at 0x140005890
Capabilities:
Check os version
Get session information
Get session user name
Impersonate user
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14002b178]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor eax, eax
lea rdi, [rcx + 0x60]
lea r12, [rcx + 0x5c]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
lea rax, str.NumLockMethod
lea r15, [rcx + 0x64]
lea rdx, [rcx + 0x68]
mov qword [rbp - 0x20], rax
lea rax, str.FadeoutTime
lea r13, [rcx + 0x58]
mov qword [rbp], rax
lea rax, str.ForegroundColor
lea r14, [rcx + 0x6c]
mov qword [rbp + 0x20], rax
lea rax, str.BackgroundColor
xor r8d, r8d
mov qword [rbp + 0x40], rax
lea rax, str.Enable
mov rsi, rcx
mov ecx, dword [0x14002b064]
mov qword [rbp + 0x60], rax
lea rax, str.DoNotShowAgain
mov qword [rbp + 0x80], rax
lea rax, str.numlk_on.png
mov qword [rsp + 0x50], r8
mov qword [rbp - 0x40], rax
lea rax, str.numlk_off.png
mov qword [rsp + 0x68], 0x38
mov qword [rbp - 0x38], rax
lea rax, str.capslk_on.png
mov dword [rbp - 0x18], 4
mov qword [rbp - 0x30], rax
lea rax, str.capslk_off.png
mov qword [rbp - 0x10], rdi
mov dword [rbp - 8], 4
mov dword [rbp + 8], 4
mov qword [rbp + 0x10], r12
mov qword [rbp - 0x28], rax
mov dword [rbp + 0x18], 4
mov dword [rbp + 0x28], 4
mov qword [rbp + 0x30], r15
mov dword [rbp + 0x38], 4
mov dword [rbp + 0x48], 4
mov qword [rbp + 0x50], rdx
mov dword [rbp + 0x58], 4
mov dword [rbp + 0x68], 4
mov qword [rbp + 0x70], r13
mov dword [rbp + 0x78], 4
mov dword [rbp + 0x88], 4
mov qword [rbp + 0x90], r14
mov dword [rbp + 0x98], 4
mov qword [rbp - 0x60], 0x65
mov qword [rbp - 0x58], 0x66
mov qword [rbp - 0x50], 0x67
mov qword [rbp - 0x48], 0x68
test ecx, ecx
jne 0x140005a3a
lea rcx, [0x14002b060]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [0x14002b064]
lea rdx, [rsi + 0x68]
xor r8d, r8d
mov eax, 1
cmp ecx, 6
ja 0x140005a54
jne 0x140005a4f
cmp dword [0x14002b068], 2
jae 0x140005a54
mov ebx, r8d
jmp 0x140005a5d
cmp ecx, 0xa
mov ebx, eax
mov ecx, eax
jb 0x140005a60
mov ecx, r8d
or r10d, 0xffffffff
test ecx, ecx
mov dword [r12], 0xbb8
cmovne eax, r10d
mov dword [r15], 0xffffff
mov dword [rdx], r8d
mov dword [rdi], r8d
mov dword [r14], r8d
mov dword [r13], eax
mov eax, dword [0x14002b064]
cmp eax, 5
jbe 0x140005af3
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x70]
mov r8d, 5
mov edx, r10d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x140005bd1
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rdx, [rsp + 0x50]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x140005bd1
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x140005bd1
mov eax, dword [0x14002b064]
xor r8d, r8d
mov qword [rsp + 0x40], r8
lea rcx, str.SOFTWARELenovoOnScreenDisplay
test ebx, ebx
lea rdx, str.SOFTWAREIBMTPHOTKEYOnScreenDisplay
cmovne rdx, rcx
cmp eax, 5
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov rcx, 0xffffffff80000001
cmova rcx, qword [rbp - 0x68]
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140005bd1
xor edi, edi
lea rbx, [rbp - 0x10]
nop word [rax + rax]
mov rdx, qword [rbx - 0x10]
mov rcx, qword [rsp + 0x58]
movsxd rax, edi
shl rax, 5
xor r9d, r9d
xor r8d, r8d
lea rax, [rbp + rax - 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140005bbb
test edi, edi
jne 0x140005bbb
mov eax, dword [rbx - 8]
mov r9d, dword [rbx + 8]
mov rdx, qword [rbx - 0x10]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc edi
add rbx, 0x20
cmp edi, 6
jb 0x140005b60
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x68]
test rdx, rdx
je 0x140005be5
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140005bf4
call sub.WTSAPI32.dll_WTSFreeMemory
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140005c04
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x140005c13
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x140005c22
call qword [sym.imp.GDI32.dll_DeleteObject]
lea r13, [rsi + 0xa0]
mov edi, 2
mov rbx, r13
mov rcx, qword [rbx - 0x10]
test rcx, rcx
je 0x140005c40
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140005c4e
call qword [sym.imp.GDI32.dll_DeleteObject]
add rbx, 8
dec rdi
jne 0x140005c31
mov ecx, dword [r15]
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [rsi + 0x68]
lea r14, [rsi + 0x68]
mov qword [rsi + 0x70], rax
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
xor ebx, ebx
mov qword [rsi + 0x78], rax
lea rsi, [0x14002cb88]
mov r12d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, qword [rbp + r12 - 0x60]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_LoadImageW]
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, qword [rbp + r12 - 0x58]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_LoadImageW]
mov r8d, dword [r14]
mov edx, dword [r15]
mov rcx, rdi
mov rbx, rax
call fcn.140004d00
mov rcx, rbx
mov qword [r13 - 0x10], rax
mov r8d, dword [r14]
mov edx, dword [r15]
call fcn.140004d00
mov rcx, rdi
mov qword [r13], rax
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rdx, qword [rbp + r12 - 0x40]
lea rcx, [rsi - 0x410]
sub rdx, rcx
mov r11d, 0x104
lea rax, [r11 + 0x7ffffefa]
test rax, rax
je 0x140005d45
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140005d45
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x140005d22
jmp 0x140005d4a
test r11, r11
jne 0x140005d4e
sub rcx, 2
mov r8, qword [rbp + r12 - 0x38]
xor ebx, ebx
mov edx, 0x104
mov word [rcx], bx
sub r8, rsi
mov rcx, rsi
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005d87
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140005d87
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140005d63
jmp 0x140005d8c
test rdx, rdx
jne 0x140005d90
sub rcx, 2
lea rax, [0x14002cf98]
add rsi, 0x208
add r13, 8
add r12, 0x10
mov word [rcx], bx
cmp rsi, rax
jl 0x140005c81
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140007f10
lea r11, [rsp + 0x1b0]
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