Function at 0x140007280
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 - 0x470]
sub rsp, 0x570
mov rax, qword [0x140078040]
xor rax, rsp
mov qword [rbp + 0x460], rax
mov r13d, r8d
mov rdi, rdx
mov qword [rbp - 0x68], rdx
mov rbx, rcx
mov qword [rbp - 0x70], rcx
xor esi, esi
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x1400072d0
mov rdx, qword [rcx]
lea rax, [rsp + 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 0x1400079f3
mov r12d, esi
mov dword [rsp + 0x60], 0x104
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x14007bb80], eax
jle 0x14000735e
lea rcx, [0x14007bb80]
call fcn.14004d7f4
cmp dword [0x14007bb80], 0xffffffff
jne 0x14000735e
lea rcx, [0x14007bb40]
nop dword [rax + rax]
call fcn.140007ae0
lea rcx, [0x140052ee0]
call fcn.14004da94
nop
lea rcx, [0x14007bb80]
call fcn.14004d788
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x250]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400079e8
movabs r15, 0xd6bf94d5e57a42bd
movabs r14, 0x100000001b3
nop word [rax + rax]
lea r8, [0x140055aa0]
mov rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.140007f80
nop
lea rcx, [rbp + 0x250]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], 0
jne 0x1400073d4
lea rdx, [rbp + 0x250]
mov rcx, rax
call fcn.140007e40
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rcx, [rbp + 0x30]
call fcn.1400058e0
mov qword [rsp + 0x78], rsi
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rdx, qword [rbp - 0x50]
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 0x140007945
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rsi
mov qword [rbp + 8], 7
mov word [rbp - 0x10], si
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x100
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, str.yyyy_MM_dd
lea r8, [rbp + 0x10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDateFormatEx]
lea rax, [rbp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140007523
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.140007ce0
mov dword ss:[rsp + 0x28], 0x100
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, str.HH:mm:ss
lea r8, [rbp + 0x10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTimeFormatEx]
mov r8d, 1
lea rdx, [0x140055a9c]
lea rcx, [rbp - 0x10]
call fcn.140007e40
lea rcx, [rbp + 0x50]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x140007590
lea rdx, [rbp + 0x50]
mov rcx, rax
call fcn.140007e40
lea rdx, [rbp - 0x78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov r9d, dword [rbp - 0x74]
mov edx, r9d
shl rdx, 0x20
mov eax, dword [rbp - 0x78]
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
mov rax, r15
mul rcx
shr rdx, 0x17
cmp r8d, r9d
jbe 0x14000793b
cmp edx, 0xa
jle 0x14000793b
lea rcx, ds:[rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rcx, qword [rbp - 0x50]
mov qword [rsp + 0x20], 4
lea r9, str.USB_
xor r8d, r8d
mov rdx, qword [rbp - 0x40]
call fcn.1400087c0
cmp rax, 0xffffffffffffffff
je 0x1400076ef
lea rcx, [rax + 4]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
cmp qword [rbp - 0x40], rcx
jb 0x140007a2f
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], 7
cmova rax, qword [rbp - 0x50]
lea rdx, [rax + rcx*2]
lea rcx, [rbp - 0x30]
call fcn.1400066a0
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x1400076cf
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword ds:[rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400076ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007a21
call fcn.14004d6c0
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov r8d, 0x11
cmp qword [rbp - 0x40], r8
cmovb r8, qword [rbp - 0x40]
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.1400066a0
lea rdx, [rbp - 0x30]
mov rsi, qword [rbp - 0x18]
cmp rsi, 7
seta r15b
mov rdi, qword [rbp - 0x30]
cmova rdx, rdi
movabs r8, 0xcbf29ce484222325
mov rax, qword [rbp - 0x20]
lea r9, [rax + rax]
xor ecx, ecx
test r9, r9
je 0x140007773
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r8, rax
imul r8, r14
inc rcx
cmp rcx, r9
jb 0x140007760
lea rdx, ds:[rbp - 0x30]
lea rcx, [0x14007bb40]
call fcn.140008e20
mov rbx, rax
mov r14, qword [0x14007bb48]
test r15b, r15b
je 0x1400077d2
lea rdx, ds:[rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400077ca
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007a21
mov rcx, rdi
call fcn.14004d6c0
xor esi, esi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
cmp rbx, r14
jne 0x14000791f
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]
nop dword [rax + rax]
call fcn.1400080c0
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
mov rcx, rax
call fcn.140008ee0
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.1400080c0
lea rdx, [0x140008380]
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.1400080c0
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
mov rcx, rax
call fcn.140008ee0
lea rdx, [0x140008380]
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 - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov r8d, 0x11
cmp qword [rbp - 0x40], r8
cmovb r8, qword [rbp - 0x40]
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.1400066a0
nop
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x60]
call fcn.1400083c0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x14000790f
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword ds:[rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000790a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007a21
call fcn.14004d6c0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
movabs r15, 0xd6bf94d5e57a42bd
movabs r14, 0x100000001b3
mov rdi, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
lea rcx, ds:[rbp - 0x10]
call fcn.1400058e0
test r13d, r13d
jle 0x14000795d
lfence
lea r8d, [r13 - 1]
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140007280
inc r12d
mov dword [rsp + 0x60], 0x104
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x1400079af
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400079aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007a28
call fcn.14004d6c0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x250]
mov edx, r12d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax]
test eax, eax
je 0x1400073b0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword ds:[rbp + 0x460]
xor rcx, rsp
call fcn.14004d6a0
mov rbx, qword ss:[rsp + 0x5c8]
add rsp, 0x570
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
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 fcn.140007f60
int3