Function at 0x1400041fc
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 [0x140009110]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor esi, esi
cmp dword [0x140009de8], esi
mov r12d, esi
mov r13d, esi
mov dword [0x14000b07c], esi
jne 0x140004297
lea r8d, [rsi + 4]
lea rdx, [0x14000b05c]
lea rcx, [0x140001220]
call fcn.140005094
test eax, eax
je 0x140004269
cmp eax, 4
jbe 0x140004297
mov edi, 0x10
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4b1
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
call fcn.140004e14
mov dword [0x14000b07c], 0x80070714
jmp 0x140004748
mov edi, 0x10
mov r15d, esi
or r14, 0xffffffffffffffff
lea ebx, [rdi - 0xf]
xor edx, edx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x38], esi
lea r8d, [rdx + 0x68]
call sub.msvcrt.dll_memset
cmp byte [0x14000a002], sil
mov dword [rbp - 0x80], 0x68
jne 0x1400043bb
lea rdx, [rsp + 0x3c]
lea rcx, [0x140001228]
mov r8d, 4
call fcn.140005094
test eax, eax
je 0x14000426e
cmp eax, 4
ja 0x14000426e
mov eax, dword [rsp + 0x3c]
cmp eax, ebx
jne 0x1400042fb
mov word [rbp - 0x40], si
jmp 0x140004318
cmp eax, 2
jne 0x14000430b
mov eax, 6
mov word [rbp - 0x40], ax
jmp 0x140004318
mov ecx, 3
cmp eax, ecx
jne 0x14000431b
mov word [rbp - 0x40], cx
mov dword [rbp - 0x44], ebx
test r15d, r15d
jne 0x1400043fb
movzx eax, word [0x140009df8]
test ax, ax
je 0x140004392
test bl, al
je 0x14000433d
lea rcx, [0x140001238]
jmp 0x14000434c
test al, 2
je 0x140004748
lea rcx, [0x140001240]
lea rdx, [rbp - 0x10]
mov r8d, 0x104
call fcn.140005094
test eax, eax
je 0x14000426e
lea rax, [0x140001218]
lea r8, [rbp - 0x10]
mov r9d, r14d
mov edx, ebx
mov ecx, 0x7f
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CompareStringA]
sub eax, 2
cmp eax, 0xfffffffe
cmovne r12d, ebx
test r12d, r12d
jne 0x140004459
lea rdx, [rbp - 0x10]
lea rcx, [0x140001248]
mov r8d, 0x104
call fcn.140005094
test eax, eax
je 0x14000426e
jmp 0x1400043fb
lea r8, [0x14000a002]
lea rax, [rbp - 0x10]
mov edx, 0x104
sub r8, rax
lea rcx, [rbp - 0x10]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400043f0
mov al, byte [r8 + rcx]
test al, al
je 0x1400043f0
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x1400043d2
test rdx, rdx
jne 0x1400043f8
sub rcx, rbx
mov byte [rcx], sil
cmp r15d, ebx
jne 0x140004459
lea rdx, [rbp - 0x10]
lea rcx, [0x140001258]
mov r8d, 0x104
call fcn.140005094
test eax, eax
je 0x14000426e
cmp byte [0x14000a002], sil
jne 0x1400045f5
lea rax, [0x140001218]
lea r8, [rbp - 0x10]
mov r9d, r14d
mov edx, ebx
mov ecx, 0x7f
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
je 0x1400045f5
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.140001988
test eax, eax
je 0x140004748
mov ebx, dword [rsp + 0x38]
test r13d, r13d
jne 0x14000449e
lea eax, [r13 + 1]
cmp word [0x14000b074], ax
je 0x14000449e
cmp dword [0x140009de0], esi
je 0x14000449e
test ebx, ebx
jne 0x1400044a6
mov r13d, eax
call fcn.140001ffc
test ebx, ebx
je 0x1400045b8
cmp dword [0x14000922c], esi
je 0x1400047d9
test ebx, ebx
je 0x1400045b8
test byte [0x14000b064], 4
je 0x1400045b8
call fcn.1400076dc
xor ebx, ebx
mov rsi, rax
test rax, rax
je 0x1400047b9
lea rdx, str.DoInfInstall
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
test rax, rax
je 0x14000477a
cmp dword [0x140009df0], 0
movzx ecx, word [0x14000b074]
lea rax, [0x14000a778]
mov qword [rsp + 0x48], rax
lea rax, [0x14000a810]
mov qword [rsp + 0x40], rbx
mov rbx, qword [rsp + 0x30]
mov word [rsp + 0x68], cx
movzx ecx, word [0x140009df8]
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 0x14000454e
bts ecx, 0x10
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x14000b064]
test al, 8
je 0x140004560
bts ecx, 0x11
mov dword [rsp + 0x6c], ecx
test dil, al
je 0x14000456d
bts ecx, 0x12
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x14000a108]
test al, 0x40
je 0x14000457f
bts ecx, 0x13
mov dword [rsp + 0x6c], ecx
test al, al
jns 0x14000458b
bts ecx, 0x14
mov dword [rsp + 0x6c], ecx
mov eax, dword [0x14000b068]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x70], eax
call r11
mov rcx, rsi
mov dword [0x14000b07c], eax
test eax, eax
js 0x140004739
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
jmp 0x1400045da
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14000473f
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.140004814
test eax, eax
je 0x14000473f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, 1
add r15d, ebx
cmp r15d, 2
jb 0x1400042a6
cmp dword [0x1400099d0], esi
je 0x140004735
cmp byte [0x1400099e0], sil
je 0x140004735
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 0x140004735
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, [0x1400099e0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x210]
mov edi, 0x238
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000472a
lea rcx, [rbp + 0x101]
xor edx, edx
mov r8d, 0x103
mov byte [rbp + 0x100], sil
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x100]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400046c5
lea r8, [0x140001070]
lea rcx, [rbp + 0x100]
mov edx, 0x104
call fcn.1400078e4
lea rax, [0x14000a810]
lea r9, [rbp + 0x100]
lea r8, str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea rcx, [rbp + 0x210]
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.1400014e4
lea r11, [rbp + 0x210]
inc r14
cmp byte [r11 + r14], sil
jne 0x1400046f5
lea rcx, [rbp + 0x210]
add r14d, ebx
lea rdx, [0x1400099e0]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
mov r9d, ebx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14000474a
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.1400080a0
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, str.DoInfInstall
xor r9d, r9d
mov edx, 0x4c9
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call fcn.140004e14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.140007450
mov dword [0x14000b07c], eax
jmp 0x140004748
lea r8, [0x140001118]
xor r9d, r9d
mov edx, 0x4c8
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call fcn.140004e14
jmp 0x1400047a1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4c7
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
call fcn.140004e14
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x14000b07c], 0x8007042b
jmp 0x140004748