Function at 0x100002650
Capabilities:
Get common file path
Persist via run 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 r13
sub rsp, 0x290
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov ebx, 0x103
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8, rbx
mov byte [rsp + 0x60], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x171]
mov r8, rbx
xor edx, edx
mov byte [rsp + 0x170], 0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x58]
xor edi, edi
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
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 0x1000028e8
xor ebx, ebx
mov esi, 0xc8
lea r8, str.wextract_cleanup_d
lea rcx, [0x1000103f0]
mov r9d, ebx
mov edx, 0x50
call fcn.100001ac4
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 0x100002749
inc ebx
cmp ebx, esi
jl 0x1000026fd
cmp ebx, esi
jne 0x100002764
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x1000103f0], dil
jmp 0x1000028e8
mov esi, 0x104
lea rcx, [rsp + 0x170]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x100001660]
lea rcx, [rsp + 0x170]
mov edx, esi
call fcn.100007fc0
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x100002849
lea rdx, [0x100001670]
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 0x100002849
lea rcx, [rsp + 0x60]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000027f1
lea r8, [0x1000015b9]
lea rcx, [rsp + 0x60]
mov edx, esi
call fcn.100007fc0
lea r13, [0x100010670]
mov rcx, r13
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 0x10000286f
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4b5
xor ecx, ecx
mov dword [rsp + 0x20], 0x10
call fcn.100005574
jmp 0x100002862
mov rcx, qword [0x100010ee0]
lea rdx, [rsp + 0x60]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000027f1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000028e8
xor eax, eax
test edi, edi
lea r8, str._s__D:_s
sete al
test edi, edi
lea r9, [rsp + 0x60]
mov dword [0x100010440], eax
lea rax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
mov rdx, rsi
mov rcx, rbx
cmovne r8, rax
mov qword [rsp + 0x20], r13
call fcn.100001ac4
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 [rsp + 0x280]
xor rcx, rsp
call fcn.10000c9f0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret