Function at 0x140003e4c
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 r13d, r13d
cmp dword [0x14000cd08], r13d
mov r15d, r13d
mov r12d, r13d
mov dword [0x14000d544], r13d
lea ebx, [r13 + 3]
jne 0x140003ec1
lea r8d, [r13 + 4]
lea rdx, [0x14000de5c]
lea rcx, str.REBOOT
call fcn.140004cc0
dec eax
cmp eax, ebx
ja 0x140003fd6
mov r14d, r13d
mov edi, 1
or rsi, 0xffffffffffffffff
xor edx, edx
mov dword [rsp + 0x30], r13d
lea rcx, [rbp - 0x80]
lea r8d, [rdx + 0x68]
call sub.msvcrt.dll_memset
cmp byte [0x14000cf22], r13b
mov dword [rbp - 0x80], 0x68
jne 0x140004004
mov r8d, 4
lea rdx, [rsp + 0x40]
lea rcx, str.SHOWWINDOW
call fcn.140004cc0
dec eax
cmp eax, ebx
ja 0x140003fd6
mov eax, dword [rsp + 0x40]
cmp eax, edi
jne 0x140003f25
mov word [rbp - 0x40], r13w
jmp 0x140003f3d
cmp eax, 2
jne 0x140003f35
mov eax, 6
mov word [rbp - 0x40], ax
jmp 0x140003f3d
cmp eax, ebx
jne 0x140003f40
mov word [rbp - 0x40], bx
mov dword [rbp - 0x44], edi
test r14d, r14d
jne 0x140004047
movzx eax, word [0x14000cd18]
test ax, ax
je 0x140003fb3
test dil, al
je 0x140003f63
lea rcx, str.ADMQCMD
jmp 0x140003f72
test al, 2
je 0x14000424c
lea rcx, str.USRQCMD
mov r8d, 0x104
lea rdx, [rbp - 0x10]
call fcn.140004cc0
test eax, eax
je 0x140003fd6
lea rax, str._None_
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]
sub eax, 2
cmp eax, 0xfffffffe
cmovne r15d, edi
test r15d, r15d
jne 0x1400040a4
mov r8d, 0x104
lea rdx, [rbp - 0x10]
lea rcx, str.RUNPROGRAM
call fcn.140004cc0
test eax, eax
jne 0x140004047
mov dword [rsp + 0x28], r13d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4b1
xor ecx, ecx
call fcn.140004a70
mov dword [0x14000d544], 0x80070714
jmp 0x14000424c
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 0x140004039
mov al, byte [r8 + rcx]
test al, al
je 0x140004039
mov byte [rcx], al
add rcx, rdi
sub rdx, rdi
jne 0x14000401b
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r13b
cmp r14d, edi
jne 0x1400040a4
mov r8d, 0x104
lea rdx, [rbp - 0x10]
lea rcx, str.POSTRUNPROGRAM
call fcn.140004cc0
test eax, eax
je 0x140003fd6
cmp byte [0x14000cf22], r13b
jne 0x140004332
lea rax, str._None_
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]
cmp eax, 2
je 0x140004332
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rcx, [rbp - 0x10]
call fcn.1400015f8
test eax, eax
je 0x14000424c
mov ebx, dword [rsp + 0x30]
test r12d, r12d
jne 0x1400040e6
cmp word [0x14000de78], di
je 0x1400040e6
cmp dword [0x14000cd00], r13d
je 0x1400040e6
test ebx, ebx
jne 0x1400040ee
mov r12d, edi
call fcn.140001c38
test ebx, ebx
je 0x140004203
cmp dword [0x14000c1a8], r13d
je 0x1400042f9
test ebx, ebx
je 0x140004203
test byte [0x14000de64], 4
je 0x140004203
call fcn.14000723c
mov rdi, rax
test rax, rax
je 0x1400042d4
lea rdx, str.DoInfInstall
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
test rax, rax
je 0x14000427e
cmp dword [0x14000cd10], r13d
lea rax, [0x14000d578]
movzx ecx, word [0x14000de78]
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
lea rax, [0x14000d610]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x10]
mov word [rsp + 0x70], cx
movzx ecx, word [0x14000cd18]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x74], ecx
je 0x140004195
bts ecx, 0x10
mov dword [rsp + 0x74], ecx
mov eax, dword [0x14000de64]
test al, 8
je 0x1400041a7
bts ecx, 0x11
mov dword [rsp + 0x74], ecx
test al, 0x10
je 0x1400041b3
bts ecx, 0x12
mov dword [rsp + 0x74], ecx
mov eax, dword [0x14000d028]
test al, 0x40
je 0x1400041c5
bts ecx, 0x13
mov dword [rsp + 0x74], ecx
test al, al
jns 0x1400041d1
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 [vtable.H_MA8HI.0]
mov dword [0x14000d544], eax
mov rcx, rdi
test eax, eax
js 0x14000423d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, 1
jmp 0x14000421d
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140004243
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.140004478
test eax, eax
je 0x140004243
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
add r14d, edi
cmp r14d, 2
jae 0x140004332
mov ebx, 3
jmp 0x140003ecd
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.140007c20
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], FDIDestroy
mov edx, 0x4c9
xor ecx, ecx
call fcn.140004a70
mov rcx, rdi
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 0x14000424c
mov dword [rsp + 0x28], r13d
lea r8, str.advpack.dll
xor r9d, r9d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4c8
xor ecx, ecx
call fcn.140004a70
jmp 0x1400042aa
mov dword [rsp + 0x28], r13d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4c7
xor ecx, ecx
call fcn.140004a70
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x14000d544], 0x8007042b
jmp 0x14000424c
cmp dword [0x14000c820], r13d
je 0x140004469
cmp byte [0x14000c7d0], r13b
je 0x140004469
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 0x140004469
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x14000c7d0]
lea rax, [rbp + 0x210]
mov ebx, 0x238
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000445e
mov r14d, 0x104
lea rcx, [rbp + 0x100]
mov r8d, r14d
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, r14d
lea rcx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400043fb
lea r8, [0x1400096f0]
mov edx, r14d
lea rcx, [rbp + 0x100]
call fcn.1400073cc
lea rax, [0x14000d610]
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.140001144
lea rax, [rbp + 0x210]
inc rsi
cmp byte [rax + rsi], r13b
jne 0x14000442b
add esi, edi
lea rcx, [rbp + 0x210]
mov dword [rsp + 0x28], esi
lea rdx, [0x14000c7d0]
mov qword [rsp + 0x20], rcx
mov r9d, edi
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, edi
jmp 0x14000424e