Function at 0x140001b70
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov ebx, ecx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 4
jne 0x14000206a
mov qword [rsp + 0x20], rdx
lea r9, str.SYSTEMCurrentControlSetControlClass4d36e968_e325_11ce_bfc1_08002be10318
lea r8, str._s_s
lea rcx, [rsp + 0x70]
mov edx, 0x100
call fcn.140003238
cmp eax, 0x100
jge 0x140002059
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov r9d, 3
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001c2f
add eax, 0xfffffffe
cmp eax, 1
mov eax, dword [0x140012400]
jbe 0x140002070
or eax, 0xfffffffe
mov dword [0x140012400], eax
jmp 0x140002070
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
lea rdx, str.ProviderName
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x68], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140001c9d
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140001c76
or dword [0x140012400], 0xfffffffe
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov eax, dword [0x140012400]
je 0x140002070
or eax, 0xfffffffe
mov dword [0x140012400], eax
jmp 0x140002070
cmp dword [rsp + 0x68], 5
jb 0x14000204a
lea rdx, str.Intel
lea rcx, [rsp + 0x70]
mov r8d, 5
call fcn.140003434
test eax, eax
jne 0x14000204a
mov rcx, qword [rsp + 0x50]
lea rdx, str.EDID_RECOVERY
test ebx, ebx
je 0x140001ebf
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x140001cef
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140001cf6
jmp 0x140001c6f
or dword [0x140012400], 1
mov rcx, qword [rsp + 0x50]
xor ebx, ebx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rdx, str.EDID_RECOVERY
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001c6f
or dword [0x140012400], 1
mov edi, ebx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov edx, edi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x60], 0x100
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140001de9
lea r8d, [rax + 9]
lea rdx, str.FakeEDID_
lea rcx, [rsp + 0x70]
call fcn.140003434
test eax, eax
jne 0x140001de2
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x70]
call fcn.140001380
cmp eax, 0xfffffffe
je 0x140001f05
test eax, eax
je 0x140001de2
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140001dd9
add eax, 0xfffffffe
cmp eax, 1
ja 0x140001efe
inc edi
jmp 0x140001d41
or dword [0x140012400], 1
dec edi
inc edi
jmp 0x140001d41
cmp eax, 0x103
je 0x140001df7
or dword [0x140012400], 0xfffffffe
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
lea r8, str.ReadEDIDFromRegistry
call fcn.140001380
mov rcx, qword [rsp + 0x58]
cmp eax, 0xfffffffe
jne 0x140001e26
mov rdx, qword [rsp + 0x50]
call fcn.140001340
jmp 0x140002070
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140001e37
or dword [0x140012400], 0xfffffffe
mov rcx, qword [rsp + 0x50]
lea rax, [0x14000de30]
lea rdx, str.FakeEDID_14_0_af0d_1723
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x140001eb3
or dword [0x140012400], 1
lea rax, [rsp + 0x60]
lea rdx, str.ReadEDIDFromRegistry
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000203e
jmp 0x140001c6f
or dword [0x140012400], 0xfffffffe
jmp 0x140001c7b
lea rax, [rsp + 0x58]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001c67
mov rcx, qword [rsp + 0x50]
lea rdx, str.FakeEDID_14_0_af0d_1723
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140001f19
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140001f20
or dword [0x140012400], 0xfffffffe
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.140001340
jmp 0x140002070
or dword [0x140012400], 1
mov rcx, qword [rsp + 0x50]
lea rdx, str.ReadEDIDFromRegistry
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140001f59
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140001f60
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
or dword [0x140012400], 0xfffffffe
call fcn.140001340
jmp 0x140002070
or dword [0x140012400], 1
xor ebx, ebx
mov edi, ebx
nop word [rax + rax]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov edx, edi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x60], 0x100
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140001fe1
lea r8d, [rax + 9]
lea rdx, str.FakeEDID_
lea rcx, [rsp + 0x70]
call fcn.140003434
test eax, eax
jne 0x140001fdd
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x70]
call fcn.140001380
cmp eax, 0xfffffffe
je 0x140001f05
inc edi
jmp 0x140001f70
cmp eax, 0x103
je 0x140001fef
or dword [0x140012400], 0xfffffffe
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea r8, str.ReadEDIDFromRegistry
call fcn.140001380
mov rcx, qword [rsp + 0x58]
cmp eax, 0xfffffffe
je 0x140001e17
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140002024
or dword [0x140012400], 0xfffffffe
mov rcx, qword [rsp + 0x50]
lea rdx, str.EDID_RECOVERY
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x140001c67
or dword [0x140012400], 1
jmp 0x140001c76
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x14000206a
mov eax, dword [0x140012400]
or eax, 0xfffffffe
mov dword [0x140012400], eax
jmp 0x140002070
mov eax, dword [0x140012400]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140002ef0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret