Function at 0x140013bd0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x550]
sub rsp, 0x650
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x540], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesLITSSVCICIGPU
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140013c3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400140d2
xor r12d, r12d
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftDirectXUserGpuPreferences
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400140d2
mov dword [rbp - 0x4c], 0x104
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
mov qword [rbp - 0x20], r12
lea rax, [rbp - 0x18]
mov qword [rbp - 0x48], rax
mov cl, 1
call fcn.140028acc
mov qword [rbp], rax
lea rcx, [rbp - 0x18]
call fcn.1400047d0
nop
lea r8, [0x14006755a]
lea rdx, str..0_its__.2_its__
lea rcx, [rbp - 0x20]
call fcn.140004b80
nop
mov r15d, r12d
mov dword [rbp - 0x50], 0x104
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x430]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x10]
xor edx, edx
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea r14, [r12 - 1]
cmp eax, 0x103
je 0x14001405b
lea edi, [r12 + 0xa]
movabs r13, 0x7ffffffffffffffe
lea rbx, str.GpuPreference1_its_
nop word [rax + rax]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x220]
call fcn.14002d0c0
mov dword [rbp - 0x48], 0x208
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x220]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014102
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x220]
call fcn.140004a20
test al, al
je 0x140014012
mov qword [rsp + 0x70], r12
lea rax, [rsp + 0x78]
mov qword [rbp - 0x68], rax
mov cl, 1
call fcn.140028acc
mov qword [rbp - 0x70], rax
lea rcx, [rsp + 0x78]
call fcn.1400047d0
nop
lea r8, [0x14006756a]
lea rdx, str.its__
lea rcx, [rsp + 0x70]
call fcn.140004b80
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
lea rax, [rbp + 0x220]
mov rbx, r14
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140013e00
cmp rbx, r13
ja 0x140014159
mov qword [rsp + 0x68], 7
cmp rbx, 8
jae 0x140013e46
mov qword [rsp + 0x60], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x220]
lea rcx, [rsp + 0x50]
call fcn.14002c910
mov word [rsp + rbx + 0x50], r12w
jmp 0x140013e9e
mov rsi, rbx
or rsi, 7
cmp rsi, r13
jbe 0x140013e57
mov rsi, r13
jmp 0x140013e5f
cmp rsi, 0xa
cmovb rsi, rdi
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x50]
call fcn.14000c160
mov rdi, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x220]
mov rcx, rax
call fcn.14002c910
mov word [rbx + rdi], r12w
mov edi, 0xa
lea r9, [0x140065eb0]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x40]
call fcn.140014790
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140013efb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013ef6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001415f
call fcn.14002a9dc
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140013f4c
mov eax, r14d
lock xadd dword [rcx + 0x2c], eax
cmp eax, 1
jne 0x140013f4c
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140013f4c
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
mov qword [rax], r12
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
jne 0x140013f30
mov qword [rsp + 0x70], r12
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140013f76
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x140013f76
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
mov eax, dword [rbp - 0x30]
add eax, eax
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140013fcb
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x30]
lea rcx, str.createWindowsGPUPreference__:_ITS_flag_removed___s___I64u__n
call fcn.14000fcd0
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14001400b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014006
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014153
call fcn.14002a9dc
lea rbx, str.GpuPreference1_its_
inc r15d
mov dword [rbp - 0x50], 0x104
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x430]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x10]
mov edx, r15d
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x140013d40
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x1400140ac
lock xadd dword [rax + 0x2c], r14d
cmp r14d, 1
jne 0x1400140ac
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1400140ac
nop
mov rcx, rbx
lea rax, [rbx + 0x10]
mov rbx, qword [rax]
mov qword [rax], r12
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rbx, rbx
jne 0x140014090
mov qword [rbp - 0x20], r12
mov rcx, qword [rbp]
test rcx, rcx
je 0x1400140d2
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400140d2
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.14002a740
lea r11, [rsp + 0x650]
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 rdx, [rbp + 0x10]
lea rcx, str.createWindowsGPUPreference__:_Create____s_n
call fcn.14000fcd0
mov dword [rsp + 0x28], 0x2a
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140014012
lea rdx, [rbp + 0x10]
lea rcx, str.Error:_createWindowsGPUPreference__:_failed_to_delete_gpu_preference.____s_n
call fcn.14000fcd0
jmp 0x140014012
call fcn.140031340
nop
call fcn.14000c2c0
int3
call fcn.140031340
int3