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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x168], rbx
mov rax, qword [0x14044f8c0]
xor rax, rsp
mov qword [rbp], rax
mov r15d, r8d
mov r14d, edx
mov rbx, rcx
call fcn.140136010
mov rcx, rax
test rax, rax
je 0x140134b04
mov rax, qword [rax]
call qword [rax + 0x18]
mov r13, rax
lea rcx, [rax + 0x18]
mov qword [rbp - 0x20], rcx
call fcn.140136010
mov rcx, rax
test rax, rax
je 0x140134b0f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea r12, [0x140393240]
mov rdi, 0xffffffffffffffff
cmp r12, 0x10000
jae 0x14013467c
movzx edx, r12w
lea rcx, [rsp + 0x40]
call fcn.140135c50
movzx esi, r12w
jmp 0x14013469e
mov rax, rdi
nop
inc rax
cmp word [r12 + rax*2], 0
jne 0x140134680
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140016ad0
mov rsi, r12
call fcn.140136010
mov rcx, rax
test rax, rax
je 0x140134af9
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
cmp r12, 0x10000
jae 0x1401346d6
movzx edx, si
lea rcx, [rsp + 0x38]
call fcn.140135c50
jmp 0x1401346fc
mov rax, rdi
nop dword [rax]
inc rax
cmp word [r12 + rax*2], 0
jne 0x1401346e0
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.140016ad0
nop
cmp qword [rbx + 0x30], 0
je 0x14013475d
mov r12d, 1
cmp dword [rbx + 0x64], 0
jne 0x140134718
cmp dword [rbx + 0x118], 0
je 0x14013473a
mov rcx, rbx
call fcn.1401356e0
cmp eax, 2
je 0x1401347f7
cmp dword [rbx + 0x118], 0
je 0x14013473a
mov eax, r12d
jmp 0x1401347fc
xor ecx, ecx
lea rax, [0x140397eb4]
cmp dword [rax - 4], r14d
jne 0x140134752
cmp dword [rax], r15d
je 0x1401347e4
inc ecx
add rax, 0xc
cmp ecx, 9
jb 0x140134743
xor r14d, r14d
mov r12d, r14d
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140134782
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401347a1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [r13 + 0x10], edi
sub edi, 1
jg 0x1401347ba
mov rcx, qword [r13]
mov r8, qword [rcx]
mov rdx, r13
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r12d
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1402ecc20
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movsxd rax, ecx
lea rcx, [rax + rax*2]
lea rax, [0x140397eb8]
mov eax, dword [rax + rcx*4]
jmp 0x1401347fc
mov eax, reloc.OLEAUT32.dll_SafeArrayDestroy
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], eax
mov r9d, r15d
mov r8d, r14d
lea rdx, [rbp - 0x50]
call fcn.140134030
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140016d50
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14013483f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8d, dword [rsp + 0x30]
lea rdx, [rbp - 0x48]
mov rcx, rbx
call fcn.140133e40
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140016d50
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14013487c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r14d, r14d
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x38], r14d
mov qword [rbp - 0x30], r14
mov r9d, 0x20019
mov r8, qword [rsp + 0x40]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x40]
call fcn.140024490
mov ebx, r14d
test eax, eax
sete bl
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1401348bd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140134760
mov rdx, qword [rsp + 0x38]
call fcn.140042490
test eax, eax
je 0x140134760
mov ecx, r14d
lea r8, [0x140453020]
mov rax, r8
mov edx, dword [rsp + 0x30]
cmp edx, dword [rax]
je 0x1401348fc
inc ecx
add rax, 0x20
cmp ecx, 6
jb 0x1401348e8
jmp 0x140134760
movsxd rcx, ecx
shl rcx, 5
mov rax, qword [rcx + r8 + 0x18]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x18], xmm0
mov eax, dword [rax + 0x10]
mov dword [rbp - 8], eax
mov eax, dword [rcx + r8 + 0x10]
mov dword [rsp + 0x78], eax
mov esi, r14d
test eax, eax
jle 0x140134763
nop dword [rax]
mov dword [rbp - 8], esi
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140134ae8
mov qword [rbp - 0x68], r14
mov dword [rbp - 0x60], r14d
mov qword [rbp - 0x58], r14
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x58]
call fcn.14003bcd0
mov dword [rsp + 0x48], r14d
mov r9d, r12d
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x68]
call fcn.140024490
mov rdx, qword [rsp + 0x58]
test eax, eax
jne 0x140134abf
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140134aba
cmp dword [rsp + 0x64], 4
jne 0x140134aba
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x68], eax
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401349eb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1401349fa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140134ae8
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], r14d
mov qword [rbp - 0x70], r14
lea rdx, [rbp - 0x18]
lea rcx, [rsp + 0x50]
call fcn.14003bcd0
mov r9d, 2
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x80]
call fcn.140024490
mov rdx, qword [rsp + 0x50]
test eax, eax
je 0x140134a64
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140134a5e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x80]
jmp 0x140134add
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
test eax, eax
mov eax, edi
je 0x140134a4a
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140134a5e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x80]
jmp 0x140134add
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140134ad9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140134ae8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [rsp + 0x78]
jl 0x140134930
jmp 0x140134763
mov ecx, 0x80004005
call fcn.140012800
nop
mov ecx, 0x80004005
call fcn.140012800
nop
mov ecx, 0x80004005
call fcn.140012800
int3