Function at 0x10000480c
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 r13
push r14
push r15
lea rbp, [rax - 0x488]
sub rsp, 0x560
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor r15d, r15d
cmp dword [0x100011408], r15d
mov r14d, r15d
mov r13d, r15d
mov dword [0x100010488], r15d
jne 0x1000048ab
lea r8d, [r15 + 4]
lea rdx, [0x100010ebc]
lea rcx, [0x1000017b8]
call fcn.100005680
test eax, eax
je 0x10000487c
cmp eax, 4
jbe 0x1000048ab
mov edi, InitCommonControls
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4b1
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call fcn.100005420
mov dword [0x100010488], 0x80070714
jmp 0x100004d53
mov edi, InitCommonControls
mov r12d, r15d
lea esi, [rdi - 0xf]
mov ebx, 3
lea rcx, [rbp - 0x80]
xor edx, edx
lea r8d, [rbx + 0x65]
mov dword [rsp + 0x38], r15d
call sub.msvcrt.dll_memset
cmp byte [0x100011622], r15b
mov dword [rbp - 0x80], 0x68
jne 0x1000049ce
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x3c]
lea rcx, [0x1000017c0]
call fcn.100005680
test eax, eax
je 0x100004881
cmp eax, 4
ja 0x100004881
mov eax, dword [rsp + 0x3c]
cmp eax, esi
jne 0x100004910
mov word [rbp - 0x40], r15w
jmp 0x100004928
cmp eax, 2
jne 0x100004920
mov eax, 6
mov word [rbp - 0x40], ax
jmp 0x100004928
cmp eax, ebx
jne 0x10000492b
mov word [rbp - 0x40], bx
mov dword [rbp - 0x44], esi
test r12d, r12d
jne 0x100004a0e
movzx eax, word [0x100011418]
test ax, ax
je 0x1000049a5
test sil, al
je 0x10000494e
lea rcx, [0x1000017d0]
jmp 0x10000495d
test al, 2
je 0x100004d53
lea rcx, [0x1000017d8]
lea rdx, [rbp - 0x10]
mov r8d, 0x104
call fcn.100005680
test eax, eax
je 0x100004881
lea rcx, [0x1000017b0]
or eax, 0xffffffff
lea r8, [rbp - 0x10]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov ecx, 0x7f
mov r9d, eax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, 2
cmp eax, 0xfffffffe
cmovne r14d, esi
test r14d, r14d
jne 0x100004a6e
lea rdx, [rbp - 0x10]
lea rcx, [0x1000017e0]
mov r8d, 0x104
call fcn.100005680
test eax, eax
je 0x100004881
jmp 0x100004a0e
lea r8, [0x100011622]
lea rax, [rbp - 0x10]
mov edx, 0x104
sub r8, rax
lea rcx, [rbp - 0x10]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100004a03
mov al, byte [r8 + rcx]
test al, al
je 0x100004a03
mov byte [rcx], al
add rcx, rsi
sub rdx, rsi
jne 0x1000049e5
test rdx, rdx
jne 0x100004a0b
sub rcx, rsi
mov byte [rcx], r15b
cmp r12d, esi
jne 0x100004a6e
lea rdx, [rbp - 0x10]
lea rcx, [0x1000017f0]
mov r8d, 0x104
call fcn.100005680
test eax, eax
je 0x100004881
cmp byte [0x100011622], r15b
jne 0x100004c04
lea rcx, [0x1000017b0]
or eax, 0xffffffff
lea r8, [rbp - 0x10]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov ecx, 0x7f
mov r9d, eax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
je 0x100004c04
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.100001fbc
test eax, eax
je 0x100004d53
mov ebx, dword [rsp + 0x38]
test r13d, r13d
jne 0x100004ab0
cmp word [0x100010490], si
je 0x100004ab0
cmp dword [0x100011400], r15d
je 0x100004ab0
test ebx, ebx
jne 0x100004ab8
mov r13d, esi
call fcn.100002658
test ebx, ebx
je 0x100004bcc
cmp dword [0x10000f48c], r15d
je 0x100004de6
test ebx, ebx
je 0x100004bcc
test byte [0x100010ec4], 4
je 0x100004bcc
call fcn.100007bbc
mov rsi, rax
test rax, rax
je 0x100004dc5
lea rdx, [0x10000f4e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
test rax, rax
je 0x100004d85
cmp dword [0x100011410], r15d
movzx ecx, word [0x100010490]
mov rbx, qword [rsp + 0x30]
lea rax, [0x1000105d8]
mov word [rsp + 0x68], cx
movzx ecx, word [0x100011418]
mov qword [rsp + 0x48], rax
lea rax, [0x100010670]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x6c], ecx
je 0x100004b5f
bts ecx, 0x10
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x100010ec4]
test al, 8
je 0x100004b71
bts ecx, 0x11
mov dword [rsp + 0x6c], ecx
test dil, al
je 0x100004b7e
bts ecx, 0x12
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x100011728]
test al, 0x40
je 0x100004b90
bts ecx, 0x13
mov dword [rsp + 0x6c], ecx
test al, al
jns 0x100004b9c
bts ecx, 0x14
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x100010ec8]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x70], eax
call r11
mov rcx, rsi
mov dword [0x100010488], eax
test eax, eax
js 0x100004d44
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, 1
jmp 0x100004bee
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x100004d4a
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.100004e24
test eax, eax
je 0x100004d4a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
add r12d, esi
cmp r12d, 2
jb 0x1000048b6
cmp dword [0x100010440], r15d
je 0x100004d40
cmp byte [0x1000103f0], r15b
je 0x100004d40
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100004d40
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, [0x1000103f0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x210]
mov ebx, 0x238
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100004d35
lea rcx, [rbp + 0x101]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x100], r15b
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x100]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100004cd5
lea r8, [0x100001609]
lea rcx, [rbp + 0x100]
mov edx, 0x104
call fcn.100007ddc
lea rax, [0x100010670]
lea r9, [rbp + 0x100]
lea r8, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea rcx, [rbp + 0x210]
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.100001b10
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rbp + 0x210]
lea rdx, [0x1000103f0]
add eax, esi
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100004d55
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.10000c380
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea r8, [0x10000f4e0]
xor r9d, r9d
mov edx, 0x4c9
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call fcn.100005420
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.100007924
mov dword [0x100010488], eax
jmp 0x100004d53
lea r8, [0x1000016b0]
xor r9d, r9d
mov edx, 0x4c8
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call fcn.100005420
jmp 0x100004dad
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4c7
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call fcn.100005420
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x100010488], 0x8007042b
jmp 0x100004d53