Function at 0x1400afa60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x320
mov qword [rsp + 0x108], 0xfffffffffffffffe
mov qword [rsp + 0x340], rbx
mov rsi, rcx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test eax, eax
je 0x1400afb3a
mov byte [rsp + 0x118], dil
or r9d, 0xffffffff
lea r8, [0x1401a8e70]
mov edx, 0x100
lea rcx, [rsp + 0x118]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x118]
call fcn.14007f910
lea rcx, [rsp + 0x21c]
lea rdx, [rsp + 0x118]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x21c]
call fcn.14011f050
int3
mov eax, dword [rsp + 0x6c]
add eax, 1
mov r8, 0xffffffffffffffff
je 0x1400afb66
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.14011f040
mov rbp, rax
jmp 0x1400afb69
mov rbp, rdi
xor ecx, ecx
call fcn.14011e0c0
mov qword [rsp + 0xe8], rbp
movsxd rax, dword [rsp + 0x68]
test eax, eax
je 0x1400afb93
mov rcx, rax
call fcn.14011f040
mov rbx, rax
mov qword [rsp + 0x70], rax
jmp 0x1400afb9b
mov rbx, rdi
mov qword [rsp + 0x70], rbx
xor ecx, ecx
call fcn.14011e0c0
mov qword [rsp + 0x110], rbx
mov eax, dword [rsp + 0x6c]
add eax, 1
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x358], eax
lea rax, [rsp + 0x358]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8, rbp
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
cmp eax, 0x103
je 0x1400afd74
test ebx, ebx
jne 0x1400afd10
mov eax, dword [rsp + 0x358]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x64]
xor r8d, r8d
mov rdx, rbp
mov rax, qword [rsp + 0x348]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x1400afcac
add edi, 1
mov eax, dword [rsp + 0x6c]
add eax, 1
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x358], eax
lea rax, [rsp + 0x358]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8, rbp
mov edx, edi
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
cmp eax, 0x103
jne 0x1400afc05
jmp 0x1400afd74
mov byte [rsp + 0x118], 0
or r9d, 0xffffffff
lea r8, [0x1401a8e60]
mov edx, 0x100
lea rcx, [rsp + 0x118]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x118]
call fcn.14007f910
lea rcx, [rsp + 0x21c]
lea rdx, [rsp + 0x118]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x21c]
call fcn.14011f050
int3
mov byte [rsp + 0x118], 0
or r9d, 0xffffffff
lea r8, [0x1401a8e50]
mov edx, 0x100
lea rcx, [rsp + 0x118]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x118]
call fcn.14007f910
lea rcx, [rsp + 0x21c]
lea rdx, [rsp + 0x118]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x21c]
call fcn.14011f050
int3
cmp byte [rsp + 0x350], 0
je 0x1400b0302
xor ebx, ebx
mov dword [rsp + 0x64], ebx
xor edx, edx
mov rcx, rsi
call fcn.1400ae010
mov rcx, rax
mov qword [rsp + 0x358], rax
test rax, rax
je 0x1400b0302
nop
nop
nop
mov qword [rsp + 0x78], rbx
mov byte [rsp + 0x80], 0
mov qword [rsp + 0x88], rbx
mov edx, dword [rsi + 0x18]
and edx, 0xfff2ffd9
or edx, 0x20019
mov rdi, qword [rsi]
mov eax, edx
and eax, 0x300
cmp eax, 0x300
sete bl
mov dword [rsp + 0x90], edx
test bl, bl
je 0x1400afdfe
and edx, 0xfffffcff
mov dword [rsp + 0x90], edx
mov dword [rsp + 0x20], 0
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rcx
lea rcx, [rsp + 0x98]
call fcn.14007bc10
lea r11, [rsp + 0x78]
mov qword [rsp + 0x20], r11
mov r9d, dword [rsp + 0x90]
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov rcx, qword [rsp + 0x98]
call fcn.14011e0c0
test edi, edi
jne 0x1400b029e
mov byte [rsp + 0x80], 1
test bl, bl
je 0x1400affd5
mov eax, dword [0x14023c1a0]
test al, 1
jne 0x1400afeaa
or eax, 1
mov dword [0x14023c1a0], eax
xor r9d, r9d
lea r8, str.RegQueryReflectionKey
lea rdx, str.advapi32
lea rcx, [0x14023c190]
call fcn.140086de0
lea rcx, [0x14018c700]
call fcn.14011f460
nop
xor edi, edi
mov eax, edi
mov dword [rsp + 0x60], eax
mov r8, qword [0x14023c190]
test r8, r8
je 0x1400afed9
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
call r8
mov ebx, eax
test eax, eax
jne 0x1400b01d6
mov eax, dword [rsp + 0x60]
lea r9, [0x14019e2a0]
test eax, eax
lea rax, [0x14019e298]
cmovne r9, rax
mov r8, qword [rsp + 0x78]
lea rdx, str.isReflected__x:__s
lea rcx, [0x14023c1d0]
call fcn.140002fd0
cmp dword [rsp + 0x60], edi
sete al
test al, al
jne 0x1400affd7
mov eax, dword [0x14023c1c8]
test al, 1
jne 0x1400aff57
or eax, 1
mov dword [0x14023c1c8], eax
xor r9d, r9d
lea r8, str.RegEnableReflectionKey
lea rdx, str.advapi32
lea rcx, [0x14023c1b8]
call fcn.140086de0
lea rcx, [0x14018c6f0]
call fcn.14011f460
nop
mov eax, dword [0x14023c1c8]
test al, 2
jne 0x1400aff8e
or eax, 2
mov dword [0x14023c1c8], eax
xor r9d, r9d
lea r8, str.RegDisableReflectionKey
lea rdx, str.advapi32
lea rcx, [0x14023c1a8]
call fcn.140086de0
lea rcx, [0x14018c6e0]
call fcn.14011f460
nop
lea rcx, [rsp + 0x78]
call fcn.1400ae250
test al, al
jne 0x1400affd7
cmp qword [0x14023c1b8], 0
je 0x1400affd7
mov r8, qword [rsp + 0x78]
lea rdx, str.enabling_reflection_on__x
lea rcx, [0x14023c1d0]
call fcn.140002fd0
mov rcx, qword [rsp + 0x78]
call qword [0x14023c1b8]
mov ebx, eax
test eax, eax
jne 0x1400b023a
jmp 0x1400affd7
xor edi, edi
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
lea rax, [0x1401a8d94]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x358]
mov r9, rbx
mov r8, qword [rsi]
lea rdx, [0x1401a8d70]
lea rcx, [0x14023c1d0]
call fcn.140002fd0
mov qword [rsp + 0xa0], rdi
mov byte [rsp + 0xa8], 0
mov qword [rsp + 0xb0], rdi
mov dword [rsp + 0xb8], 0xf003f
mov byte [rsp + 0x358], 1
lea rcx, [rsp + 0xc0]
call fcn.1400ba970
nop
mov dword [rsp + 0xf0], 0x18
mov dword [rsp + 0x100], edi
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xf8], rax
mov rdi, qword [rsp + 0x348]
mov r9d, dword [rdi + 0x18]
or r9d, 0xf003f
lea rax, [rsp + 0x358]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r8, rbx
mov rdx, qword [rdi]
lea rcx, [rsp + 0xa0]
call fcn.1400aeb40
mov r11, qword [rsp + 0xa0]
mov qword [rsp + 0x28], r11
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x20], eax
mov r9, rbx
mov r8, qword [rdi]
lea rdx, [0x1401a8d28]
lea rcx, [0x14023c1d0]
call fcn.140002fd0
nop
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov qword [rsp + 0xe0], rbx
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0xd8], rbx
mov rcx, qword [rsp + 0xd0]
call fcn.14011e0c0
mov rcx, qword [rsp + 0xc8]
call fcn.14011e0c0
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx r8d, byte [rsp + 0x350]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call fcn.1400afa60
nop
cmp byte [rsp + 0xa8], bl
je 0x1400b0173
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0xa0], rbx
mov rcx, qword [rsp + 0xb0]
call fcn.14011e950
nop
cmp byte [rsp + 0x80], 0
je 0x1400b019b
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], rbx
mov rcx, qword [rsp + 0x88]
call fcn.14011e950
mov eax, dword [rsp + 0x64]
add eax, 1
mov dword [rsp + 0x64], eax
mov edx, eax
mov rcx, rsi
call fcn.1400ae010
mov rcx, rax
mov qword [rsp + 0x358], rax
test rax, rax
je 0x1400b0302
jmp 0x1400afdb0
mov byte [rsp + 0x118], dil
or r9d, 0xffffffff
lea r8, str.isReflected
mov edx, 0x100
lea rcx, [rsp + 0x118]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x118]
call fcn.14007f910
lea rcx, [rsp + 0x21c]
lea rdx, [rsp + 0x118]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x21c]
call fcn.14011f050
int3
mov byte [rsp + 0x118], 0
or r9d, 0xffffffff
lea r8, str.setReflected
mov edx, 0x100
lea rcx, [rsp + 0x118]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x118]
call fcn.14007f910
lea rcx, [rsp + 0x21c]
lea rdx, [rsp + 0x118]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x21c]
call fcn.14011f050
int3
mov byte [rsp + 0x118], 0
or r9d, 0xffffffff
lea r8, str.RegOpenKeyEx
mov edx, 0x100
lea rcx, [rsp + 0x118]
call fcn.14007b3b0
mov edx, edi
lea rcx, [rsp + 0x118]
call fcn.14007f910
lea rcx, [rsp + 0x21c]
lea rdx, [rsp + 0x118]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x21c]
call fcn.14011f050
nop
mov rcx, qword [rsp + 0x70]
call fcn.14011e0c0
nop
mov rcx, rbp
call fcn.14011e0c0
mov rbx, qword [rsp + 0x340]
add rsp, 0x320
pop rdi
pop rsi
pop rbp
ret