Function at 0x140031fb0
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 - 0x27]
sub rsp, 0xa0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov r13, rcx
xor ebx, ebx
call fcn.140015150
test eax, eax
je 0x14003226c
lea rcx, [r13 + 0xc00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rbp + 0x6f], ebx
lea rcx, [rbp + 0x6f]
call fcn.1400154d0
mov ebx, eax
mov dword [rbp - 0x39], eax
mov rax, qword [r13 + 0xb98]
mov qword [rbp - 0x29], rax
xor r14d, r14d
test eax, eax
je 0x14003225f
xor ebx, ebx
mov rcx, rbx
cmp r14d, dword [r13 + 0xb98]
jae 0x14003204c
mov edx, r14d
lea rcx, [r13 + 0xb80]
call fcn.14004c12c
test rax, rax
je 0x140032289
mov rcx, qword [rax + 0x10]
mov rax, qword [rbp - 0x29]
test dword [rcx + 0x174], 0x100
je 0x140032250
cmp dword [rbp + 0x6f], 3
je 0x140032250
mov r12d, ebx
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140004c20
mov r15, rax
lea rcx, [rax + 0x18]
mov qword [rbp + 0x17], rcx
mov rcx, rax
call fcn.140004c20
add rax, 0x18
mov qword [rbp - 9], rax
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x31]
call fcn.140046b10
nop
mov qword [rbp - 0x21], rbx
mov dword [rbp - 0x19], ebx
mov qword [rbp - 0x11], rbx
mov r9d, 0x20019
mov r8, qword [rbp - 0x31]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x21]
call fcn.14000e2b0
test eax, eax
jne 0x1400321fc
mov dword [rbp + 0x77], ebx
mov qword [rbp - 1], rbx
mov esi, ebx
mov rdi, qword [rbp - 0x21]
test rdi, rdi
je 0x140032169
lea rdx, [rbp - 1]
lea rcx, [0x140281b18]
call fcn.140011f10
test eax, eax
js 0x14003214a
mov dword [rbp + 0x7f], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x49]
xor r8d, r8d
mov rsi, qword [rbp - 1]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140032137
cmp dword [rbp - 0x49], 4
mov eax, SafeArrayGetDim
cmovne ebx, eax
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
test ebx, ebx
sete sil
xor ebx, ebx
test esi, esi
je 0x140032159
mov r12d, ebx
cmp dword [rbp + 0x77], 1
sete r12b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbx
mov qword [rbp - 0x21], rbx
mov dword [rbp - 0x19], ebx
test r12d, r12d
je 0x140032200
mov r9d, 0x20006
mov r8, qword [rbp - 0x31]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x21]
call fcn.14000e2b0
test eax, eax
jne 0x1400321fc
mov qword [rbp + 7], rbx
mov rdi, qword [rbp - 0x21]
test rdi, rdi
je 0x140032200
lea rdx, [rbp + 7]
lea rcx, [0x140281b18]
call fcn.140011f10
test eax, eax
js 0x1400321ea
mov dword [rbp - 0x41], ebx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 7]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbx
mov qword [rbp - 0x21], rbx
jmp 0x140032200
mov rdi, qword [rbp - 0x21]
test rdi, rdi
je 0x14003220f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032230
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, 0xffffffff
lock xadd dword [r15 + 0x10], eax
sub eax, 1
jg 0x14003224c
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x29]
inc r14d
cmp r14d, eax
jb 0x140032020
mov ebx, dword [rbp - 0x39]
lea rcx, [r13 + 0xbf0]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14004ba44
int3