Function at 0x140003650
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push r14
sub rsp, 0x8d0
mov rax, qword [0x14000c038]
xor rax, rsp
mov qword [rsp + 0x8c0], rax
mov qword [r11 + 8], rbp
xor edx, edx
movzx ebp, cl
mov qword [r11 + 0x18], rdi
lea rcx, [r11 - 0x638]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x208
lea rdx, [rsp + 0x2a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r14d, r14d
lea rcx, str.ntdll
mov ebx, eax
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400036e4
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call rax
mov edi, dword [rsp + 0x54]
movd xmm0, edi
cvtdq2pd xmm0, xmm0
comisd xmm0, xmmword [0x140009008]
jb 0x1400037f6
lea rcx, str.Kernel32.dll
mov qword [rsp + 0x8e8], rsi
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140003748
lea rdx, str.GetCurrentPackageFamilyName
mov dword [rsp + 0x30], r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea rcx, [rsp + 0x30]
call rax
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, 0x7a
je 0x140003754
cmp edi, 0x3d54
je 0x1400037ee
test bpl, bpl
je 0x1400037ee
lea rax, [rsp + 0x40]
mov dword [rsp + 0x38], 0x208
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 1
lea rdx, str.SOFTWAREAMDCN
mov rcx, 0xffffffff80000002
mov ebx, r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400037ee
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x2a0]
xor r8d, r8d
lea rdx, str.InstallDir
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400037e3
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x1400037de
cmp eax, 2
jne 0x1400037e3
mov ebx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x8e8]
mov rdi, qword [rsp + 0x8f0]
mov rbp, qword [rsp + 0x8e0]
test ebx, ebx
je 0x1400038fd
lea r8, [rsp + 0x2a0]
mov edx, 0x208
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x5c
lea rcx, [rsp + 0x4b0]
call sub.VCRUNTIME140.dll_wcsrchr
lea r8, str.Radeonsoftware.exe
mov edx, 0x208
lea rcx, [rsp + 0x4b0]
mov word [rax], r14w
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x4b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov ebx, r14d
setne bl
je 0x140003881
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x1400038fd
lea r9, str.cnextready
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r9, str.atlogon
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x4b0]
mov qword [rsp + 0x20], r14
lea rdx, str.open
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x1400038fd
test rbx, rbx
je 0x1400038ed
mov edx, 0x2710
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
jmp 0x140003902
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, r14d
jmp 0x140003902
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x8c0]
xor rcx, rsp
call fcn.140006ed0
mov rbx, qword [rsp + 0x8f8]
add rsp, 0x8d0
pop r14
ret