Function at 0x1400072f0
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 [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor r13d, r13d
xor eax, eax
cmp dword [0x14000ed88], r13d
xorps xmm0, xmm0
mov dword [rsp + 0x3c], r13d
mov r15d, r13d
mov qword [rsp + 0x30], r13
mov r12d, r13d
lea ebx, [rax + 3]
mov dword [rbp - 0x7c], eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x70], rax
movups xmmword [rsp + 0x50], xmm0
mov dword [0x14000f5c4], r13d
movups xmmword [rsp + 0x60], xmm0
jne 0x14000738a
lea r8d, [r13 + 4]
lea rdx, [0x14000fedc]
lea rcx, str.REBOOT
call fcn.140005190
dec eax
cmp eax, ebx
ja 0x1400074af
mov r14d, r13d
mov edi, 1
or rsi, 0xffffffffffffffff
xor edx, edx
mov dword [rsp + 0x38], r13d
lea rcx, [rbp - 0x7c]
lea r8d, [rdx + 0x64]
call sub.msvcrt.dll_memset
cmp byte [0x14000efa2], r13b
mov dword [rbp - 0x80], 0x68
jne 0x1400074dd
mov r8d, 4
lea rdx, [rsp + 0x3c]
lea rcx, str.SHOWWINDOW
call fcn.140005190
dec eax
cmp eax, ebx
ja 0x1400074af
mov eax, dword [rsp + 0x3c]
cmp eax, edi
jne 0x1400073ee
mov word [rbp - 0x40], r13w
jmp 0x140007406
cmp eax, 2
jne 0x1400073fe
mov eax, 6
mov word [rbp - 0x40], ax
jmp 0x140007406
cmp eax, ebx
jne 0x140007409
mov word [rbp - 0x40], bx
mov dword [rbp - 0x44], edi
test r14d, r14d
jne 0x140007520
movzx eax, word [0x14000ed98]
test ax, ax
je 0x140007488
test dil, al
je 0x14000742c
lea rcx, str.ADMQCMD
jmp 0x14000743b
test al, 2
je 0x140007743
lea rcx, str.USRQCMD
mov r8d, 0x104
lea rdx, [rbp - 0x10]
call fcn.140005190
test eax, eax
je 0x1400074af
lea rax, [0x14000b908]
mov dword [rsp + 0x28], esi
mov r9d, esi
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
mov edx, edi
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_CompareStringA]
nop dword [rax + rax]
sub eax, 2
cmp eax, 0xfffffffe
je 0x140007488
mov r15d, edi
jmp 0x140007583
test r15d, r15d
jne 0x140007583
mov r8d, 0x104
lea rdx, [rbp - 0x10]
lea rcx, str.RUNPROGRAM
call fcn.140005190
test eax, eax
jne 0x140007583
mov dword [rsp + 0x28], r13d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4b1
xor ecx, ecx
call fcn.140006228
mov dword [0x14000f5c4], 0x80070714
jmp 0x140007743
lea r8, [0x14000efa2]
mov edx, 0x104
lea rax, [rbp - 0x10]
sub r8, rax
lea rcx, [rbp - 0x10]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140007512
mov al, byte [r8 + rcx]
test al, al
je 0x140007512
mov byte [rcx], al
add rcx, rdi
sub rdx, rdi
jne 0x1400074f4
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r13b
cmp r14d, edi
jne 0x140007583
mov r8d, 0x104
lea rdx, [rbp - 0x10]
lea rcx, [0x14000b948]
call fcn.140005190
test eax, eax
je 0x1400074af
cmp byte [0x14000efa2], r13b
jne 0x14000782d
lea rax, [0x14000b908]
mov dword [rsp + 0x28], esi
mov r9d, esi
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x10]
mov edx, edi
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_CompareStringA]
nop dword [rax + rax]
cmp eax, 2
je 0x14000782d
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.140001d60
test eax, eax
je 0x140007743
mov ebx, dword [rsp + 0x38]
test r12d, r12d
jne 0x1400075c5
cmp word [0x14000fef8], di
je 0x1400075c5
cmp dword [0x14000ed80], r13d
je 0x1400075c5
test ebx, ebx
jne 0x1400075cd
mov r12d, edi
call fcn.140001a18
test ebx, ebx
je 0x1400076ed
cmp dword [0x14000e228], r13d
je 0x1400077ee
test ebx, ebx
je 0x1400076ed
test byte [0x14000fee4], 4
je 0x1400076ed
call fcn.140006694
mov rdi, rax
test rax, rax
je 0x1400077c9
lea rdx, str.DoInfInstall
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x140007776
cmp dword [0x14000ed90], r13d
lea rax, [0x14000f5f8]
movzx ecx, word [0x14000fef8]
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
lea rax, [0x14000f690]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x10]
mov word [rsp + 0x68], cx
movzx ecx, word [0x14000ed98]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x6c], ecx
je 0x14000767a
bts ecx, 0x10
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x14000fee4]
test al, 8
je 0x14000768c
bts ecx, 0x11
mov dword [rsp + 0x6c], ecx
test al, 0x10
je 0x140007698
bts ecx, 0x12
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x14000f0a8]
test al, 0x40
je 0x1400076aa
bts ecx, 0x13
mov dword [rsp + 0x6c], ecx
test al, al
jns 0x1400076b6
bts ecx, 0x14
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x14000fee8]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x70], eax
mov rax, rdx
call fcn.14000a010
mov dword [0x14000f5c4], eax
mov rcx, rdi
test eax, eax
js 0x140007728
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov edi, 1
jmp 0x140007702
mov rbx, qword [rsp + 0x30]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.1400070e0
test eax, eax
je 0x140007734
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
add r14d, edi
cmp r14d, 2
jae 0x14000782d
mov ebx, 3
jmp 0x140007396
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.140008f50
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], r13d
lea r8, str.DoInfInstall
xor r9d, r9d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4c9
xor ecx, ecx
call fcn.140006228
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
call fcn.1400065d0
mov dword [0x14000f5c4], eax
jmp 0x140007743
mov dword [rsp + 0x28], r13d
lea r8, str.advpack.dll
xor r9d, r9d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4c8
xor ecx, ecx
call fcn.140006228
jmp 0x1400077a8
mov dword [rsp + 0x28], r13d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4c7
xor ecx, ecx
call fcn.140006228
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov dword [0x14000f5c4], 0x8007042b
jmp 0x140007743
cmp dword [0x14000e8a0], r13d
je 0x14000798f
cmp byte [0x14000e850], r13b
je 0x14000798f
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], r13
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x14000798f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x14000e850]
lea rax, [rbp + 0x210]
mov ebx, 0x238
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x14000797e
xor edx, edx
mov byte [rbp + 0x100], r13b
mov r8d, 0x103
lea rcx, [rbp + 0x101]
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x140007915
lea r8, [0x14000b760]
mov edx, 0x104
lea rcx, [rbp + 0x100]
call fcn.14000897c
lea rax, [0x14000f690]
mov rdx, rbx
lea r9, [rbp + 0x100]
mov qword [rsp + 0x20], rax
lea r8, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea rcx, [rbp + 0x210]
call fcn.1400036e8
lea rax, [rbp + 0x210]
inc rsi
cmp byte [rax + rsi], r13b
jne 0x140007945
add esi, edi
lea rcx, [rbp + 0x210]
mov dword [rsp + 0x28], esi
lea rdx, [0x14000e850]
mov qword [rsp + 0x20], rcx
mov r9d, edi
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, edi
jmp 0x140007745