Function at 0x140007a20
Capabilities:
Encode data using xor
Hash data using fnv
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4b0]
sub rsp, 0x5b0
mov rax, qword [0x14006b030]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x78], rdx
mov r12, rcx
xor ebx, ebx
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140007a6c
mov rdx, qword [rcx]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008491
mov r13d, ebx
mov dword [rsp + 0x60], 0x104
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax]
mov ecx, dword [rcx + rax]
cmp dword [0x14006e9d0], ecx
jg 0x1400084c7
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x290]
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140008487
mov r8d, 0xa
movabs rdx, 0x7fffffffffffffff
movabs rcx, 0x7ffffffffffffffe
mov r14, qword [r12 + 0x10]
mov rax, rcx
sub rax, r14
cmp rax, 1
jb 0x1400084c1
mov r15, r12
cmp qword [r12 + 0x18], 8
jb 0x140007b39
mov r15, qword [r12]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rbx
mov qword [rbp + 8], rbx
lea rsi, [r14 + 1]
mov ebx, 7
lea rdi, [rbp - 0x10]
cmp rsi, rbx
jbe 0x140007b9b
mov rbx, rsi
or rbx, 7
cmp rbx, rcx
jbe 0x140007b6e
mov rbx, rcx
mov rcx, rdx
jmp 0x140007b89
cmp rbx, 0xa
cmovb rbx, r8
lea rcx, [rbx + 1]
cmp rcx, rdx
ja 0x140008510
lfence
add rcx, rcx
call fcn.140006ee0
mov rdi, rax
mov qword [rbp - 0x10], rax
mov qword [rbp], rsi
mov qword [rbp + 8], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x5c
mov word [rbx + rdi], ax
xor r14d, r14d
mov word [rdi + rsi*2], r14w
lea rax, [rbp + 0x290]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140007bd4
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x140007c29
lea rax, [rdi + rsi]
mov qword [rbp], rax
lea rbx, [rbp - 0x10]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x10]
lea rcx, [rbx + rsi*2]
lea r8, [rdi + rdi]
lea rdx, [rbp + 0x290]
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + rdi]
mov word [rbx + rax*2], r14w
lea rax, [rbp - 0x10]
jmp 0x140007c45
lfence
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x290]
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140009140
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x140007cb3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007cae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008465
call fcn.140048710
mov qword [rbp], r14
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r14w
mov qword [rbp - 0x78], r14
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400083c2
lea rax, [rbp - 0x78]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r14w
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x100
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, str.yyyy_MM_dd
lea r8, [rbp + 0x70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDateFormatEx]
lea rax, [rbp + 0x90]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140007dd0
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x30]
call fcn.140008840
mov dword [rsp + 0x28], 0x100
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, str.HH:mm:ss
lea r8, [rbp + 0x70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTimeFormatEx]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140007e4a
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp rdx, 8
cmovae rax, qword [rbp - 0x30]
mov dword [rax + rcx*2], 0x20
lea rbx, [rbp - 0x30]
jmp 0x140007e6e
lfence
mov qword [rsp + 0x20], 1
lea r9, [0x14005144c]
mov edx, 1
lea rcx, [rbp - 0x30]
call fcn.140009140
mov rbx, rax
lea rax, [rbp + 0x90]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140007e80
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140007ecc
lea rdi, [rcx + rdx]
mov qword [rbx + 0x10], rdi
cmp r8, 8
jb 0x140007eae
mov rbx, qword [rbx]
lea rcx, ds:[rbx + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r14w
jmp 0x140007ee5
lfence
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x90]
mov rcx, rbx
call fcn.140009140
lea rdx, [rbp - 0x68]
mov r15, qword [rsp + 0x78]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov r9d, dword [rbp - 0x64]
mov edx, r9d
shl rdx, 0x20
mov eax, dword [rbp - 0x68]
or rdx, rax
mov r8d, dword [rsp + 0x6c]
mov ecx, r8d
shl rcx, 0x20
mov eax, dword [rsp + 0x68]
or rcx, rax
sub rcx, rdx
movabs rax, 0xd6bf94d5e57a42bd
mul rcx
shr rdx, 0x17
cmp r8d, r9d
jbe 0x140008360
nop dword [rax + rax]
cmp edx, 0xa
jle 0x140008360
lea r10, [rbp - 0x50]
mov rdi, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x38]
cmp rsi, 8
cmovae r10, rdi
mov r11, qword [rbp - 0x40]
cmp r11, 4
jb 0x140007ff4
lea rbx, [r11 - 3]
lea rbx, [r10 + rbx*2]
mov rax, r10
nop word [rax + rax]
mov rcx, rbx
sub rcx, rax
sar rcx, 1
mov rdx, r14
je 0x140007faa
cmp word [rax], 0x55
je 0x140007fa7
cmp rcx, 1
je 0x140007faa
dec rcx
add rax, 2
cmp word [rax], 0x55
jne 0x140007f94
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x140007ff4
mov r8d, 4
lea rcx, str.USB_
mov rdx, rcx
mov r9, rax
sub r9, rcx
nop dword [rax + rax]
movzx ecx, word [r9 + rdx]
cmp cx, word [rdx]
jne 0x140007fee
add rdx, 2
sub r8, 1
jne 0x140007fd0
sub rax, r10
sar rax, 1
jmp 0x140007ffb
add rax, 2
jmp 0x140007f80
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x1400080d5
lea rcx, ds:[rax + 4]
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], r14
cmp r11, rcx
jb 0x140008516
lfence
mov rax, qword [rbp - 0x40]
sub rax, rcx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
lea rdx, [rax + rcx*2]
lea rcx, [rbp + 0x50]
call fcn.140006d20
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14000809c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008097
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000846c
call fcn.140048710
movups xmm2, xmmword [rbp + 0x50]
movups xmmword [rbp - 0x50], xmm2
movups xmm1, xmmword [rbp + 0x60]
movups xmmword [rbp - 0x40], xmm1
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x68], 7
mov word [rbp + 0x50], r14w
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rsi, xmm0
movq r11, xmm1
movq rdi, xmm2
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x28], r14
mov r8d, 0x11
cmp r11, r8
cmovb r8, r11
lea rdx, [rbp - 0x50]
cmp rsi, 8
cmovae rdx, rdi
lea rcx, [rbp + 0x10]
call fcn.140006d20
lea r8, [rbp + 0x10]
mov rdi, qword [rbp + 0x28]
cmp rdi, 8
setae r14b
mov r11, qword [rbp + 0x10]
cmovae r8, r11
movabs rcx, 0xcbf29ce484222325
mov r10, qword [rbp + 0x20]
lea r9, [r10 + r10]
xor edx, edx
test r9, r9
je 0x14000815a
movabs r15, 0x100000001b3
movzx eax, byte [rdx + r8]
xor rcx, rax
imul rcx, r15
inc rdx
cmp rdx, r9
jb 0x140008141
mov r15, qword [rsp + 0x78]
and rcx, qword [0x14006e9c0]
add rcx, rcx
mov rax, qword [0x14006e9a8]
mov r9, qword [rax + rcx*8 + 8]
mov rsi, qword [0x14006e998]
cmp r9, rsi
je 0x1400081d3
mov rbx, qword [rax + rcx*8]
lea rcx, [r9 + 0x10]
mov rax, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x140008192
mov rcx, qword [rcx]
lea r8, ds:[rbp + 0x10]
cmp rdi, 8
cmovae r8, r11
cmp r10, rax
jne 0x1400081c8
mov rdx, r10
test r10, r10
je 0x1400081d6
sub r8, rcx
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x1400081c8
add rcx, 2
sub rdx, 1
je 0x1400081d6
jmp 0x1400081b0
cmp r9, rbx
je 0x1400081d3
mov r9, qword [r9 + 8]
jmp 0x140008180
xor r9d, r9d
mov rbx, rsi
test r9, r9
cmovne rbx, r9
test r14b, r14b
je 0x14000821a
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x140008212
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000846c
mov rcx, r11
call fcn.140048710
xor r14d, r14d
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], r14w
cmp rbx, rsi
jne 0x140008360
lea rdx, str.____Warning:_Unplugged_device_detected:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400089c0
lea rdx, ds:[rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
mov rcx, rax
call fcn.140009300
lea rdx, str.._Ban_the_user_if_after_looking_for_the_VID_and_PID_on_Google__you_find_that_the_device_its_a_peripheral_device.
mov rcx, rax
call fcn.1400089c0
lea rdx, [0x140008c60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, str.____Device_was_unplugged_at:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400089c0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
mov rcx, rax
call fcn.140009300
lea rdx, [0x140008c60]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x48], r14
mov r8d, 0x11
cmp qword [rbp - 0x40], r8
cmovb r8, qword [rbp - 0x40]
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
lea rcx, [rbp + 0x30]
call fcn.140006d20
nop
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x60]
call fcn.140008ca0
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x14000834f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000834a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000846c
call fcn.140048710
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], r14w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400083af
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400083aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008473
call fcn.140048710
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r14w
jmp 0x1400083c7
mov r15, qword [rsp + 0x78]
mov ebx, dword [rsp + 0x70]
test ebx, ebx
jle 0x1400083e5
lfence
lea r8d, [rbx - 1]
mov rdx, r15
lea rcx, [rbp - 0x50]
call fcn.140007a20
inc r13d
mov dword [rsp + 0x60], 0x104
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14000842c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008427
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000847a
call fcn.140048710
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x290]
mov edx, r13d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140008487
xor ebx, ebx
jmp 0x140007af2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
nop word [rax + rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword ds:[rbp + 0x4a0]
xor rcx, rsp
call fcn.1400486f0
mov rbx, qword ss:[rsp + 0x608]
add rsp, 0x5b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140004080
int3
lea rcx, [0x14006e9d0]
call fcn.140048928
cmp dword [0x14006e9d0], 0xffffffff
nop word [rax + rax]
jne 0x140007abe
lea rcx, [0x14006e990]
call fcn.1400085c0
lea rcx, [0x14004e5c0]
call fcn.140048c70
nop
lea rcx, [0x14006e9d0]
call fcn.1400488c8
jmp 0x140007abe
call fcn.140003fd0
nop
call fcn.1400089a0
int3