Function at 0x1400dc444
Capabilities:
Query or enumerate registry value
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rdi, rcx
lea rcx, [rsp + 0x70]
mov rbx, rdx
call fcn.140061940
lea rcx, [rsp + 0x68]
call fcn.140061940
movzx eax, word [rbx]
xor r15d, r15d
neg ax
mov rsi, 0xffffffff80000001
mov ebp, r15d
sbb r12, r12
lea rcx, [0x140000000]
and r12, rbx
cmp word [rdi], r15w
sete r14b
cmp r14b, r15b
jne 0x1400dc52c
lea ebx, [r15 + 5]
lea rcx, [0x140122a94]
mov rdx, rdi
mov r8d, ebx
call fcn.14005a9ec
cmp al, r15b
je 0x1400dc4c4
add rdi, 0xa
jmp 0x1400dc525
mov ebp, 0x13
lea rcx, [0x140122a80]
mov rdx, rdi
mov r8d, ebp
call fcn.14005a9ec
cmp al, r15b
je 0x1400dc4e6
add rdi, 0x24
jmp 0x1400dc525
lea rcx, [0x140122a74]
mov r8d, ebx
mov rdx, rdi
call fcn.14005a9ec
cmp al, r15b
je 0x1400dc503
add rdi, 0xa
jmp 0x1400dc51e
lea rcx, [0x140122a60]
mov r8d, ebp
mov rdx, rdi
call fcn.14005a9ec
cmp al, r15b
je 0x1400dc525
add rdi, 0x26
mov rsi, 0xffffffff80000002
mov ebp, 2
jmp 0x1400dc548
cmp ebp, 3
jae 0x1400dc89d
movsxd rax, ebp
mov rsi, qword [rcx + rax*8 + 0x122a48]
mov rdi, qword [rcx + rax*8 + 0x122a30]
lea rax, [rsp + 0x80]
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x100], r15d
mov dword [rsp + 0xf0], r15d
mov dword [rsp + 0xf8], r15d
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov rcx, qword [rsp + 0x80]
cmp rcx, r15
je 0x1400dc85c
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xf0]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x100]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
xor edx, edx
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.DLL_RegQueryInfoKeyW]
mov ebx, eax
cmp eax, r15d
jne 0x1400dc86a
mov eax, dword [rsp + 0xf0]
lea rcx, [rsp + 0x90]
lea edx, [rax*4 + 8]
call fcn.1400619b4
mov r11d, dword [rsp + 0xf8]
lea rcx, [rsp + 0x78]
lea edx, [r11*4 + 8]
call fcn.1400619b4
cmp dword [rsp + 0x100], r15d
mov r13d, r15d
jle 0x1400dc832
mov eax, dword [rsp + 0xf0]
lea r9, [rsp + 0x60]
mov edx, r13d
shl eax, 2
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0xf8]
shl eax, 2
mov dword [rsp + 0x108], eax
mov rax, qword [rsp + 0x90]
mov word [rax], r15w
mov r8, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
lea rax, [rsp + 0x108]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.DLL_RegEnumValueW]
cmp eax, r15d
jne 0x1400dc821
mov rdx, qword [rsp + 0x90]
cmp word [rdx], r15w
je 0x1400dc821
cmp r12, r15
je 0x1400dc6d6
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
cmp eax, r15d
jne 0x1400dc821
mov ecx, dword [rsp + 0x108]
mov rax, qword [rsp + 0x78]
shr ecx, 1
mov word [rax + rcx*2], r15w
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x78]
lea rcx, [0x140122a28]
mov rdx, rdi
call fcn.14005aa28
cmp al, r15b
je 0x1400dc74c
mov rdx, qword [rsp + 0x78]
cmp word [rdx], r15w
je 0x1400dc740
mov rax, qword [rsp + 0x70]
cmp word [rax], r15w
je 0x1400dc736
lea rdx, [0x140122a24]
lea rcx, [rsp + 0x70]
call fcn.140061a7c
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140061a7c
mov rbx, qword [rsp + 0x70]
lea rdi, [0x140122a18]
lea r8, [rsp + 0x68]
lea rcx, [0x1401340d0]
or r9d, 0xffffffff
mov rdx, rbx
mov byte [rsp + 0x20], r15b
call fcn.1400770b4
mov rdx, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
cmp r14b, r15b
je 0x1400dc821
lea rbx, [0x140116698]
mov esi, 8
mov rcx, qword [rbx]
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
cmp eax, r15d
jne 0x1400dc813
lea rdx, [0x140122a0c]
lea rcx, [rsp + 0x88]
call fcn.14006d8b0
mov rdx, qword [rbx]
lea rcx, [rsp + 0x88]
call fcn.140061a7c
lea rdx, [0x140122348]
lea rcx, [rsp + 0x88]
call fcn.140061a7c
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.140061a7c
mov rdx, qword [rsp + 0x88]
lea rcx, [0x1401340d0]
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x20], 1
call fcn.14008056c
lea rcx, [rsp + 0x88]
call fcn.140059370
add rbx, 0x10
sub rsi, 1
jne 0x1400dc78c
inc r13d
cmp r13d, dword [rsp + 0x100]
jl 0x1400dc63a
lea rcx, [rsp + 0x78]
call fcn.140059370
lea rcx, [rsp + 0x90]
call fcn.140059370
mov rcx, qword [rsp + 0x80]
cmp rcx, r15
je 0x1400dc85c
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
inc ebp
lea rcx, [0x140000000]
jmp 0x1400dc52c
mov rcx, qword [rsp + 0x80]
cmp rcx, r15
je 0x1400dc87d
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x80], r15
call fcn.140059370
lea rcx, [rsp + 0x70]
call fcn.140059370
mov eax, ebx
jmp 0x1400dc8fd
cmp r12, r15
je 0x1400dc8e7
lea rcx, [0x140122a28]
mov rdx, r12
call fcn.14005aa28
cmp al, r15b
je 0x1400dc8e7
mov rdx, qword [rsp + 0x70]
lea r8, [rsp + 0x68]
lea rcx, [0x1401340d0]
or r9d, 0xffffffff
mov byte [rsp + 0x20], r15b
call fcn.1400770b4
mov rdx, qword [rsp + 0x68]
lea rcx, [0x140122a18]
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
lea rcx, [rsp + 0x68]
call fcn.140059370
lea rcx, [rsp + 0x70]
call fcn.140059370
xor eax, eax
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret