Function at 0x140003d64
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 [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor esi, esi
cmp dword [0x14000cd08], esi
mov r12d, esi
mov r13d, esi
mov dword [0x14000d544], esi
jne 0x140003dfb
lea r8d, [rsi + 4]
lea rdx, [0x14000de5c]
lea rcx, str.REBOOT
call fcn.140004ba4
dec eax
cmp eax, 3
jbe 0x140003dfb
lea edi, [rsi + 0x10]
mov dword [rsp + 0x28], esi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov edx, 0x4b1
xor ecx, ecx
call fcn.140004960
mov dword [0x14000d544], 0x80070714
jmp 0x1400042ae
mov edi, FDICreate
mov r15d, esi
or r14, 0xffffffffffffffff
lea ebx, [rdi - 0xf]
xor edx, edx
mov dword [rsp + 0x30], esi
lea rcx, [rbp - 0x80]
lea r8d, [rdx + 0x68]
call sub.msvcrt.dll_memset
cmp byte [0x14000cf22], sil
mov dword [rbp - 0x80], 0x68
jne 0x140003f20
mov r8d, 4
lea rdx, [rsp + 0x40]
lea rcx, str.SHOWWINDOW
call fcn.140004ba4
dec eax
mov ecx, 3
cmp eax, ecx
ja 0x140003dd2
mov eax, dword [rsp + 0x40]
cmp eax, ebx
jne 0x140003e65
mov word [rbp - 0x40], si
jmp 0x140003e7d
cmp eax, 2
jne 0x140003e75
mov eax, 6
mov word [rbp - 0x40], ax
jmp 0x140003e7d
cmp eax, ecx
jne 0x140003e80
mov word [rbp - 0x40], cx
mov dword [rbp - 0x44], ebx
test r15d, r15d
jne 0x140003f63
movzx eax, word [0x14000cd18]
test ax, ax
je 0x140003ef7
test bl, al
je 0x140003ea2
lea rcx, str.ADMQCMD
jmp 0x140003eb1
test al, 2
je 0x1400042ae
lea rcx, str.USRQCMD
mov r8d, 0x104
lea rdx, [rbp - 0x10]
call fcn.140004ba4
test eax, eax
je 0x140003dd2
lea rax, str._None_
mov dword [rsp + 0x28], r14d
mov r9d, r14d
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
mov edx, ebx
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, 2
cmp eax, 0xfffffffe
cmovne r12d, ebx
test r12d, r12d
jne 0x140003fc1
mov r8d, 0x104
lea rdx, [rbp - 0x10]
lea rcx, str.RUNPROGRAM
call fcn.140004ba4
test eax, eax
je 0x140003dd2
jmp 0x140003f63
lea r8, [0x14000cf22]
mov edx, 0x104
lea rax, [rbp - 0x10]
sub r8, rax
lea rcx, [rbp - 0x10]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140003f55
mov al, byte [r8 + rcx]
test al, al
je 0x140003f55
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x140003f37
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], sil
cmp r15d, ebx
jne 0x140003fc1
mov r8d, 0x104
lea rdx, [rbp - 0x10]
lea rcx, [0x1400098d8]
call fcn.140004ba4
test eax, eax
je 0x140003dd2
cmp byte [0x14000cf22], sil
jne 0x140004163
lea rax, str._None_
mov dword [rsp + 0x28], r14d
mov r9d, r14d
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
mov edx, ebx
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
je 0x140004163
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rcx, [rbp - 0x10]
call fcn.1400015c8
test eax, eax
je 0x1400042ae
mov ebx, dword [rsp + 0x30]
test r13d, r13d
jne 0x140004006
lea eax, [r13 + 1]
cmp word [0x14000de78], ax
je 0x140004006
cmp dword [0x14000cd00], esi
je 0x140004006
test ebx, ebx
jne 0x14000400e
mov r13d, eax
call fcn.140001c00
test ebx, ebx
je 0x140004126
cmp dword [0x14000c1a8], esi
je 0x14000434e
test ebx, ebx
je 0x140004126
test byte [0x14000de64], 4
je 0x140004126
call fcn.140007098
xor ebx, ebx
mov rsi, rax
test rax, rax
je 0x14000432e
lea rdx, str.DoInfInstall
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
test rax, rax
je 0x1400042e0
cmp dword [0x14000cd10], 0
lea rax, [0x14000d578]
movzx ecx, word [0x14000de78]
mov qword [rsp + 0x50], rax
lea rax, [0x14000d610]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsp + 0x38]
mov word [rsp + 0x70], cx
movzx ecx, word [0x14000cd18]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x74], ecx
je 0x1400040b6
bts ecx, 0x10
mov dword [rsp + 0x74], ecx
mov eax, dword [0x14000de64]
test al, 8
je 0x1400040c8
bts ecx, 0x11
mov dword [rsp + 0x74], ecx
test dil, al
je 0x1400040d5
bts ecx, 0x12
mov dword [rsp + 0x74], ecx
mov eax, dword [0x14000d028]
test al, 0x40
je 0x1400040e7
bts ecx, 0x13
mov dword [rsp + 0x74], ecx
test al, al
jns 0x1400040f3
bts ecx, 0x14
mov dword [rsp + 0x74], ecx
mov eax, dword [0x14000de68]
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x78], eax
mov rax, rdx
call qword [0x140009638]
mov dword [0x14000d544], eax
mov rcx, rsi
test eax, eax
js 0x14000429f
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
jmp 0x140004148
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1400042a5
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.140004384
test eax, eax
je 0x1400042a5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, 1
add r15d, ebx
cmp r15d, 2
jb 0x140003e0a
cmp dword [0x14000c820], esi
je 0x14000429b
cmp byte [0x14000c7d0], sil
je 0x14000429b
lea rax, [rsp + 0x38]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000429b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x14000c7d0]
lea rax, [rbp + 0x210]
mov edi, 0x238
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140004290
mov r15d, 0x104
lea rcx, [rbp + 0x100]
mov r8d, r15d
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, r15d
lea rcx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14000422b
lea r8, [0x1400096f0]
mov edx, r15d
lea rcx, [rbp + 0x100]
call fcn.140007218
lea rax, [0x14000d610]
mov rdx, rdi
lea r9, [rbp + 0x100]
mov qword [rsp + 0x20], rax
lea r8, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea rcx, [rbp + 0x210]
call fcn.140001134
lea rax, [rbp + 0x210]
inc r14
cmp byte [rax + r14], sil
jne 0x14000425b
add r14d, ebx
lea rcx, [rbp + 0x210]
mov dword [rsp + 0x28], r14d
lea rdx, [0x14000c7d0]
mov qword [rsp + 0x20], rcx
mov r9d, ebx
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400042b0
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.140007a60
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
mov dword [rsp + 0x28], ebx
lea r8, str.DoInfInstall
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov edx, 0x4c9
xor ecx, ecx
call fcn.140004960
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000d544], ecx
jmp 0x1400042ae
mov dword [rsp + 0x28], ebx
lea r8, str.advpack.dll
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov edx, 0x4c8
xor ecx, ecx
call fcn.140004960
jmp 0x140004307
mov dword [rsp + 0x28], esi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov edx, 0x4c7
xor ecx, ecx
call fcn.140004960
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x14000d544], 0x8007042b
jmp 0x1400042ae