Function at 0x180032f30
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
sub rsp, 0x20
mov rbx, rcx
mov edx, dword [0x180169ee8]
mov rax, qword gs:[0x58]
mov ecx, 0x3c
mov rax, qword [rax + rdx*8]
mov ebp, 0xffffffff
mov esi, 1
lea r13, [0x180165340]
mov eax, dword [rcx + rax]
cmp dword [0x1801666c8], eax
jg 0x18003326c
mov eax, 0x40
mov rdi, 0xffffffffffffffff
lea rax, [rax - 1]
shr rdi, 1
cmp rdi, rbp
ja 0x180032f93
mov r15, qword [rbx + 8]
mov r12, qword [rbx]
cmp r12, r15
je 0x18003320e
lea r14, [r12 + 4]
cmp r14, r15
je 0x18003320e
lea rbx, [rax - 1]
mov r8d, dword [0x180165340]
nop dword [rax + rax]
lea rbp, [rsi + 1]
nop dword [rax]
nop dword [rax + rax]
xor r11d, r11d
xor r10d, r10d
test rsi, rsi
je 0x1800331b3
nop
mov rcx, rbx
shl r11, cl
add r11, r11
nop dword [rax]
cmp r8d, 0x270
jne 0x180033068
lea rax, [0x180165348]
mov r9d, 0x270
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
btr r8d, 0x1f
xor r8d, dword [rax - 4]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
and edx, 0x9908b0df
xor edx, dword [rax + 0x630]
shr r8d, 1
xor edx, r8d
mov dword [rax + 0x9bc], edx
lea rax, [rax + 4]
sub r9, 1
jne 0x180033020
mov r8d, dword [0x180165340]
jmp 0x18003314e
cmp r8d, 0x4e0
jb 0x18003314e
mov r8d, 0x9c4
nop dword [rax + rax]
mov edx, dword [r8 + r13]
xor edx, dword [r8 + r13 + 4]
btr edx, 0x1f
xor edx, dword [r8 + r13]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + r13 + 0x634]
shr edx, 1
xor ecx, edx
mov dword [r8 + r13 - 0x9c0], ecx
add r8, 4
cmp r8, 0xd50
jb 0x180033080
mov r8d, 0xd50
nop word [rax + rax]
mov edx, dword [r8 + r13]
xor edx, dword [r8 + r13 + 4]
btr edx, 0x1f
xor edx, dword [r8 + r13]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + r13 - 0xd4c]
shr edx, 1
xor ecx, edx
mov dword [r8 + r13 - 0x9c0], ecx
add r8, 4
cmp r8, 0x1380
jb 0x1800330d0
mov edx, dword [0x1801666c0]
xor edx, dword [0x180165344]
btr edx, 0x1f
xor edx, dword [0x1801666c0]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [0x180165974]
mov dword [0x180165d00], ecx
xor r8d, r8d
mov dword [0x180165340], r8d
mov eax, r8d
mov ecx, dword [r13 + rax*4 + 4]
lea r8d, [rax + 1]
mov dword [0x180165340], r8d
mov eax, ecx
shr eax, 0xb
and eax, dword [0x1801666c4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ecx, 0xffffdf8c
shl ecx, 0xf
xor rcx, rax
mov rax, rcx
shr rax, 0x12
xor rax, rcx
cmp rax, rdi
ja 0x180033000
or r11, rax
mov rcx, rbx
shl r10, cl
add r10, r10
or r10, rdi
cmp r10, rsi
jb 0x180032ff0
xor edx, edx
mov rax, r10
div rbp
mov rcx, rax
xor edx, edx
mov rax, r11
div rbp
cmp rax, rcx
jb 0x1800331dc
xor edx, edx
mov rax, r10
div rbp
cmp rdx, rsi
jne 0x180032fe0
xor edx, edx
mov rax, r11
div rbp
cmp rdx, rsi
je 0x1800331fe
mov ecx, dword [r14]
mov eax, dword [r12 + rdx*4]
mov dword [r14], eax
mov dword [r12 + rdx*4], ecx
mov r8d, dword [0x180165340]
mov rsi, rbp
add r14, 4
cmp r14, r15
jne 0x180032fd0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [r13 + r8*4 + 4], eax
inc r8
cmp r8, 0x270
jb 0x180033230
mov dword [0x180165340], 0x270
lea rcx, [0x1801666c8]
call fcn.1800b5d94
jmp 0x180032f87
lea rcx, [0x1801666c8]
call fcn.1800b5e00
cmp dword [0x1801666c8], 0xffffffff
jne 0x180032f87
call fcn.1800b44f4
mov dword [0x1801666c4], ebp
mov dword [0x180165344], eax
mov r8, rsi
jmp 0x180033230