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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1c0
mov qword [rbp], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
pop rax
and byte [rax - 0x75], cl
add eax, 0x3348ed
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov dword [rsp + 0x54], r8d
mov qword [rsp + 0x68], rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x40], edi
mov eax, dword [0x1403ce460]
test eax, eax
je 0x14008a76a
cmp eax, 2
sete al
jmp 0x14008a774
cmp byte [0x1403ce6c8], dil
setne al
test al, al
jne 0x14008aef6
cmp dword [0x1403ce6e4], edi
jne 0x14008aef6
mov dl, 1
call fcn.14008b498
test al, al
jne 0x14008aef6
mov rbx, rdi
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x50], edi
lea rcx, [0x1403ce9a8]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
lock xadd dword [rsp + 0x60], eax
test eax, eax
jne 0x14008a7db
cmp dword [rsp + 0x64], edi
jne 0x14008af2d
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rsp + 0x64], eax
xor r13d, r13d
mov qword [rsp + 0x48], r13
mov r14d, r13d
mov edi, dword [rsp + 0x40]
lea r12, [0x140000000]
cmp r14d, 4
jge 0x14008a944
mov r15b, r13b
mov eax, dword [rsi + 0x1c]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp - 0x60]
call fcn.1400896c4
mov ecx, dword [rax]
mov dword [rsp + 0x40], ecx
mov rdx, qword [rax + 8]
mov qword [rax + 8], r13
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdx
test rcx, rcx
je 0x14008a840
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140118f85.0]
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14008a85b
mov qword [rbp - 0x58], r13
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140118f85.0]
nop
mov edi, dword [rsp + 0x40]
test edi, edi
jne 0x14008a938
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x14008a900
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14008a938
mov ecx, eax
call fcn.140261ad4
mov rdi, rax
test rax, rax
je 0x14008ac0d
test rbx, rbx
je 0x14008a8c7
mov rcx, rbx
call fcn.140261814
nop
mov rbx, rdi
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [rsp + 0x40], eax
nop dword [rax]
cmp edi, 0x3f2
je 0x14008a915
cmp edi, 0x3fa
je 0x14008a915
cmp edi, 6
jne 0x14008a938
mov rcx, qword [rsi + 0x10]
movzx eax, word [rcx + 0xa]
and eax, 0x1f
shl rax, 5
mov qword [rax + r12 + 0x3c35d0], r13
call fcn.140084fdc
mov r15b, 1
mov edi, dword [rsp + 0x40]
inc r14d
test r15b, r15b
jne 0x14008a7f1
test edi, edi
mov r12, qword [rsp + 0x68]
mov r13d, dword [rsp + 0x54]
jne 0x14008ac47
xor r15d, r15d
test rbx, rbx
je 0x14008ac4a
movzx eax, word [rsi + 0x18]
and eax, 0xf
cmp dword [rsp + 0x50], eax
jne 0x14008a9ae
dec eax
cmp eax, 1
mov eax, dword [rsp + 0x44]
ja 0x14008ac1b
shr rax, 1
cmp word [rbx + rax*2 - 2], r15w
jne 0x14008a9ae
mov rax, rbx
mov r8, r12
sub r8, rbx
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x14008a9a6
add rax, 2
test edx, edx
jne 0x14008a992
test ecx, ecx
je 0x14008aebd
mov r14d, r15d
cmp r14d, 4
jge 0x14008aeba
xor edi, edi
mov r15b, dil
mov eax, dword [rsi + 0x1c]
mov dword [rsp + 0x20], eax
lea r9d, [rdi + 4]
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp - 0x50]
call fcn.1400896c4
mov ecx, dword [rax]
mov dword [rsp + 0x40], ecx
mov rdx, qword [rax + 8]
mov qword [rax + 8], rdi
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdx
test rcx, rcx
je 0x14008aa03
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140118f85.0]
nop
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14008aa20
mov qword [rbp - 0x48], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140118f85.0]
nop
nop
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14008acdd
movzx r9d, word [rsi + 0x18]
and r9d, 0xf
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [rsp + 0x40], eax
cmp eax, 0x3f2
je 0x14008acb0
cmp eax, 0x3fa
je 0x14008acb0
cmp eax, 6
je 0x14008acb0
test eax, eax
je 0x14008aeae
lea rax, [0x1402b5988]
mov qword [rsp + 0x70], rax
lea rax, str.Win32ErrorCode
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], edi
xor edi, edi
mov word [rbp - 0x7c], di
lea rax, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rbp - 0x40], rax
lea rax, str.RegistryValueName
mov qword [rbp - 0x38], rax
mov rax, qword [rsi]
mov qword [rbp - 0x30], rax
mov word [rbp - 0x28], di
mov r8b, dil
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp + 0x28]
call fcn.140085c94
lea rax, vtable.Mso::Logging::StructuredObject_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____0_.0
mov qword [rbp + 0x48], rax
lea rax, str.KeyPath
mov qword [rbp + 0x50], rax
movups xmm0, xmmword [rbp + 0x28]
movups xmmword [rbp + 0x58], xmm0
movups xmm1, xmmword [rbp + 0x38]
movups xmmword [rbp + 0x68], xmm1
mov qword [rbp + 0x38], rdi
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], di
mov word [rbp + 0x78], di
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_write_registry_value.
mov qword [rsp + 0x20], rax
mov ecx, 0x16928cc
call fcn.14008cb60
mov rax, qword [rbp + 0x70]
cmp rax, 8
jb 0x14008ab7b
mov rcx, qword [rbp + 0x58]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x14008ab75
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14008af7d
call fcn.140261814
nop
mov qword [rbp + 0x68], rdi
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], di
mov rax, qword [rbp + 0x40]
cmp rax, 8
jb 0x14008abc7
mov rcx, qword [rbp + 0x28]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x14008abc1
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14008af86
call fcn.140261814
nop
mov r8d, dword [rsp + 0x40]
mov ecx, 1
lock xadd dword [0x1403ce13c], ecx
inc ecx
movabs rax, 0x47ae147ae147ae15
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x32
sub rcx, rax
movsxd rax, ecx
lea rcx, str.OrapiWriteFail:_RegSetValueExW
jmp 0x14008ae90
mov edi, 8
mov dword [rsp + 0x40], edi
jmp 0x14008a938
cmp eax, r13d
jne 0x14008a9ae
mov r8, rax
mov rdx, r12
mov rcx, rbx
call fcn.140239710
test eax, eax
jne 0x14008a9ae
mov edi, r15d
mov dword [rsp + 0x40], r15d
jmp 0x14008aebd
xor r15d, r15d
mov rcx, qword [rsi + 8]
movabs rax, 0xcccccccccccccccc
cmp rcx, rax
je 0x14008a9ae
movzx eax, word [rsi + 0x18]
and eax, 0xf
jbe 0x14008af6d
cmp eax, 2
jbe 0x14008aca1
cmp eax, 4
je 0x14008ac91
cmp eax, 0xb
jne 0x14008af6d
cmp r13d, 8
jne 0x14008af3d
cmp qword [r12], rcx
jmp 0x14008ac34
cmp r13d, 4
jne 0x14008af4d
cmp dword [r12], ecx
jmp 0x14008ac34
cmp r13d, 2
jb 0x14008af5d
cmp rcx, r12
jmp 0x14008ac34
mov rcx, qword [rsi + 0x10]
movzx eax, word [rcx + 0xa]
and eax, 0x1f
shl rax, 5
xor edx, edx
lea r8, [0x140000000]
mov qword [rax + r8 + 0x3c35d0], rdx
call fcn.140084fdc
mov r15b, 1
jmp 0x14008aeaa
lea rcx, [0x1402b5988]
mov qword [rbp - 0x78], rcx
lea rcx, str.Win32ErrorCode
mov qword [rbp - 0x70], rcx
mov dword [rbp - 0x68], eax
mov word [rbp - 0x64], di
lea rax, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rbp - 0x20], rax
lea rax, str.RegistryValueName
mov qword [rbp - 0x18], rax
mov rax, qword [rsi]
mov qword [rbp - 0x10], rax
mov word [rbp - 8], di
mov rax, qword [rsi + 0x10]
mov rdx, qword [rax]
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], 7
mov word [rbp + 8], di
lea rcx, [rbp + 8]
call fcn.14000b3a4
lea rax, vtable.Mso::Logging::StructuredObject_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____0_.0
mov qword [rbp + 0x80], rax
lea rax, str.KeyName
mov qword [rbp + 0x88], rax
movups xmm0, xmmword [rbp + 8]
movups xmmword [rbp + 0x90], xmm0
movups xmm1, xmmword [rbp + 0x18]
movups xmmword [rbp + 0xa0], xmm1
mov qword [rbp + 0x18], rdi
mov qword [rbp + 0x20], 7
mov word [rbp + 8], di
mov word [rbp + 0xb0], di
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_open_registry_key.
mov qword [rsp + 0x20], rax
mov ecx, 0x16928cd
call fcn.14008cb60
mov rax, qword [rbp + 0xa8]
cmp rax, 8
jb 0x14008adfa
mov rcx, qword [rbp + 0x90]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x14008adf4
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14008af8f
call fcn.140261814
nop
mov qword [rbp + 0xa0], rdi
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], di
mov rax, qword [rbp + 0x20]
cmp rax, 8
jb 0x14008ae4f
mov rcx, qword [rbp + 8]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x14008ae49
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14008af22
call fcn.140261814
nop
mov r8d, dword [rsp + 0x40]
mov ecx, 1
lock xadd dword [0x1403ce13c], ecx
inc ecx
movabs rax, 0x47ae147ae147ae15
mul rcx
mov eax, ecx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
imul rax, rax, 0x32
sub rcx, rax
movsxd rax, ecx
lea rcx, str.OrapiWriteFail:_TryOpenKey_in_WriteValue
lea rdx, [0x140000000]
add rax, rax
mov qword [rdx + rax*8 + 0x3ce148], rcx
mov dword [rdx + rax*8 + 0x3ce140], r8d
mov edi, dword [rsp + 0x40]
inc r14d
test r15b, r15b
jne 0x14008a9b1
xor r15d, r15d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14008aeda
mov qword [rsp + 0x48], r15
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140118f85.0]
nop
lea rcx, [rsp + 0x58]
call fcn.1400261e0
test rbx, rbx
je 0x14008aef2
mov rcx, rbx
call fcn.140261814
nop
mov eax, edi
jmp 0x14008aef8
xor eax, eax
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.1402361b0
mov rbx, qword [rsp + 0x218]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140261a5c
nop
jmp 0x14008af2c
nop
xor edx, edx
mov ecx, 0x131f4c4
call fcn.140025d34
nop
jmp 0x14008af3c
nop
xor edx, edx
mov ecx, 0x59948f
call fcn.140025d34
nop
jmp 0x14008af4c
nop
xor edx, edx
mov ecx, 0x59948e
call fcn.140025d34
nop
jmp 0x14008af5c
nop
xor edx, edx
mov ecx, 0x59948d
call fcn.140025d34
nop
jmp 0x14008af6c
nop
xor edx, edx
mov ecx, 0x599491
call fcn.140025d34
nop
jmp 0x14008af7c
nop
call fcn.140261a5c
nop
jmp 0x14008af85
nop
call fcn.140261a5c
nop
jmp 0x14008af8e
nop
call fcn.140261a5c
nop
jmp 0x14008af97
nop