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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x13f0
call fcn.140064050
sub rsp, rax
mov rax, qword [0x14007f060]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov r13, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
mov r8d, 0x3e
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890
lea rcx, [rsp + 0x30]
call fcn.1400085a0
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov edi, 0xffffffff
mov dword [rsp + 0x13d4], edi
mov dword [rsp + 0x54], eax
mov ecx, 1
nop dword [rax]
nop dword [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140002dd0
mov dword [rsp + 0x50], 0x270
mov r14, qword [rsp + 0x40]
dec r14
mov qword [r13], 0
mov qword [r13 + 0x10], 0
mov qword [r13 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r13], 0
xor r8d, r8d
lea edx, [r8 + 0xa]
mov rcx, r13
call fcn.140008430
cmp qword [r13 + 0x18], 0x10
jb 0x140002e40
mov rcx, qword [r13]
mov rdx, rcx
mov qword [rsp + 0x20], rcx
jmp 0x140002e4b
mov qword [rsp + 0x20], r13
mov rdx, r13
mov rcx, r13
mov rax, qword [r13 + 0x10]
add rax, rdx
mov qword [rsp + 0x28], rax
mov r8, qword [rsp + 0x30]
cmp rcx, rax
je 0x140002f7b
nop word [rax + rax]
mov rbx, 0xffffffffffffffff
mov r15d, 0x40
nop dword [rax]
dec r15
shr rbx, 1
cmp rbx, rdi
ja 0x140002e80
cmp r14, 0xffffffffffffffff
jne 0x140002ecf
xor edi, edi
xor esi, esi
nop word [rax + rax]
lea rcx, [r15 - 1]
shl rdi, cl
add rdi, rdi
nop word [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.140012d50
mov eax, eax
cmp rax, rbx
ja 0x140002eb0
or rdi, rax
add rsi, r15
cmp rsi, 0x40
jb 0x140002ea0
jmp 0x140002f41
lea r12, [r14 + 1]
xor edi, edi
xor esi, esi
test r14, r14
je 0x140002f16
nop dword [rax]
lea rcx, [r15 - 1]
shl rdi, cl
add rdi, rdi
nop word [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.140012d50
mov eax, eax
cmp rax, rbx
ja 0x140002ef0
or rdi, rax
lea rcx, [r15 - 1]
shl rsi, cl
add rsi, rsi
or rsi, rbx
cmp rsi, r14
jb 0x140002ee0
xor edx, edx
mov rax, rsi
div r12
mov r8, rdx
mov rcx, rax
xor edx, edx
mov rax, rdi
div r12
cmp rax, rcx
jb 0x140002f36
cmp r8, r14
jne 0x140002ed3
xor edx, edx
mov rax, rdi
div r12
mov rdi, rdx
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rax, qword [rsp + 0x30]
movzx eax, byte [rdi + rax]
mov r8, qword [rsp + 0x20]
mov byte [r8], al
inc r8
mov qword [rsp + 0x20], r8
cmp r8, qword [rsp + 0x28]
mov edi, 0xffffffff
jne 0x140002e70
mov r8, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x140002fba
lea rdx, [rax + 1]
mov rax, r8
cmp rdx, 0x1000
jb 0x140002fb2
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002fb2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140063a74
mov rax, r13
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.1400636d0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret