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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14006e030]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebp, r9d
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
xor r15d, r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov rcx, qword [rdx]
test rcx, rcx
je 0x140040117
mov rax, qword [rcx]
call qword [rax]
jmp 0x14004011a
mov rax, r15
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], r15
mov qword [rdi + 0x20], r15
lea rcx, [rdi + 0x28]
mov rdx, r14
call fcn.140005a88
nop
lea rcx, [rdi + 0x78]
mov rdx, r14
call fcn.140005a88
nop
lea rcx, [rdi + 0xc8]
mov rdx, r14
call fcn.140005a88
nop
mov eax, 0x7d0
mov dword [rdi + 0x118], eax
mov dword [rdi + 0x11c], eax
mov dword [rdi + 0x120], eax
mov word [rdi + 0x124], r15w
mov qword [rdi + 0x128], r15
lea rcx, [rdi + 0x130]
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
mov rdx, rbx
call fcn.1400067b8
nop
mov dword [rdi + 0x150], ebp
mov dword [rdi + 0x154], r15d
mov word [rdi + 0x158], r15w
mov qword [rdi + 0x160], r15
mov qword [rdi + 0x168], r15
call fcn.140050b4c
mov ecx, eax
or dword [rdi + 0x14f4], 0xffffffff
mov dword [rdi + 0x174], eax
mov edx, 1
lea r8, [rdi + 0x178]
mov r9d, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [r8], ecx
inc rdx
lea r8, [r8 + 4]
cmp rdx, r9
jb 0x1400401da
mov dword [rdi + 0x170], r9d
lea rsi, [rdi + 0x14f8]
mov qword [rsi], r15
mov qword [rsi + 0x10], r15
mov r13d, 0xf
mov qword [rsi + 0x18], r13
mov byte [rsi], r15b
lea rbx, [rdi + 0x1518]
mov qword [rsp + 0x20], rbx
mov qword [rbx], r15
mov qword [rbx + 8], r15
lea ecx, [r13 + 0x59]
call fcn.140051e08
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.140026930
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rcx + 8]
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rdi + 0x18], rax
mov rbx, qword [rdi + 0x20]
mov qword [rdi + 0x20], rdx
or r12d, 0xffffffff
test rbx, rbx
je 0x1400402a8
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x1400402a8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x1400402a8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1400402dd
mov eax, r12d
lock xadd dword [rbx + 8], eax
add eax, r12d
jne 0x1400402dd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x1400402dd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, rdi
call fcn.140042900
mov qword [rdi + 0x168], rax
mov edx, ebp
lea rcx, [rsp + 0x40]
call fcn.14003fa30
mov rbx, rax
mov ebp, 0x1000
cmp rsi, rax
je 0x140040363
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14004033b
mov rcx, qword [rsi]
inc rdx
cmp rdx, rbp
jb 0x140040336
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400403c8
mov rcx, r8
call fcn.14005209c
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r13
mov byte [rsi], r15b
mov r8d, 0x20
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_memcpy]
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r13
mov byte [rbx], r15b
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140040399
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, rbp
jb 0x140040393
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400403c8
call fcn.14005209c
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x1400403a7
mov rdx, qword [rcx]
call qword [rdx + 8]
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140051b80
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140055e50
nop
int3