Function at 0x140001ffc
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 r12
push r14
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov rax, qword [0x140009110]
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 esi, esi
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], reloc.msvcrt.dll___C_specific_handler
and dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000229b
xor ebx, ebx
mov edi, 0xc8
lea r8, str.wextract_cleanup_d
lea rcx, [0x1400099e0]
mov r9d, ebx
mov edx, 0x50
call fcn.1400014e4
mov rcx, qword [rsp + 0x50]
lea r11, [rsp + 0x5c]
mov qword [rsp + 0x28], r11
and qword [rsp + 0x20], rsi
lea rdx, [0x1400099e0]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400020f6
inc ebx
cmp ebx, edi
jl 0x1400020aa
cmp ebx, edi
jne 0x140002111
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x1400099e0], sil
jmp 0x14000229b
mov edi, 0x104
lea rcx, [rbp + 0x70]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x140001118]
lea rcx, [rbp + 0x70]
mov edx, edi
call fcn.1400078e4
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400021fc
lea rdx, [0x140001128]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
test rax, rax
setne sil
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x1400021fc
lea rcx, [rsp + 0x60]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140002196
lea r8, [0x140001070]
lea rcx, [rsp + 0x60]
mov edx, edi
call fcn.1400078e4
or rbx, 0xffffffffffffffff
lea r12, [0x14000a810]
mov rax, rbx
inc rax
cmp byte [r12 + rax], 0
jne 0x1400021a4
lea rdx, [rsp + 0x60]
mov rcx, rbx
inc rcx
cmp byte [rdx + rcx], 0
jne 0x1400021b6
add ecx, 0x50
add eax, ecx
mov ecx, 0x40
mov edx, eax
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x140002222
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4b5
xor ecx, ecx
mov dword [rsp + 0x20], 0x10
call fcn.140004e14
jmp 0x140002215
mov rcx, qword [0x14000a748]
lea rdx, [rsp + 0x60]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140002196
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000229b
xor eax, eax
test esi, esi
lea r8, str._s__D:_s
sete al
test esi, esi
lea r9, [rsp + 0x60]
mov dword [0x1400099d0], eax
lea rax, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
mov rdx, r14
mov rcx, rdi
cmovne r8, rax
mov qword [rsp + 0x20], r12
call fcn.1400014e4
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140002258
mov rcx, qword [rsp + 0x50]
inc ebx
lea rdx, [0x1400099e0]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400080a0
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 r12
pop rbp
ret