Function at 0x140004c50
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 - 0x270]
sub rsp, 0x370
mov rax, qword [0x14004c040]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov r13d, r8d
mov r12, rdx
mov r14, rcx
xor ebx, ebx
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140004c98
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 0x14000542e
mov r15d, ebx
mov dword [rsp + 0x60], 0x104
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x14004ea60], eax
jg 0x14000545e
xor edx, edx
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 + 0x50]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140005423
lea r8, [0x140038154]
movabs rdx, 0x7ffffffffffffffe
mov rcx, qword [r14 + 0x10]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140005458
mov r9, r14
cmp qword [r14 + 0x18], 7
jbe 0x140004d4f
mov r9, qword [r14]
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x40]
call fcn.140006330
nop
lea rax, [rbp + 0x50]
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140004d80
mov rsi, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x140004dd5
lea rax, [rsi + rdi]
mov qword [rbp - 0x30], rax
lea rbx, [rbp - 0x40]
cmp rcx, 7
cmova rbx, qword [rbp - 0x40]
lea rcx, [rbx + rsi*2]
lea r8, [rdi + rdi]
lea rdx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + rdi]
xor ecx, ecx
mov word [rbx + rax*2], cx
lea rax, [rbp - 0x40]
xor ebx, ebx
jmp 0x140004dea
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x50]
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.140005f60
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140004e57
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005407
call fcn.140033300
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov qword [rsp + 0x78], rbx
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
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 0x1400053a3
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
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 + 0x40]
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], xmm0
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], 7
mov word [rbp], bx
lea rdx, [rbp]
lea rcx, [rsp + 0x68]
call fcn.140004a70
lea rdx, [rbp - 0x78]
mov rcx, r12
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
movabs rax, 0xd6bf94d5e57a42bd
mul rcx
shr rdx, 0x17
cmp r8d, r9d
jbe 0x140005367
cmp edx, 0xa
jle 0x140005367
lea r11, [rbp - 0x60]
mov rdi, qword [rbp - 0x60]
mov rsi, qword [rbp - 0x48]
cmp rsi, 7
cmova r11, rdi
mov r10, qword [rbp - 0x50]
cmp r10, 4
jb 0x140005036
lea rbx, [r10 - 3]
lea rbx, [r11 + rbx*2]
mov rcx, r11
nop dword [rax]
nop word [rax + rax]
mov rax, rbx
sub rax, rcx
sar rax, 1
mov edx, 0
je 0x140004fec
cmp word [rcx], 0x55
je 0x140004fe9
cmp rax, 1
je 0x140004fec
dec rax
add rcx, 2
cmp word [rcx], 0x55
jne 0x140004fd6
mov rdx, rcx
mov rcx, rdx
test rdx, rdx
je 0x140005034
mov r8d, 4
lea rax, [0x140038158]
mov rdx, rax
mov r9, rcx
sub r9, rax
nop word [rax + rax]
movzx eax, word [rdx + r9]
cmp ax, word [rdx]
jne 0x14000502e
add rdx, 2
sub r8, 1
jne 0x140005010
sub rcx, r11
sar rcx, 1
xor ebx, ebx
jmp 0x14000503d
add rcx, 2
jmp 0x140004fc0
xor ebx, ebx
mov rcx, 0xffffffffffffffff
cmp rcx, 0xffffffffffffffff
je 0x1400050f5
add rcx, 4
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rbx
cmp r10, rcx
jb 0x1400054f4
sub r10, rcx
mov r8, 0xffffffffffffffff
cmp r10, r8
cmovb r8, r10
lea rax, [rbp - 0x60]
cmp rsi, 7
cmova rax, rdi
lea rdx, [rax + rcx*2]
lea rcx, [rbp - 0x20]
call fcn.140003930
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x1400050cd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000540e
call fcn.140033300
movups xmm2, xmmword [rbp - 0x20]
movups xmmword [rbp - 0x60], xmm2
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rsi, xmm0
movq r10, xmm1
movq rdi, xmm2
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rbx
mov r8d, 0x11
cmp r10, r8
cmovb r8, r10
lea rdx, [rbp - 0x60]
cmp rsi, 7
cmova rdx, rdi
lea rcx, [rbp + 0x20]
call fcn.140003930
lea r8, [rbp + 0x20]
mov r11, qword [rbp + 0x20]
mov rdi, qword [rbp + 0x38]
cmp rdi, 7
cmova r8, r11
movabs rcx, 0xcbf29ce484222325
mov r10, qword [rbp + 0x30]
lea r9, [r10 + r10]
mov rdx, rbx
test r9, r9
je 0x140005178
movabs rdi, 0x100000001b3
nop
movzx eax, byte [rdx + r8]
xor rcx, rax
imul rcx, rdi
inc rdx
cmp rdx, r9
jb 0x140005160
mov rdi, qword [rbp + 0x38]
and rcx, qword [0x14004ea50]
add rcx, rcx
mov rax, qword [0x14004ea38]
mov r9, qword [rax + rcx*8 + 8]
mov rsi, qword [0x14004ea28]
cmp r9, rsi
jne 0x14000519f
mov r9, rbx
jmp 0x140005206
mov rbx, qword [rax + rcx*8]
nop dword [rax]
nop word [rax + rax]
lea rcx, [r9 + 0x10]
mov rax, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 7
jbe 0x1400051c2
mov rcx, qword [rcx]
lea r8, [rbp + 0x20]
cmp rdi, 7
cmova r8, r11
cmp r10, rax
jne 0x1400051f6
mov rdx, r10
test r10, r10
je 0x140005206
sub r8, rcx
nop
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x1400051f6
add rcx, 2
sub rdx, 1
jne 0x1400051e0
jmp 0x140005206
cmp r9, rbx
je 0x140005201
mov r9, qword [r9 + 8]
jmp 0x1400051b0
xor eax, eax
mov r9d, eax
mov rbx, rsi
test r9, r9
cmovne rbx, r9
cmp rdi, 7
jbe 0x14000524b
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x140005243
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000540e
mov rcx, r11
call fcn.140033300
cmp rbx, rsi
jne 0x140005365
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.140005860
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
mov rcx, rax
call fcn.140003f60
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.140005860
lea rdx, [0x140005ad0]
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.140005860
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
mov r8, qword [rbp + 0x10]
mov rcx, rax
call fcn.140003f60
lea rdx, [0x140005ad0]
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 - 0x20], xmm0
xor ebx, ebx
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rbx
mov r8d, 0x11
cmp qword [rbp - 0x50], r8
cmovb r8, qword [rbp - 0x50]
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x20]
call fcn.140003930
nop
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x70]
call fcn.140005b10
nop
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140005367
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000535e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000540e
call fcn.140033300
jmp 0x140005367
xor ebx, ebx
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x1400053a3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000539e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005415
call fcn.140033300
test r13d, r13d
jle 0x1400053b8
lea r8d, [r13 - 1]
mov rdx, r12
lea rcx, [rbp - 0x60]
call fcn.140004c50
inc r15d
mov dword [rsp + 0x60], 0x104
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x1400053ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400053fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000541c
call fcn.140033300
mov edx, r15d
jmp 0x140004ced
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400332e0
mov rbx, qword [rsp + 0x3c8]
add rsp, 0x370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140002290
int3
lea rcx, [0x14004ea60]
call fcn.1400333b0
cmp dword [0x14004ea60], 0xffffffff
jne 0x140004ceb
mov ecx, 0x30
call fcn.140033428
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [0x14004ea28], rax
mov qword [0x14004ea38], rbx
xorps xmm0, xmm0
movdqa xmmword [0x14004ea40], xmm0
mov qword [0x14004ea50], 7
mov qword [0x14004ea58], 8
mov dword [0x14004ea20], 0x3f800000
mov r8, rax
mov edx, 0x10
lea rcx, [0x14004ea38]
call fcn.140005720
nop
lea rcx, [0x140036030]
call fcn.14003368c
nop
lea rcx, [0x14004ea60]
call fcn.140033344
jmp 0x140004ceb
call fcn.140003140
int3