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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x8f0]
sub rsp, 0x9f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x8e0], rax
xor edx, edx
lea rcx, [rbp + 0x2c0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x48]
mov dword [rsp + 0x38], 4
mov r14d, 1
mov qword [rsp + 0x20], rax
xor esi, esi
mov dword [rsp + 0x30], 4
mov r9d, r14d
mov dword [rsp + 0x40], esi
xor r8d, r8d
lea rdx, str.SOFTWAREAMDCN
mov rcx, 0xffffffff80000001
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400036f7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.donotswitchtorsdesktop
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400036dd
cmp dword [rsp + 0x30], 4
movzx ebx, bl
cmove ebx, r14d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x1400036f7
cmp dword [rsp + 0x40], r14d
je 0x14000381e
lea rcx, str.ntdll
mov ebx, esi
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 0x14000372e
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call rax
mov ebx, dword [rsp + 0x54]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
comisd xmm0, xmmword [0x140008e10]
jb 0x14000381e
lea rcx, str.Kernel32.dll
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x140003788
lea rdx, str.GetCurrentPackageFamilyName
mov dword [rsp + 0x38], esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea rcx, [rsp + 0x38]
call rax
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, 0x7a
je 0x140003794
cmp ebx, 0x3d54
je 0x14000381e
lea rax, [rsp + 0x48]
mov dword [rsp + 0x38], 0x208
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], r14d
lea rdx, str.SOFTWAREAMDCN
mov rcx, 0xffffffff80000002
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000381e
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rbp + 0x2c0]
xor r8d, r8d
lea rdx, str.InstallDir
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000380f
mov eax, dword [rsp + 0x30]
dec eax
movzx ebx, bl
cmp eax, r14d
cmovbe ebx, r14d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x14000383b
mov r8d, 0x208
lea rdx, [rbp + 0x2c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000391c
lea r8, [rbp + 0x2c0]
mov edx, 0x208
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x5c
lea rcx, [rbp + 0x4d0]
call sub.VCRUNTIME140.dll_wcsrchr
lea r8, str.Radeonsoftware.exe
mov edx, 0x208
lea rcx, [rbp + 0x4d0]
mov word [rax], si
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov ebx, esi
setne bl
je 0x1400038a6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x14000391c
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], r14d
lea r8, [rbp + 0x4d0]
mov qword [rsp + 0x20], rsi
lea rdx, str.open
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x14000391c
test rbx, rbx
je 0x14000390d
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, esi
jmp 0x140003921
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
jmp 0x140003921
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x8e0]
xor rcx, rsp
call fcn.1400062f0
lea r11, [rsp + 0x9f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret