Function at 0x7ff662981d28
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
push rbp
push r13
push r14
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov rax, qword [0x7ff66298c008]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov esi, 0x104
lea rcx, [rsp + 0x60]
mov r8d, esi
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, esi
lea rcx, [rbp + 0x70]
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x58]
xor r14d, r14d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], r14
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x7ff662982019
xor ebx, ebx
lea edi, [rsi - 0x3c]
mov r9d, ebx
lea r8, str.wextract_cleanup_d
mov edx, 0x50
lea rcx, [0x7ff66298c7d0]
call fcn.7ff66298114c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rdx, [0x7ff66298c7d0]
and qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x7ff662981e25
inc ebx
cmp ebx, edi
jl 0x7ff662981dd3
cmp ebx, edi
jne 0x7ff662981e46
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov byte [0x7ff66298c7d0], r14b
jmp 0x7ff662982019
mov edx, esi
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
lea r8, [0x7ff6629897a8]
mov edx, esi
lea rcx, [rbp + 0x70]
call fcn.7ff662987ba8
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x7ff662981f55
lea rdx, [0x7ff6629897b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
mov rcx, rdi
mov rbx, rax
setne r14b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
test rbx, rbx
je 0x7ff662981f55
mov edx, esi
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x7ff662981ee8
lea r8, [0x7ff662989700]
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.7ff662987ba8
or rbx, 0xffffffffffffffff
lea r13, [0x7ff66298d610]
mov rax, rbx
inc rax
cmp byte [rax + r13], 0
jne 0x7ff662981ef6
lea rdx, [rsp + 0x60]
mov rcx, rbx
inc rcx
cmp byte [rdx + rcx], 0
jne 0x7ff662981f08
add rax, 0x50
add rax, rcx
mov ecx, 0x40
mov edx, eax
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x7ff662981f8e
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x10
mov edx, 0x4b5
xor ecx, ecx
call fcn.7ff662984dcc
jmp 0x7ff662981f78
mov rcx, qword [0x7ff66298de70]
lea rdx, [rsp + 0x60]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop dword [rax + rax]
test eax, eax
jne 0x7ff662981ee8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x7ff662982019
mov eax, r14d
mov qword [rsp + 0x20], r13
xor eax, 1
lea r8, str._s__D:_s
mov dword [0x7ff66298c820], eax
lea r9, [rsp + 0x60]
test r14d, r14d
lea rax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
mov rdx, rsi
mov rcx, rdi
cmovne r8, rax
call fcn.7ff66298114c
inc rbx
cmp byte [rdi + rbx], 0
jne 0x7ff662981fc4
mov rcx, qword [rsp + 0x50]
lea rdx, [0x7ff66298c7d0]
inc ebx
mov r9d, 1
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.7ff662988470
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop rbp
ret