Function at 0x140002620
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.140050e10
sub rsp, rax
movaps xmmword [rsp + 0x1430], xmm6
movaps xmmword [rsp + 0x1420], xmm7
mov rax, qword [0x140069040]
xor rax, rsp
mov qword [rbp + 0x1310], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
movdqa xmm6, xmmword [0x14005fd00]
movdqa xmm7, xmmword [0x14005fd20]
mov dword [rsp + 0x78], 0xe46d66b9
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401023cc], eax
jle 0x1400026fe
lea rcx, [0x1401023cc]
call fcn.14004fe1c
cmp dword [0x1401023cc], 0xffffffff
jne 0x1400026fe
mov word [0x14010252c], 0x135
movups xmmword [0x140102508], xmm6
movups xmmword [0x140102518], xmm7
mov eax, dword [rsp + 0x78]
mov dword [0x140102528], eax
lea rcx, [0x1400517c0]
call fcn.1400500f8
lea rcx, [0x1401023cc]
call fcn.14004fdb0
cmp byte [0x14010252d], dil
je 0x140002815
xor byte [0x140102508], 0x8f
xor byte [0x140102509], 0x51
xor byte [0x14010250a], 0x55
xor byte [0x14010250b], 0xdd
xor byte [0x14010250c], 0x35
xor byte [0x14010250d], 0x9b
xor byte [0x14010250e], 0xbd
xor byte [0x14010250f], 0xed
xor byte [0x140102510], 0x8f
xor byte [0x140102511], 0x51
xor byte [0x140102512], 0x55
xor byte [0x140102513], 0xdd
xor byte [0x140102514], 0x35
xor byte [0x140102515], 0x9b
xor byte [0x140102516], 0xbd
xor byte [0x140102517], 0xed
xor byte [0x140102518], 0x8f
xor byte [0x140102519], 0x51
xor byte [0x14010251a], 0x55
xor byte [0x14010251b], 0xdd
xor byte [0x14010251c], 0x35
xor byte [0x14010251d], 0x9b
xor byte [0x14010251e], 0xbd
xor byte [0x14010251f], 0xed
xor byte [0x140102520], 0x8f
xor byte [0x140102521], 0x51
xor byte [0x140102522], 0x55
xor byte [0x140102523], 0xdd
xor byte [0x140102524], 0x35
xor byte [0x140102525], 0x9b
xor byte [0x140102526], 0xbd
xor byte [0x140102527], 0xed
xor byte [0x140102528], 0x8f
xor byte [0x140102529], 0x51
xor byte [0x14010252a], 0x55
xor byte [0x14010252b], 0xdd
xor byte [0x14010252c], 0x35
mov byte [0x14010252d], dil
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
lea rdx, [0x140102508]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], dil
jne 0x140002835
lea rcx, [rsp + 0x38]
call fcn.140006760
nop
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rbp + 0x1304], 0xffffffff
mov dword [rbp - 0x7c], eax
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rbp + rcx*4 - 0x7c], edx
inc rcx
cmp rcx, 0x270
jb 0x140002880
mov ebx, 0x270
mov dword [rbp - 0x80], ebx
mov r15d, dword [rsp + 0x48]
dec r15d
mov r12d, 4
mov r13, qword [rsp + 0x50]
mov r14, qword [rsp + 0x38]
nop
cmp r15d, 0xffffffff
jne 0x140002a4f
cmp ebx, 0x270
jne 0x140002921
lea r8, [rbp - 0x78]
mov r9d, ebx
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x1400028e0
mov ebx, dword [rbp - 0x80]
jmp 0x140002a16
cmp ebx, 0x4e0
jb 0x140002a16
mov r8, rdi
lea r9, [rbp + 0x944]
lea r10, [rbp + 0xf78]
lea r11, [rbp - 0x7c]
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r9 + r8*4]
xor edx, dword [rbp + r8*4 + 0x948]
btr edx, 0x1f
xor edx, dword [r9 + r8*4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r10 + r8*4]
shr edx, 1
xor ecx, edx
mov dword [r11 + r8*4], ecx
inc r8
cmp r8, 0xe3
jb 0x140002950
mov r8d, 0xe3
lea r9, [rbp + 0x948]
lea r10, [rbp - 0x7c]
nop dword [rax + rax]
mov eax, dword [rbp + r8*4 + 0x944]
mov edx, eax
xor edx, dword [r9 + r8*4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [rbp + r8*4 - 0x408]
shr edx, 1
xor ecx, edx
mov dword [r10 + r8*4], ecx
inc r8
cmp r8, 0x26f
jb 0x1400029a0
mov edx, dword [rbp + 0x1300]
and edx, 0x80000000
mov eax, dword [rbp - 0x7c]
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [rbp + 0x5b4]
mov dword [rbp + 0x940], ecx
mov ebx, edi
mov dword [rbp - 0x80], ebx
mov eax, ebx
mov edx, dword [rbp + rax*4 - 0x7c]
inc ebx
mov dword [rbp - 0x80], ebx
mov eax, edx
shr eax, 0xb
and eax, dword [rbp + 0x1304]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
jmp 0x140002a92
lea ebx, [r15 + 1]
lea rcx, [rbp - 0x80]
call fcn.140006d70
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x140002a89
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140002a89
lea rcx, [rbp - 0x80]
call fcn.140006d70
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140002a76
shr rcx, 0x20
mov ebx, dword [rbp - 0x80]
xor edi, edi
lea rdx, [rsp + 0x38]
cmp r13, 0xf
cmova rdx, r14
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
cmp rcx, rdx
jae 0x140002ad3
lea rax, [rcx + 1]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0xf
jbe 0x140002ac8
mov rax, qword [rsi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002adb
mov rcx, rsi
call fcn.1400065f0
sub r12, 1
jne 0x1400028c0
cmp r13, 0xf
jbe 0x140002b1f
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140002b17
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140050118
mov rax, rsi
mov rcx, qword [rbp + 0x1310]
xor rcx, rsp
call fcn.14004fd90
lea r11, [rsp + 0x1440]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret