Function at 0x18000f148
Capabilities:
Delete registry key
Persist via screensaver registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r15d, r15d
mov r14, rdx
mov rdi, rcx
lea ebx, [r15 + 8]
lea rdx, [rbp - 0x10]
mov r13, r9
mov ecx, ebx
mov r12, r8
mov dword [rbp - 0x30], r15d
mov sil, r15b
call qword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
jne 0x18000f5fc
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x28]
lea r9d, [r15 + 3]
lea rdx, str.Control_PanelDesktop
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000f5f2
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
lea r9d, [r15 + 4]
lea rdx, str.Control_Panel
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000f5e8
mov rcx, qword [rbp - 0x18]
mov qword [rsp + 0x40], r15
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18000f5d1
mov r8d, 0x200
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18000f5c2
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
lea rdx, str.SCRNSAVE.EXE
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f2e3
mov r9d, dword [rbp - 0x30]
lea edx, [rax + 8]
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
test rax, rax
je 0x18000f620
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
lea rdx, str.SCRNSAVE.EXE
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f5b4
mov eax, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x20]
lea r9d, [r15 + 1]
mov dword [rsp + 0x28], eax
lea rdx, str.SCRNSAVE.EXE
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x18000f5b4
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
lea rdx, str.ScreenSaveActive
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f386
mov r9d, dword [rbp - 0x30]
lea edx, [rax + 8]
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
test rax, rax
je 0x18000f620
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
lea rdx, str.ScreenSaveActive
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f5b4
mov eax, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x20]
lea rdx, str.ScreenSaveActive
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x18000f5b4
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
lea rdx, str.ScreenSaverIsSecure
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f429
mov r9d, dword [rbp - 0x30]
lea edx, [rax + 8]
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
test rax, rax
je 0x18000f620
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
lea rdx, str.ScreenSaverIsSecure
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f5b4
mov eax, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x20]
lea rdx, str.ScreenSaverIsSecure
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x18000f5b4
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
lea rdx, str.ScreenSaveTimeOut
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f4cc
mov r9d, dword [rbp - 0x30]
lea edx, [rax + 8]
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
test rax, rax
je 0x18000f620
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
lea rdx, str.ScreenSaveTimeOut
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000f5b4
mov eax, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x20]
lea rdx, str.ScreenSaveTimeOut
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x18000f5b4
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcslen]
lea rdx, str.SCRNSAVE.EXE
mov r9d, 1
lea ecx, [rax + rax + 2]
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x28]
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x18000f5b4
lea r15, [0x18003ab78]
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcslen]
lea rdx, str.ScreenSaveActive
mov r9d, 1
lea ecx, [rax + rax + 2]
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x28]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x18000f5b4
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcslen]
mov r13d, 1
lea rdx, str.ScreenSaverIsSecure
lea ecx, [rax + rax + 2]
lea rax, [0x18003ac64]
mov r9d, r13d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x28]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x18000f5b4
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcslen]
lea rdx, str.ScreenSaveTimeOut
mov r9d, r13d
lea ecx, [rax + rax + 2]
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x28]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx esi, sil
test eax, eax
cmove esi, r13d
mov r8, rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test sil, sil
jne 0x18000f5de
mov rcx, qword [rbp - 0x18]
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x80]
mov al, sil
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, str._HeapFree__NULL_n
mov ecx, 0x83
call fcn.180030818
jmp 0x18000f5c2