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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x13a8]
mov eax, 0x1470
call fcn.14027bf80
sub rsp, rax
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x14b8], rbx
mov rsi, r8
mov r13, rdx
mov r14, rcx
xor r11d, r11d
mov dword [rsp + 0x20], r11d
mov qword [rcx], r11
mov qword [rcx + 8], r11
mov qword [rcx + 0x10], r11
mov dword [rsp + 0x20], 1
mov ecx, dword [0x1402c61d8]
xor edx, edx
mov rax, r13
div rcx
mov rdi, rax
add rdi, 1
je 0x140243957
movabs rax, 0x666666666666666
cmp rdi, rax
ja 0x140243c52
mov rdx, rdi
mov rcx, r14
call fcn.14026ca48
xor r11d, r11d
mov r12d, r11d
mov r15d, r11d
mov ebx, dword [0x1402c61d8]
mov eax, ebx
imul rax, r15
add rsi, rax
mov rcx, r13
sub rcx, rax
cmp rcx, rbx
cmovb rbx, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r11
cmp r12, r13
ja 0x140243957
mov rcx, qword [rbp + 0x13c0]
add rcx, r13
cmp rsi, rcx
ja 0x140243957
lea rax, [rbx + rsi]
cmp rax, rcx
ja 0x140243957
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x58]
call fcn.1400cea6c
mov rdx, qword [rbp + 0x13c8]
add rdx, r12
mov r8, rbx
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x80]
call fcn.1401723d0
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], rsi
or dword [rsp + 0x20], 2
mov r10, qword [r14 + 8]
cmp r10, qword [r14 + 0x10]
je 0x14024389c
mov rdx, qword [rbp - 0x70]
xor r11d, r11d
mov r9d, r11d
mov qword [rbp - 0x70], r11
mov rcx, qword [rbp - 0x78]
mov qword [rbp - 0x78], r11
mov rax, qword [rbp - 0x80]
mov r8d, r11d
mov qword [rbp - 0x80], r11
mov qword [r10], rax
mov qword [r10 + 8], rcx
mov qword [r10 + 0x10], rdx
mov qword [r10 + 0x18], rbx
mov qword [r10 + 0x20], rsi
add qword [r14 + 8], 0x28
jmp 0x1402438b6
lea r8, [rbp - 0x80]
mov rdx, r10
mov rcx, r14
call fcn.1402795c8
mov r9, qword [rbp - 0x70]
mov r8, qword [rbp - 0x80]
xor r11d, r11d
test r8, r8
je 0x1402438f9
sub r9, r8
mov rax, r8
cmp r9, 0x1000
jb 0x1402438df
add r9, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140243949
mov rdx, r9
mov rcx, r8
call fcn.14027b384
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
xor r11d, r11d
mov qword [rbp - 0x70], r11
add r12, rbx
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140243935
mov rdx, qword [rbp - 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14024392d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140243950
call fcn.14027b384
xor r11d, r11d
inc r15
cmp r15, rdi
jae 0x140243957
mov rsi, qword [rbp + 0x13c0]
jmp 0x1402437c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r9d, 0xffffffff
mov dword [rbp + 0x1364], r9d
mov ecx, 0x1571
mov dword [rbp - 0x1c], ecx
mov edx, 1
mov r8d, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [rbp + rdx*4 - 0x1c], ecx
inc rdx
cmp rdx, r8
jb 0x140243977
mov dword [rbp - 0x20], r8d
mov rbx, qword [r14 + 8]
mov rdi, qword [r14]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x40], rax
mov ecx, 0x40
or rax, 0xffffffffffffffff
dec rcx
shr rax, 1
cmp rax, r9
ja 0x1402439ae
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x38], rcx
cmp rdi, rbx
je 0x140243a4d
mov r15d, 1
lea rsi, [rdi + 0x28]
jmp 0x140243a48
lea rdx, [r15 + 1]
lea rcx, [rbp - 0x40]
call fcn.1400c74dc
cmp rax, r15
je 0x140243a41
lea rax, [rax + rax*4]
lea rdx, [rdi + rax*8]
mov rcx, qword [rsi + 0x20]
mov rax, qword [rdx + 0x20]
mov qword [rsi + 0x20], rax
mov qword [rdx + 0x20], rcx
mov rcx, qword [rsi + 0x18]
mov rax, qword [rdx + 0x18]
mov qword [rsi + 0x18], rax
mov qword [rdx + 0x18], rcx
cmp rsi, rdx
je 0x140243a41
mov rcx, qword [rsi]
mov rax, qword [rdx]
mov qword [rsi], rax
mov qword [rdx], rcx
mov rcx, qword [rsi + 8]
mov rax, qword [rdx + 8]
mov qword [rsi + 8], rax
mov qword [rdx + 8], rcx
mov rcx, qword [rsi + 0x10]
mov rax, qword [rdx + 0x10]
mov qword [rsi + 0x10], rax
mov qword [rdx + 0x10], rcx
inc r15
add rsi, 0x28
cmp rsi, rbx
jne 0x1402439d6
mov eax, 0x25
mov word [rsp + 0x24], ax
mov eax, 0x68
mov word [rsp + 0x26], ax
mov eax, 0x6d
mov word [rsp + 0x28], ax
mov eax, 0x7a
mov word [rsp + 0x2a], ax
mov eax, 0x73
mov word [rsp + 0x2c], ax
lea r8d, [rax - 3]
mov word [rsp + 0x2e], r8w
lea eax, [r8 + 8]
mov word [rsp + 0x30], ax
lea eax, [r8 - 0x3d]
mov word [rsp + 0x32], ax
xor r11d, r11d
mov word [rsp + 0x34], r11w
movzx eax, word [rsp + 0x24]
mov ecx, r11d
movzx eax, word [rsp + rcx*2 + 0x24]
sub ax, 5
mov word [rsp + rcx*2 + 0x24], ax
inc rcx
cmp rcx, 8
jb 0x140243aac
mov rcx, qword [r14 + 8]
sub rcx, qword [r14]
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rsp + 0x38], r8d
mov eax, 0x2b
mov word [rsp + 0x3c], ax
mov eax, 0x5e
mov word [rsp + 0x3e], ax
mov eax, 0x2d
mov word [rsp + 0x40], ax
lea r10d, [rax + 0x23]
mov word [rsp + 0x42], r10w
lea eax, [r10 - 0x1a]
mov word [rsp + 0x44], ax
lea eax, [r10 - 0x4e]
mov word [rsp + 0x46], ax
lea eax, [r10 - 0x3f]
mov word [rsp + 0x48], ax
lea eax, [r10 - 0x39]
mov word [rsp + 0x4a], ax
lea eax, [r10 - 0x33]
mov word [rsp + 0x4c], ax
lea r8d, [r10 - 0x3b]
mov word [rsp + 0x4e], r8w
lea ebx, [rax + 1]
mov word [rsp + 0x50], bx
lea r9d, [r10 - 0x4c]
mov word [rsp + 0x52], r9w
mov word [rsp + 0x54], r8w
lea ecx, [rax - 9]
mov word [rsp + 0x56], cx
mov word [rsp + 0x58], r10w
lea eax, [rbx - 0x1b]
mov word [rsp + 0x5a], ax
lea eax, [rbx - 6]
mov word [rsp + 0x5c], ax
mov word [rsp + 0x5e], r8w
lea eax, [rbx - 2]
mov word [rsp + 0x60], ax
mov word [rsp + 0x62], ax
lea eax, [rbx - 0xb]
mov word [rsp + 0x64], ax
lea edi, [rbx + 1]
mov word [rsp + 0x66], di
mov word [rsp + 0x68], cx
mov word [rsp + 0x6a], r8w
mov word [rsp + 0x6c], r10w
lea eax, [rbx - 5]
mov word [rsp + 0x6e], ax
mov word [rsp + 0x70], bx
mov word [rsp + 0x72], r9w
mov word [rsp + 0x74], di
mov word [rsp + 0x76], r10w
xor eax, eax
mov word [rsp + 0x78], ax
movzx eax, word [rsp + 0x3c]
mov r8, r11
movzx eax, word [rsp + r8*2 + 0x3c]
mov ecx, dword [rsp + 0x38]
xor cx, ax
mov word [rsp + r8*2 + 0x3c], cx
inc r8
cmp r8, rbx
jb 0x140243be0
mov word [rsp + 0x78], r11w
lea r8, [rsp + 0x24]
lea rcx, [rsp + 0x3c]
call fcn.14015cc58
nop
xor edx, edx
lea r8d, [rdx + 0x3e]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0x12]
lea rcx, [rsp + 0x24]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rax, r14
mov rbx, qword [rsp + 0x14b8]
add rsp, 0x1470
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400c5ac0
int3