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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x8a0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x180146748]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov r12, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [rsp + 0x900]
mov qword [rsp + 0x70], rax
test rdx, rdx
je 0x1800221e5
test r8, r8
je 0x1800221e5
cmp dword [rcx], 0
jne 0x1800221a5
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
mov eax, 0x110
mov r9d, 0x210
mov r13d, dword [rsp + 0x910]
test r13d, r13d
cmovne r9d, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18002220a
mov dword [rsp + 0x34], 0x800
mov dword [rsp + 0x5c], 3
xor edx, edx
mov r8d, 0x801
lea rcx, [rsp + 0x80]
call fcn.1800bbd80
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
mov r8, r12
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x180021fd5
mov edx, dword [rsp + 0x34]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.180021550
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
call fcn.1800bb910
xor r9d, r9d
mov edx, 1
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x180022223
mov dword [rsp + 0x20], 1
mov r9, rsi
mov r8d, 4
mov r15d, dword [rsp + 0x908]
mov edx, r15d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x18002223c
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], r14
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x48], r15d
lea rcx, [rbx + 0x20]
mov rdx, rdi
call fcn.180020850
lea rcx, [rbx + 0x28]
mov rdx, r12
call fcn.180020850
lea rcx, [rbx + 0x30]
lea rax, [rsp + 0x40]
cmp rcx, rax
je 0x180022078
movzx r9d, byte [rsp + 0x30]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
call fcn.1800213f0
mov dword [rbx], 1
mov dword [rbx + 0x4c], r13d
call fcn.180021b20
mov rcx, rax
mov dword [rsp + 0x28], r13d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, r12
mov r8, rdi
mov rdx, r14
call fcn.1800226f0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x180022106
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800221e5
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800221e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180022256
jmp 0x1800221e0
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1800223a0]
xor edx, edx
xor ecx, ecx
call fcn.1800bebdc
mov qword [rbx + 0x58], rax
mov rcx, qword [rsp + 0x40]
test rax, rax
jne 0x18002216e
test rcx, rcx
je 0x1800221e5
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800221e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002225c
jmp 0x1800221e0
test rcx, rcx
je 0x1800221a5
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800221a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180022262
call fcn.18008c16c
mov al, 1
jmp 0x1800221e7
call fcn.18008c16c
xor al, al
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.18008c720
add rsp, 0x8a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov dword [rsp + 0x58], 0xffffffff
lea rdx, [0x1801405b8]
lea rcx, [rsp + 0x58]
call fcn.1800bb740
mov dword [rsp + 0x60], 0xfffffffd
lea rdx, [0x1801405b8]
lea rcx, [rsp + 0x60]
call fcn.1800bb740
mov dword [rsp + 0x64], 0xfffffffc
lea rdx, [0x1801405b8]
lea rcx, [rsp + 0x64]
call fcn.1800bb740
nop
call fcn.1800beee8
int3
call fcn.1800beee8
int3
call fcn.1800beee8
int3