Function at 0x140001230
Capabilities:
Encode data using xor
Execute command
Get storage device properties
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Enter_key:
call fcn.140001660
mov rcx, rax
lea rdx, [0x140001830]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea rdx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64____ptr64]
xor ebx, ebx
lea rcx, str..PhysicalDrive0
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov dword [rsp + 0x58], ebx
lea r8d, [rbx + 3]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
test rax, rax
je 0x14000141e
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 0xc]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov edx, 0x2d1400
mov qword [rsp + 0x50], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000141e
mov ecx, dword [rsp + 0x44]
call fcn.1400018e4
mov r8d, dword [rsp + 0x44]
xor edx, edx
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [rsp + 0x44]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
lea r9d, [rbx + 0xc]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], ecx
mov edx, 0x2d1400
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000136b
mov rcx, rdi
call fcn.1400018a0
jmp 0x14000141e
mov eax, dword [rdi + 0x18]
test eax, eax
je 0x14000141e
lea rdx, [rdi + rax]
lea rcx, [rsp + 0x68]
call fcn.1400014d0
mov rcx, rdi
call fcn.1400018a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x68]
mov r8, qword [rsp + 0x68]
cmp rdx, 0xf
movabs rbx, 0xcbf29ce484222325
movabs r9, 0x100000001b3
cmova rcx, r8
movzx eax, byte [rcx]
nop word [rax + rax]
movzx eax, al
lea rcx, [rcx + 1]
xor rbx, rax
movzx eax, byte [rcx]
imul rbx, r9
test al, al
jne 0x1400013d0
cmp rdx, 0xf
jbe 0x14000141e
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x140001416
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001416
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.1400018a0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.key:
call fcn.140001660
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140001830]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp rbx, qword [rsp + 0x60]
jne 0x14000149b
lea rcx, str.___Valid_key_n
call fcn.1400011b0
mov edx, 0x32fa2df
mov ecx, 0x55d4a80
call qword [sym.imp.KERNEL32.dll_Beep]
mov edx, 0x32fa2df
mov ecx, 0x3310261
call qword [sym.imp.KERNEL32.dll_Beep]
mov edx, 0x32fa2df
mov ecx, 0xeb319f0a
call qword [sym.imp.KERNEL32.dll_Beep]
mov ecx, 0x6ef22
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140001880
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret