Function at 0x140025940
Capabilities:
Check if file exists
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rdi
sub rsp, 0xec0
mov rax, qword [0x1403c86e8]
xor rax, rsp
mov qword [rsp + 0xeb0], rax
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
mov dword [0x1403dcad4], 0
mov byte [rsp + 0x180], 0
lea rax, [rsp + 0x181]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov dword [rsp + 0x58], 0x104
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x180]
call fcn.1400208cc
cmp eax, 1
je 0x1400259b8
mov eax, dword [rsp + 0x54]
jmp 0x140026036
mov byte [rsp + 0x70], 0
lea rax, [rsp + 0x71]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea rax, [0x1403dd0e8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x180]
lea r8, [0x1403642c0]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.1400453f4
mov qword [rsp + 0x60], 0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x180]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 2
jne 0x140025a71
lea rcx, [0x1403dc8c0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140025a6f
lea rcx, str.SeRestorePrivilege
call fcn.140025864
test eax, eax
je 0x140025a6f
lea r8, [0x1403dc8c0]
lea rdx, [rsp + 0x180]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
jne 0x140025a6f
mov dword [rsp + 0x50], 1
jmp 0x140025a7c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rsp + 0x5c0], 0
lea rax, [rsp + 0x5c1]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x5c0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [0x1403dd030]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [rsp + 0x38], eax
mov byte [rsp + 0x4b0], 0
lea rax, [rsp + 0x4b1]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea r9, [0x1403dc7a4]
lea r8, [0x1403dcfa8]
lea rdx, [0x1403642dc]
lea rcx, [rsp + 0x4b0]
call fcn.14002a514
cmp dword [rsp + 0x38], 0
jne 0x140025b52
lea rdx, [rsp + 0x4b0]
lea rcx, [rsp + 0x5c0]
call fcn.14028d434
test rax, rax
je 0x140025b52
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x3c], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [0x1403dd050]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140026016
cmp dword [rsp + 0x3c], 1
jne 0x140026016
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [0x1403dd040]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [0x1403dd030]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov byte [rsp + 0x290], 0
lea rax, [rsp + 0x291]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x290]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [0x1403dd020]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov byte [rsp + 0x3a0], 0
lea rax, [rsp + 0x3a1]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [0x1403dd010]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [rsp + 0x48], 0
mov byte [rsp + 0x6d0], 0
lea rax, [rsp + 0x6d1]
mov rdi, rax
xor eax, eax
mov ecx, 0x3e7
rep stosb byte [rdi], al
mov dword [rsp + 0x34], 3
mov dword [rsp + 0x30], 0x3e8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [0x1403dcff0]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], 0
mov byte [rsp + 0xac0], 0
lea rax, [rsp + 0xac1]
mov rdi, rax
xor eax, eax
mov ecx, 0x3e7
rep stosb byte [rdi], al
mov dword [rsp + 0x34], 3
mov dword [rsp + 0x30], 0x3e8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xac0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, [0x1403dcfd8]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x4c], eax
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.14028bc50
lea rax, [0x1403dd0a8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x180]
lea r8, [0x1403642e4]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.1400453f4
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
lea r8, [0x1403dd040]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
lea r8, [0x1403dd030]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov dword [rsp + 0x34], 1
lea rcx, [rsp + 0x290]
call fcn.1402958f0
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x290]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
lea r8, [0x1403dd020]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov dword [rsp + 0x34], 1
lea rcx, [rsp + 0x3a0]
call fcn.1402958f0
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x3a0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
lea r8, [0x1403dd010]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov r8d, 0x104
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.14028bc50
lea rax, [0x1403dd060]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x180]
lea r8, [0x1403642ec]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.1400453f4
mov dword [rsp + 0x34], 3
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x6d0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
lea r8, [0x1403dcff0]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov dword [rsp + 0x34], 3
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xac0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
lea r8, [0x1403dcfd8]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000003
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
cmp dword [rsp + 0x50], 0
je 0x140026032
lea rdx, [rsp + 0x180]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0xeb0]
xor rcx, rsp
call fcn.140286010
add rsp, 0xec0
pop rdi
ret