Function at 0x106d8f0
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x90
mov r12, rdx
mov rdx, qword [rdx]
mov rsi, rcx
lea rcx, [rsp + 0x40]
mov rbp, r8
call fcn.01072ce8
lea rdx, [rsi + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.01073278
lea rdx, [rsi + 0xc8]
lea rcx, [rsp + 0x40]
call fcn.01073304
lea rcx, [rsi + 0xd0]
mov rdx, r12
call fcn.0106f1c8
lea rcx, [rsi + 0xd8]
mov rdx, rbp
call fcn.0106f1c8
xor r13d, r13d
cmp dword [rsi + 0xa4], r13d
jne 0x106dd65
mov rcx, qword [rsi + 0x88]
cmp rcx, r13
jne 0x106d97e
mov edi, 0x80004003
jmp 0x106dd6a
cmp qword [rsi + 0x98], r13
jne 0x106dd65
cmp qword [rsi + 0x90], r13
jne 0x106dd65
mov rax, qword [rcx]
mov rdx, qword [r12]
lea r8, [rsi + 0x98]
call qword [rax + 0x28]
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rbp]
mov rax, qword [rcx]
lea r8, [rsi + 0x90]
call qword [rax + 0x28]
cmp qword [rsi + 0x98], r13
je 0x106dd5e
cmp qword [rsi + 0x90], r13
je 0x106dd5e
cmp qword [rsi + 0x80], r13
je 0x106d974
cmp qword [rsi + 0x78], r13
je 0x106d974
cmp qword [rsi + 0xb0], r13
jne 0x106da0a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0xb0], rax
cmp qword [rsi + 0xb8], r13
jne 0x106da2a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0xb8], rax
cmp qword [rsi + 0xc0], r13
jne 0x106da4a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0xc0], rax
lea r9, [rsi + 0x48]
cmp qword [r9], r13
jne 0x106dd65
cmp qword [rsi + 0x58], r13
jne 0x106dd65
mov rcx, qword [rsi + 0x80]
mov ebp, 0x17
lea r8, [0x010677d8]
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + 0x68]
cmp eax, r13d
mov edi, eax
jne 0x106dd6a
mov rcx, qword [rsi + 0x78]
lea r9, [rsi + 0x58]
lea r8, [0x010677e8]
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + 0x68]
cmp eax, r13d
mov edi, eax
jne 0x106dd6a
lea r15d, [rbp + 9]
mov rcx, r15
call fcn.0107d574
lea rdi, [0x010677a0]
cmp rax, r13
mov r8, rax
je 0x106dadb
mov qword [rax], rdi
mov dword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], 0x10
jmp 0x106dade
mov r8, r13
cmp r8, r13
mov qword [rsi + 0x40], r8
jne 0x106daf1
mov edi, 0x8007000e
jmp 0x106dd6a
mov rcx, qword [rsi + 0x80]
lea rdx, [0x010677d8]
mov rax, qword [rcx]
call qword [rax + 0x70]
cmp eax, r13d
je 0x106db27
mov rcx, qword [rsi + 0x40]
cmp rcx, r13
je 0x106db1d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x40], r13
mov edi, 0x8004080a
jmp 0x106dd6a
mov rcx, r15
call fcn.0107d574
cmp rax, r13
mov r8, rax
je 0x106db4b
mov qword [rax], rdi
mov dword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r15d
jmp 0x106db4e
mov r8, r13
cmp r8, r13
mov qword [rsi + 0x38], r8
je 0x106dae7
mov rcx, qword [rsi + 0x78]
lea rdx, [0x010677e8]
mov rax, qword [rcx]
call qword [rax + 0x70]
cmp eax, r13d
je 0x106db8e
mov rcx, qword [rsi + 0x38]
mov edi, 0x8004080a
cmp rcx, r13
je 0x106dd6a
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x38], r13
jmp 0x106dd6a
mov rdx, qword [r12]
mov rcx, rsi
call fcn.0106ec4c
cmp eax, r13d
mov edi, eax
jne 0x106dd6a
mov rcx, qword [rsi + 0x58]
cmp rcx, r13
je 0x106dc20
lea rdx, [rsp + 0x30]
lea r8, [rsi + 0x60]
lea r9, [rsi + 0x64]
mov dword [r8], 0xc2940000
mov dword [r9], 0x40c00000
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [rax + 0x20]
cmp eax, r13d
jne 0x106dc20
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0xd8]
mov rcx, rsi
mov dword [rsi + 0xf0], r13d
mov dword [rsi + 0xf4], r13d
call fcn.0106d688
cmp eax, r13d
jne 0x106dc20
mov eax, dword [rsp + 0xd0]
mov dword [rsi + 0xf0], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsi + 0xf4], eax
mov rcx, qword [rsi + 8]
lea rax, [rsp + 0x30]
lea rdx, [0x01067410]
mov r9d, 0x80000000
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rbx, r13
mov dword [rsp + 0xd0], 4
mov qword [rsp + 0x30], r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r13d
mov ebp, eax
jne 0x106dc66
mov rbx, qword [rsp + 0x30]
mov ebp, r13d
cmp ebp, r13d
jne 0x106dcb9
lea rax, [rsp + 0xd0]
lea r9, [rsp + 0xd8]
lea rdx, [0x01067430]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe8]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r13d
mov ebp, eax
jne 0x106dcb9
cmp dword [rsp + 0xd8], 3
mov ebp, 0xd
jne 0x106dcb9
mov ebp, r13d
cmp rbx, r13
je 0x106dcc7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bp
or eax, 0x80070000
cmp ebp, r13d
cmovle eax, ebp
cmp eax, r13d
jl 0x106dced
mov eax, dword [rsp + 0xe8]
shr eax, 0xb
and eax, 1
mov dword [rsi + 0xa8], eax
cmp qword [rsi + 0x30], r13
je 0x106dcfa
mov edi, 0x8000ffff
jmp 0x106dd6a
mov rax, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov rcx, rsi
call qword [rax]
mov r11, qword [rsi]
xor r9d, r9d
lea edx, [r9 + 0x10]
xor r8d, r8d
mov rcx, rsi
call qword [r11]
lea r11, [rsp + 0x38]
lea r8, [0x0106d300]
mov qword [rsp + 0x28], r11
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, r13
mov qword [rsi + 0x30], rax
jne 0x106dd52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsi + 0xa4], 1
jmp 0x106dd6a
mov edi, 0x8004080b
jmp 0x106dd6a
mov edi, 0x800700b7
lea rcx, [rsp + 0x40]
call fcn.01072e94
mov eax, edi
add rsp, 0x90
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret