Function at 0x140001390
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x29], rax
lea rdi, [0x140073b50]
mov qword [rbp - 0x29], rdi
xor ebx, ebx
mov qword [0x140073b58], rbx
mov qword [0x140073b60], rbx
mov ecx, 0x48
call fcn.14005c000
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x140073b58], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x140074ef0], 0xffffffff
mov dword [0x140073b70], eax
mov edx, 1
lea r8, [0x140073b74]
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [r8], eax
inc rdx
lea r8, [r8 + 4]
cmp rdx, 0x270
jb 0x140001420
mov dword [0x140073b6c], 0x270
movaps xmm0, xmmword [0x140067b90]
movups xmmword [0x140074ef8], xmm0
lea rdx, [rbp + 0xf]
call fcn.140001640
nop
mov r8, qword [rbp + 0x1f]
test r8, r8
je 0x1400015ae
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rdx, qword [rbp + 0xf]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003290
lea rdx, [0x140002840]
mov rcx, rax
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]
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rcx, qword [rbp + 0xf]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x140073b50], rax
cmp rax, 0xffffffffffffffff
jne 0x1400014e8
lea rdx, [0x14005fb88]
jmp 0x1400015b5
xorps xmm0, xmm0
movdqu xmmword [rbp - 0xd], xmm0
mov qword [rbp + 3], rbx
mov dword [rbp - 0x11], 0x1c
lea rdx, [rbp - 0x11]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
jne 0x140001515
lea rdx, [0x14005fb98]
jmp 0x140001583
mov dword [rbp - 0xd], 0x2580
mov word [rbp + 1], 8
mov byte [rbp + 3], 0
lea rdx, [rbp - 0x11]
mov rcx, qword [0x140073b50]
call qword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
jne 0x140001544
lea rdx, [0x14005fbb0]
jmp 0x140001583
mov dword [rbp + 0x2f], 0x32
mov dword [rbp + 0x37], 0x32
mov dword [rbp + 0x33], 0xa
mov dword [rbp + 0x3f], 0x32
mov dword [rbp + 0x3b], 0xa
lea rdx, [rbp + 0x2f]
mov rcx, qword [0x140073b50]
call qword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
jne 0x1400015d2
lea rdx, [0x14005fbc8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002880
lea rdx, [0x140002840]
mov rcx, rax
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 [0x140073b50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400015d2
lea rdx, [0x14005fb58]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002880
lea rdx, [0x140002840]
mov rcx, rax
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]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140001611
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000160b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000160b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005c27c
nop
mov rax, rdi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14005bfe0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret