Function at 0x140058980
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r12, r9
mov r14, r8
mov rbx, rcx
mov rdi, qword [rcx + 0x240]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
test rdi, rdi
je 0x140058a0f
mov qword [rsp + 0x50], rdi
mov eax, 1
lock xadd dword [rdi], eax
inc eax
cmp eax, 1
jle 0x1400589fd
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rdi + 4], ecx
je 0x140058a0c
mov edx, 0xffffffff
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov dword [rdi + 4], ecx
inc dword [rdi + 8]
xor r13d, r13d
cmp qword [rbx + 0x290], r13
jne 0x140058a39
lea rdx, str.No_registry_event_ID_available
lea ecx, [r13 + 3]
call fcn.1400838f0
mov rsi, 0xffffffffffffffff
mov edi, esi
jmp 0x140058d66
mov qword [rbp], r13
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], 7
mov word [rbp], r13w
mov qword [rsp + 0x60], r13
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
mov r8d, 4
lea rdx, str.HKCU
lea rcx, [rsp + 0x60]
call fcn.140005060
nop
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop dword [rax]
inc r8
cmp word [r14 + r8*2], 0
jne 0x140058a90
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.140011ba0
lea rcx, [rbp]
cmp rcx, rax
je 0x140058acc
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140058abe
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp]
call fcn.140005060
nop
lea rcx, [rsp + 0x60]
call fcn.140004ff0
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
movabs r9, 0xcbf29ce484222325
mov rcx, r13
mov rax, qword [rbp + 0x10]
lea r8, [rax + rax]
test r8, r8
je 0x140058b23
movabs r10, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x140058b10
lea r8, [rbp]
lea rdx, [rbp - 0x80]
lea rcx, [rbx + 0x198]
call fcn.140008a10
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140058b47
mov rcx, qword [rbx + 0x1a0]
cmp qword [rbx + 0x1a0], rcx
jne 0x140058d52
mov qword [rbp - 8], r13
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140058bbe
mov qword [rsp + 0x40], r13
lea rax, [rbp - 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x140058d5c
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
movzx edx, byte [rbp + 0xb0]
mov dword [rsp + 0x20], 1
mov r9, rax
mov r8d, 5
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov edi, eax
test eax, eax
jne 0x140058d5c
mov rdx, qword [rbx + 0x288]
mov rcx, qword [rbx + 0x280]
dec rcx
mov rax, rdx
shr rax, 2
and rcx, rax
and edx, 3
mov rax, qword [rbx + 0x278]
mov rcx, qword [rax + rcx*8]
mov eax, dword [rcx + rdx*4]
mov dword [rbp - 0x10], eax
sub qword [rbx + 0x290], 1
jne 0x140058c41
mov qword [rbx + 0x288], r13
jmp 0x140058c48
inc qword [rbx + 0x288]
lea r8, [rbp]
lea rdx, [rbp - 0x70]
lea rcx, [rbx + 0x198]
call fcn.14005a8d0
mov rcx, qword [rax]
mov eax, dword [rbp - 0x10]
mov dword [rcx + 0x30], eax
lea rcx, [rbx + 0x1d8]
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x60]
call fcn.14005a610
mov rcx, qword [rax]
mov rax, qword [rbp - 8]
mov qword [rcx + 0x18], rax
lea rcx, [rbx + 0x158]
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x50]
call fcn.14005a610
mov rcx, qword [rax]
mov qword [rcx + 0x18], r14
mov rcx, qword [rbx + 0x220]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbp - 0x10]
mov dword [r12], eax
mov qword [rbp + 0x20], r13
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], r13w
mov r8d, 9
lea rdx, str.Registry
lea rcx, [rbp + 0x20]
call fcn.140005060
nop
mov edx, dword [rbp - 0x10]
lea rcx, [rbp - 0x30]
call fcn.14000f7c0
nop
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140058cfa
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
lea rcx, [rbp + 0x20]
call fcn.140011ba0
mov r14, rax
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x40]
mov rcx, rbx
call fcn.14005ae20
mov rcx, qword [rax]
add rcx, 0x18
cmp rcx, r14
je 0x140058d3d
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x140058d33
mov rdx, qword [r14]
mov r8, qword [r14 + 0x10]
call fcn.140005060
nop
lea rcx, [rbp - 0x30]
call fcn.140004ff0
nop
lea rcx, [rbp + 0x20]
call fcn.140004ff0
jmp 0x140058d5c
mov eax, dword [rcx + 0x30]
mov dword [r12], eax
mov edi, r13d
lea rcx, [rbp]
call fcn.140004ff0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140058d9f
add dword [rcx + 8], 0xffffffff
mov eax, dword [rcx + 8]
jne 0x140058d7d
mov dword [rcx + 4], r13d
lock xadd dword [rcx], esi
cmp esi, 1
je 0x140058d9f
test eax, eax
jne 0x140058d9f
xor r8d, r8d
lea edx, [rax + 1]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14014f2f0
mov rbx, qword [rsp + 0x198]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret