Function at 0x180022060
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 [0x1801548a8]
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 0x1800223a5
test r8, r8
je 0x1800223a5
cmp dword [rcx], 0
jne 0x180022365
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 0x1800223ca
mov dword [rsp + 0x34], 0x800
mov dword [rsp + 0x5c], 3
xor edx, edx
mov r8d, 0x801
lea rcx, [rsp + 0x80]
call fcn.1800c61d0
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 0x180022195
mov edx, dword [rsp + 0x34]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.180021710
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
call fcn.1800c5d60
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 0x1800223e3
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 0x1800223fc
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.180020a10
lea rcx, [rbx + 0x28]
mov rdx, r12
call fcn.180020a10
lea rcx, [rbx + 0x30]
lea rax, [rsp + 0x40]
cmp rcx, rax
je 0x180022238
movzx r9d, byte [rsp + 0x30]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
call fcn.1800215b0
mov dword [rbx], 1
mov dword [rbx + 0x4c], r13d
call fcn.180021ce0
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.1800228b0
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 0x1800222c6
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800223a5
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800223a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180022416
jmp 0x1800223a0
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x180022560]
xor edx, edx
xor ecx, ecx
call fcn.1800c902c
mov qword [rbx + 0x58], rax
mov rcx, qword [rsp + 0x40]
test rax, rax
jne 0x18002232e
test rcx, rcx
je 0x1800223a5
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800223a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002241c
jmp 0x1800223a0
test rcx, rcx
je 0x180022365
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180022360
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180022422
call fcn.1800965cc
mov al, 1
jmp 0x1800223a7
call fcn.1800965cc
xor al, al
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.180096b80
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, [0x18014dd28]
lea rcx, [rsp + 0x58]
call fcn.1800c5b90
mov dword [rsp + 0x60], 0xfffffffd
lea rdx, [0x18014dd28]
lea rcx, [rsp + 0x60]
call fcn.1800c5b90
mov dword [rsp + 0x64], 0xfffffffc
lea rdx, [0x18014dd28]
lea rcx, [rsp + 0x64]
call fcn.1800c5b90
nop
call fcn.1800c9338
int3
call fcn.1800c9338
int3
call fcn.1800c9338
int3