Function at 0x140004360
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 [section..data]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor r15d, r15d
cmp dword [0x14000abc8], r15d
mov r13d, r15d
mov esi, r15d
mov dword [rsp + 0x30], r15d
mov dword [0x14000be5c], r15d
lea ebx, [r15 + 3]
jne 0x140004403
lea r8d, [r15 + 4]
lea rdx, [0x14000be3c]
lea rcx, [0x1400012d8]
call fcn.140005298
dec eax
cmp eax, ebx
jbe 0x140004403
lea edi, [rbx + 0xd]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4b1
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call fcn.140004fd8
mov dword [0x14000be5c], 0x80070714
jmp 0x14000477d
mov edi, FDICreate
mov r12d, r15d
or r14, 0xffffffffffffffff
lea ebx, [rdi - 0xf]
xor edx, edx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x40], r15d
lea r8d, [rdx + 0x68]
call sub.msvcrt.dll_memset
cmp byte [0x14000ade2], r15b
mov dword [rbp - 0x80], 0x68
jne 0x14000452d
lea rdx, [rsp + 0x44]
lea rcx, [0x1400012e0]
mov r8d, 4
call fcn.140005298
test eax, eax
je 0x1400043d9
cmp eax, 4
ja 0x1400043d9
mov eax, dword [rsp + 0x44]
cmp eax, ebx
jne 0x14000446d
mov word [rbp - 0x40], r15w
jmp 0x14000448a
cmp eax, 2
jne 0x14000447d
mov eax, 6
mov word [rbp - 0x40], ax
jmp 0x14000448a
mov ecx, 3
cmp eax, ecx
jne 0x14000448d
mov word [rbp - 0x40], cx
mov dword [rbp - 0x44], ebx
test r12d, r12d
jne 0x14000456d
movzx eax, word [0x14000abd8]
test ax, ax
je 0x140004504
test bl, al
je 0x1400044af
lea rcx, [0x1400012f0]
jmp 0x1400044be
test al, 2
je 0x14000477d
lea rcx, [0x1400012f8]
lea rdx, [rbp - 0x10]
mov r8d, 0x104
call fcn.140005298
test eax, eax
je 0x1400043d9
lea rax, [0x1400012d0]
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 r13d, ebx
test r13d, r13d
jne 0x1400045cb
lea rdx, [rbp - 0x10]
lea rcx, [0x140001300]
mov r8d, 0x104
call fcn.140005298
test eax, eax
je 0x1400043d9
jmp 0x14000456d
lea r8, [0x14000ade2]
lea rax, [rbp - 0x10]
mov edx, 0x104
sub r8, rax
lea rcx, [rbp - 0x10]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140004562
mov al, byte [r8 + rcx]
test al, al
je 0x140004562
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x140004544
test rdx, rdx
jne 0x14000456a
sub rcx, rbx
mov byte [rcx], r15b
cmp r12d, ebx
jne 0x1400045cb
lea rdx, [rbp - 0x10]
lea rcx, [0x140001310]
mov r8d, 0x104
call fcn.140005298
test eax, eax
je 0x1400043d9
cmp byte [0x14000ade2], r15b
jne 0x140004853
lea rax, [0x1400012d0]
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 0x140004853
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rcx, [rbp - 0x10]
call fcn.140001a74
test eax, eax
je 0x14000477d
mov ebx, dword [rsp + 0x40]
test esi, esi
jne 0x140004610
lea eax, [rsi + 1]
cmp word [0x14000be54], ax
je 0x140004610
cmp dword [0x14000abc0], r15d
je 0x140004610
test ebx, ebx
jne 0x140004618
mov dword [rsp + 0x30], eax
call fcn.1400020e8
test ebx, ebx
je 0x140004730
cmp dword [0x14000a1bc], r15d
je 0x14000481e
test ebx, ebx
je 0x140004730
test byte [0x14000be44], 4
je 0x140004730
call fcn.14000794c
mov rsi, rax
test rax, rax
je 0x1400047fd
lea rdx, str.DoInfInstall
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov r15, rax
test rax, rax
je 0x1400047af
cmp dword [0x14000abd0], edx
movzx ecx, word [0x14000be54]
mov rbx, qword [rsp + 0x38]
lea rax, [0x14000b558]
mov word [rsp + 0x70], cx
movzx ecx, word [0x14000abd8]
mov qword [rsp + 0x50], rax
lea rax, [0x14000b5f0]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x74], ecx
je 0x1400046c0
bts ecx, 0x10
mov dword [rsp + 0x74], ecx
mov eax, dword [0x14000be44]
test al, 8
je 0x1400046d2
bts ecx, 0x11
mov dword [rsp + 0x74], ecx
test dil, al
je 0x1400046df
bts ecx, 0x12
mov dword [rsp + 0x74], ecx
mov eax, dword [0x14000aee8]
test al, 0x40
je 0x1400046f1
bts ecx, 0x13
mov dword [rsp + 0x74], ecx
test al, al
jns 0x1400046fd
bts ecx, 0x14
mov dword [rsp + 0x74], ecx
mov eax, dword [0x14000be48]
mov rcx, r15
mov dword [rsp + 0x78], eax
call qword [0x14000d528]
lea rcx, [rsp + 0x48]
call r15
xor r15d, r15d
mov rcx, rsi
mov dword [0x14000be5c], eax
test eax, eax
js 0x14000476e
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000474a
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140004774
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.1400049a4
test eax, eax
je 0x140004774
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, 1
add r12d, ebx
cmp r12d, 2
jae 0x140004853
mov esi, dword [rsp + 0x30]
jmp 0x140004412
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.140008340
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], edx
lea r8, str.DoInfInstall
xor r9d, r9d
mov edx, 0x4c9
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.140004fd8
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 [0x14000be5c], ecx
jmp 0x14000477d
lea r8, [0x1400011d0]
xor r9d, r9d
mov edx, 0x4c8
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call fcn.140004fd8
jmp 0x1400047d6
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4c7
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], edi
call fcn.140004fd8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x14000be5c], 0x8007042b
jmp 0x14000477d
cmp dword [0x14000a7b0], r15d
je 0x140004994
cmp byte [0x14000a7c0], r15b
je 0x140004994
lea rax, [rsp + 0x38]
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 0x140004994
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x14000a7c0]
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 + 0x30], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140004989
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 0x140004924
lea r8, [0x140001129]
lea rcx, [rbp + 0x100]
mov edx, 0x104
call fcn.140007b48
lea rax, [0x14000b5f0]
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.1400015c0
lea rax, [rbp + 0x210]
inc r14
cmp byte [rax + r14], r15b
jne 0x140004954
lea rcx, [rbp + 0x210]
add r14d, ebx
lea rdx, [0x14000a7c0]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x38]
mov r9d, ebx
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 0x14000477f