Function at 0x14001aef0
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 [0x1401ef010]
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.140135010
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 0x14001b09b
lea rdx, [0x1401c3908]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001b09b
lea rcx, [rbp + 0x10]
call rax
test eax, eax
je 0x14001b09b
movzx ecx, word [rbp + 0xa8]
mov rdx, rbx
call fcn.14001ade0
movzx ecx, byte [rbp + 0xaa]
xor edi, edi
sub ecx, r13d
je 0x14001b012
sub ecx, r13d
je 0x14001b00b
cmp ecx, r13d
jne 0x14001b015
lea edi, [r13 + 1]
jmp 0x14001b015
mov edi, 3
jmp 0x14001b015
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.14001c560
cmp dword [rbx + 0x140], r13d
je 0x14001b4b5
movzx eax, byte [rbp + 0xa8]
test al, 2
jne 0x14001b4b5
test al, 0x20
jne 0x14001b4b5
test al, al
js 0x14001b4b5
or dword [rbx + 0x134], 0x20
mov eax, r13d
jmp 0x14001b4bc
xor edi, edi
lea rcx, str.KERNEL32.DLL
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001b2bf
lea rdx, [0x1401c3908]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001b0d3
lea rcx, [rsp + 0x70]
call rax
mov esi, eax
test esi, esi
je 0x14001b2bf
mov r10d, dword [rbp - 0x80]
movzx ecx, di
mov qword [rsp + 0x290], r15
movzx r15d, di
cmp r10d, 2
jne 0x14001b215
mov ecx, edi
lea rdx, [rbp - 0x7c]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], cl
jne 0x14001b105
test rax, rax
je 0x14001b151
movzx eax, byte [rbp - 0x7c]
mov r14d, edi
test al, al
je 0x14001b13b
lea rsi, [rbp - 0x7c]
movsx ecx, al
call fcn.140144c4c
test eax, eax
jne 0x14001b13b
movzx eax, byte [rsi + 1]
inc rsi
inc r14d
test al, al
jne 0x14001b121
movsxd rax, r14d
lea rcx, [rbp - 0x7c]
add rcx, rax
call fcn.140144ee0
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.14001c560
cmp dword [rbp - 0x80], 2
mov r15, qword [rsp + 0x290]
jne 0x14001b4b5
mov rdx, rbx
call fcn.14001b4e0
cmp dword [rbx + 0x140], r13d
je 0x14001b1c6
movzx eax, byte [rbp + 0xa8]
test al, 2
jne 0x14001b1c6
test al, 0x20
jne 0x14001b1c6
test al, al
js 0x14001b1c6
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 0x14001b4b5
mov dword [rsp + 0x58], edi
lea rax, [rsp + 0x54]
mov dword [rsp + 0x54], 4
lea r9, [rsp + 0x58]
jmp 0x14001b46d
cmp r10d, r13d
jne 0x14001b151
mov edx, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x7c]
cmp edx, 4
jne 0x14001b243
lea eax, [r9 - 0x3b7]
cmp eax, 0x81
ja 0x14001b243
movzx ecx, r13w
jmp 0x14001b15a
mov r8d, dword [rsp + 0x78]
cmp edx, 4
jne 0x14001b15f
cmp r8d, 0xa
jae 0x14001b26d
lea eax, [r9 - 0x439]
cmp eax, 0x84
ja 0x14001b26d
lea ecx, [rdx - 2]
jmp 0x14001b15f
cmp edx, 4
jne 0x14001b15f
cmp r8d, 0xa
jae 0x14001b291
cmp r9d, 0x4be
jb 0x14001b291
lea ecx, [rdx - 2]
lea r15d, [rdx + 1]
jmp 0x14001b15f
cmp edx, 4
jne 0x14001b15f
cmp r8d, 0xa
jne 0x14001b15f
lea eax, [r9 - 0x7cf]
cmp eax, 0xb7
ja 0x14001b15f
movzx ecx, r13w
jmp 0x14001b15f
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001b4ba
lea rdx, [0x1401c38f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001b4ba
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 0x14001b4ba
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 0x14001b3b2
lea rcx, [rbp + 0xb0]
call fcn.140144ee0
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, [0x14019528c]
mov word [rsp + 0x30], di
mov word [rsp + 0x28], di
shr r8d, 8
movzx edx, r14b
mov qword [rsp + 0x20], rax
call fcn.14001c560
mov rdx, rbx
call fcn.14001b4e0
cmp dword [rbx + 0x140], r13d
je 0x14001b427
movzx eax, byte [rbp + 0xa8]
test al, 2
jne 0x14001b427
test al, 0x20
jne 0x14001b427
test al, al
js 0x14001b427
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 0x14001b4b5
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 0x14001b4aa
cmp dword [rsp + 0x50], edi
jne 0x14001b4aa
or dword [rbx + 0x130], 0x200
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r13d
jmp 0x14001b4bc
xor eax, eax
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140132620
add rsp, 0x240
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret