Function at 0x14001b080
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rbx, rdx
mov r12, rcx
mov rcx, rbx
xor edx, edx
mov r8d, 0x160
call fcn.14014a5c0
xorps xmm0, xmm0
mov dword [rbp + 0x10], 0x9c
xor eax, eax
mov dword [rsp + 0x70], __WSAFDIsSet
lea rcx, str.KERNEL32.DLL
mov qword [rbp + 0xa4], rax
movups xmmword [rbp + 0x14], xmm0
movups xmmword [rbp + 0x24], xmm0
movups xmmword [rbp + 0x34], xmm0
movups xmmword [rbp + 0x44], xmm0
movups xmmword [rbp + 0x54], xmm0
movups xmmword [rbp + 0x64], xmm0
movups xmmword [rbp + 0x74], xmm0
movups xmmword [rbp + 0x84], xmm0
movups xmmword [rbp + 0x94], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r13d, 1
test rax, rax
je 0x14001b22b
lea rdx, [0x1401efcb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001b22b
lea rcx, [rbp + 0x10]
call rax
test eax, eax
je 0x14001b22b
movzx ecx, word [rbp + 0xa8]
mov rdx, rbx
call fcn.14001af70
movzx ecx, byte [rbp + 0xaa]
xor edi, edi
sub ecx, r13d
je 0x14001b1a2
sub ecx, r13d
je 0x14001b19b
cmp ecx, r13d
jne 0x14001b1a5
lea edi, [r13 + 1]
jmp 0x14001b1a5
mov edi, 3
jmp 0x14001b1a5
mov edi, r13d
mov eax, dword [rbp + 0x20]
mov rcx, r12
mov r9d, dword [rbp + 0x1c]
mov r8d, dword [rbp + 0x18]
mov edx, dword [rbp + 0x14]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], eax
movzx eax, word [rbp + 0xa6]
mov word [rsp + 0x30], ax
movzx eax, word [rbp + 0xa4]
mov word [rsp + 0x28], ax
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
mov dword [rbx + 0x140], edi
call fcn.14001c6f0
cmp dword [rbx + 0x140], r13d
je 0x14001b645
movzx eax, byte [rbp + 0xa8]
test al, 2
jne 0x14001b645
test al, 0x20
jne 0x14001b645
test al, al
js 0x14001b645
or dword [rbx + 0x134], 0x20
mov eax, r13d
jmp 0x14001b64c
xor edi, edi
lea rcx, str.KERNEL32.DLL
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001b44f
lea rdx, [0x1401efcb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001b263
lea rcx, [rsp + 0x70]
call rax
mov esi, eax
test esi, esi
je 0x14001b44f
mov r10d, dword [rbp - 0x80]
movzx ecx, di
mov qword [rsp + 0x290], r15
movzx r15d, di
cmp r10d, 2
jne 0x14001b3a5
mov ecx, edi
lea rdx, [rbp - 0x7c]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], cl
jne 0x14001b295
test rax, rax
je 0x14001b2e1
movzx eax, byte [rbp - 0x7c]
mov r14d, edi
test al, al
je 0x14001b2cb
lea rsi, [rbp - 0x7c]
movsx ecx, al
call fcn.14015a11c
test eax, eax
jne 0x14001b2cb
movzx eax, byte [rsi + 1]
inc rsi
inc r14d
test al, al
jne 0x14001b2b1
movsxd rax, r14d
lea rcx, [rbp - 0x7c]
add rcx, rax
call fcn.14015a3b0
mov r10d, dword [rbp - 0x80]
movzx ecx, ax
mov edx, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x7c]
mov r8d, dword [rsp + 0x78]
mov qword [rsp + 0x48], rbx
lea rax, [rbp - 0x7c]
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], r10d
mov word [rsp + 0x30], r15w
mov word [rsp + 0x28], cx
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.14001c6f0
cmp dword [rbp - 0x80], 2
mov r15, qword [rsp + 0x290]
jne 0x14001b645
mov rdx, rbx
call fcn.14001b670
cmp dword [rbx + 0x140], r13d
je 0x14001b356
movzx eax, byte [rbp + 0xa8]
test al, 2
jne 0x14001b356
test al, 0x20
jne 0x14001b356
test al, al
js 0x14001b356
or dword [rbx + 0x134], 0x20
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rdi
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlTerminal_Server
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001b645
mov dword [rsp + 0x58], edi
lea rax, [rsp + 0x54]
mov dword [rsp + 0x54], 4
lea r9, [rsp + 0x58]
jmp 0x14001b5fd
cmp r10d, r13d
jne 0x14001b2e1
mov edx, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x7c]
cmp edx, 4
jne 0x14001b3d3
lea eax, [r9 - 0x3b7]
cmp eax, 0x81
ja 0x14001b3d3
movzx ecx, r13w
jmp 0x14001b2ea
mov r8d, dword [rsp + 0x78]
cmp edx, 4
jne 0x14001b2ef
cmp r8d, 0xa
jae 0x14001b3fd
lea eax, [r9 - 0x439]
cmp eax, 0x84
ja 0x14001b3fd
lea ecx, [rdx - 2]
jmp 0x14001b2ef
cmp edx, 4
jne 0x14001b2ef
cmp r8d, 0xa
jae 0x14001b421
cmp r9d, 0x4be
jb 0x14001b421
lea ecx, [rdx - 2]
lea r15d, [rdx + 1]
jmp 0x14001b2ef
cmp edx, 4
jne 0x14001b2ef
cmp r8d, 0xa
jne 0x14001b2ef
lea eax, [r9 - 0x7cf]
cmp eax, 0xb7
ja 0x14001b2ef
movzx ecx, r13w
jmp 0x14001b2ef
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001b64a
lea rdx, [0x1401efca8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001b64a
call rax
mov r14d, eax
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001b64a
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xb0]
mov dword [rsp + 0x54], edi
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x58], 0x80
lea rdx, str.CurrentBuildNumber
mov esi, edi
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001b542
lea rcx, [rbp + 0xb0]
call fcn.14015a3b0
mov esi, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov eax, 2
mov dword [rsp + 0x40], edi
mov r9d, esi
mov dword [rsp + 0x38], eax
mov rcx, r12
movzx r8d, r14w
lea rax, [0x1401e9c5c]
mov word [rsp + 0x30], di
mov word [rsp + 0x28], di
shr r8d, 8
movzx edx, r14b
mov qword [rsp + 0x20], rax
call fcn.14001c6f0
mov rdx, rbx
call fcn.14001b670
cmp dword [rbx + 0x140], r13d
je 0x14001b5b7
movzx eax, byte [rbp + 0xa8]
test al, 2
jne 0x14001b5b7
test al, 0x20
jne 0x14001b5b7
test al, al
js 0x14001b5b7
or dword [rbx + 0x134], 0x20
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rdi
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlTerminal_Server
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001b645
mov dword [rsp + 0x54], edi
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
lea r9, [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
lea rdx, str.TSAppCompat
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001b63a
cmp dword [rsp + 0x50], edi
jne 0x14001b63a
or dword [rbx + 0x130], 0x200
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r13d
jmp 0x14001b64c
xor eax, eax
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140147af0
add rsp, 0x240
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret