Function at 0x100002658
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov ebx, 0x103
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, ebx
mov byte [rsp + 0x60], 0
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x71]
mov r8d, ebx
xor edx, edx
mov byte [rbp + 0x70], 0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x58]
xor edi, edi
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
lea rdx, [0x10000f5c8]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000028e5
xor ebx, ebx
mov esi, 0xc8
lea r8, [0x10000f658]
lea rcx, [0x1000103f0]
mov r9d, ebx
mov edx, 0x50
call fcn.100001b10
mov rcx, qword [rsp + 0x50]
lea r11, [rsp + 0x5c]
mov qword [rsp + 0x28], r11
and qword [rsp + 0x20], rdi
lea rdx, [0x1000103f0]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100002752
inc ebx
cmp ebx, esi
jl 0x100002706
cmp ebx, esi
jne 0x10000276d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x1000103f0], dil
jmp 0x1000028e5
mov esi, 0x104
lea rcx, [rbp + 0x70]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x1000016b0]
lea rcx, [rbp + 0x70]
mov edx, esi
call fcn.100007ddc
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x100002846
lea rdx, [0x1000016c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
test rax, rax
setne dil
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x100002846
lea rcx, [rsp + 0x60]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000027ee
lea r8, [0x100001609]
lea rcx, [rsp + 0x60]
mov edx, esi
call fcn.100007ddc
lea r14, [0x100010670]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [rbx + rax + 0x50]
mov esi, ecx
mov edx, ecx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x10000286c
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4b5
xor ecx, ecx
mov dword [rsp + 0x20], InitCommonControls
call fcn.100005420
jmp 0x10000285f
mov rcx, qword [0x100010ee0]
lea rdx, [rsp + 0x60]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000027ee
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000028e5
xor eax, eax
test edi, edi
lea r8, [0x10000f6b8]
sete al
test edi, edi
lea r9, [rsp + 0x60]
mov dword [0x100010440], eax
lea rax, [0x10000f6c8]
mov rdx, rsi
mov rcx, rbx
cmovne r8, rax
mov qword [rsp + 0x20], r14
call fcn.100001b10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x50]
lea rdx, [0x1000103f0]
inc eax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.10000c380
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret