Function at 0x1400637f0
Capabilities:
Delete registry value
Get common file path

Disassembly:
mov word [rsp + 8], cx
push rsi
push rdi
sub rsp, 0x2c8
mov rax, qword [0x14009ec98]
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
movzx eax, word [rsp + 0x2e0]
cmp eax, 0x61
jl 0x140063861
movzx eax, word [rsp + 0x2e0]
cmp eax, 0x7a
jg 0x140063861
movzx eax, word [rsp + 0x2e0]
sub eax, 0x20
mov word [rsp + 0x2e0], ax
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0xb0]
cmp eax, 0x61
jl 0x1400638b2
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0xb0]
cmp eax, 0x7a
jg 0x1400638b2
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0xb0]
sub eax, 0x20
mov ecx, 2
imul rcx, rcx, 0
mov word [rsp + rcx + 0xb0], ax
mov rax, qword [0x14009ec60]
mov qword [rsp + 0x50], rax
mov eax, 2
imul rax, rax, 0
movzx ecx, word [rsp + 0x2e0]
mov word [rsp + rax + 0x50], cx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140063987
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x88], 0x4000
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x28
lea r8, [rsp + 0x88]
mov edx, 0x98144
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0xb0]
movzx ecx, word [rsp + 0x2e0]
cmp eax, ecx
jne 0x140063a9e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140063a42
lea r8, [rsp + 0x58]
lea rdx, str.SeBackupPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140063a42
mov dword [rsp + 0x68], 1
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov qword [rsp + rax + 0x6c], rcx
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
imul rax, rax, 0
mov dword [rsp + rax + 0x74], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [rsp + 0x40], eax
lea r8, str.LastAliveStamp
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionReliability
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, 0xffffffff80000005
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
lea rax, [rsp + 0x78]
lea rcx, str.._:
mov rdi, rax
mov rsi, rcx
mov ecx, InitCommonControls
rep movsb byte [rdi], byte [rsi]
mov eax, 2
imul rax, rax, 4
movzx ecx, word [rsp + 0x2e0]
mov word [rsp + rax + 0x78], cx
lea rcx, [rsp + 0x78]
call fcn.140063af0
add rsp, 0x2c8
pop rdi
pop rsi
ret