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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1340]
mov eax, 0x1440
call fcn.14009b250
sub rsp, rax
mov rax, qword [0x1400fa070]
xor rax, rsp
mov qword [rbp + 0x1330], rax
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
movdqa xmm0, xmmword [0x1400ecfa0]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x1400ed040]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmmword [0x1400eced0]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [str.BC_A__Z_XYVWT]
movdqa xmmword [rsp + 0x60], xmm1
mov ecx, r12d
nop dword [rax]
movzx eax, byte [rsp + 0x30]
xor byte [rsp + rcx + 0x31], al
movzx eax, byte [rsp + 0x30]
xor byte [rsp + rcx + 0x32], al
add rcx, 2
cmp rcx, 0x3e
jb 0x14004c0f0
mov byte [rsp + 0x6f], r12b
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x78], r12b
lea rax, [rsp + 0x31]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r12b
jne 0x14004c133
lea rdx, [rsp + 0x31]
lea rcx, [rsp + 0x78]
call fcn.140001460
nop
mov qword [rdi], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov ebx, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov dword [rbp + 0x1324], 0xffffffff
mov dword [rbp - 0x5c], eax
nop dword [rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, ebx
mov dword [rbp + rbx*4 - 0x5c], ecx
inc rbx
cmp rbx, 0x270
jb 0x14004c180
mov dword [rbp - 0x60], 0x270
mov ebx, dword [rbp - 0x78]
dec ebx
mov r13, qword [rbp - 0x70]
mov r14, qword [rsp + 0x78]
test r15, r15
je 0x14004c262
nop dword [rax]
cmp ebx, 0xffffffff
jne 0x14004c1d2
lea rcx, [rbp - 0x60]
call fcn.140052e00
mov edx, eax
jmp 0x14004c20f
lea esi, [rbx + 1]
mov ecx, r12d
mov eax, r12d
test ebx, ebx
je 0x14004c1ef
lea rcx, [rbp - 0x60]
call fcn.140052e00
mov ecx, eax
mov eax, 0xffffffff
xor edx, edx
div esi
mov r9d, edx
mov r8d, eax
xor edx, edx
mov eax, ecx
div esi
cmp eax, r8d
jb 0x14004c209
cmp r9d, ebx
jne 0x14004c1d5
xor edx, edx
mov eax, ecx
div esi
lea rcx, [rsp + 0x78]
cmp r13, 0x10
cmovae rcx, r14
movsxd rax, edx
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14004c250
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x14004c245
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14004c258
mov rcx, rdi
call fcn.140052880
sub r15, 1
jne 0x14004c1c0
cmp r13, 0x10
jb 0x14004c29c
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x14004c294
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c294
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14009a918
mov rax, rdi
mov rcx, qword [rbp + 0x1330]
xor rcx, rsp
call fcn.14009a620
lea r11, [rsp + 0x1440]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret