Function at 0x180033610
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, 0x30
mov rbx, rcx
mov edx, dword [0x180169ee8]
mov rax, qword gs:[0x58]
mov ecx, 0x3c
mov rax, qword [rax + rdx*8]
mov esi, 0xffffffff
mov ebp, 1
lea r9, [0x180167a60]
mov eax, dword [rcx + rax]
cmp dword [0x180168de8], eax
jg 0x18003396d
jmp 0x180033670
lea r9, [0x180167a60]
mov eax, 0x40
mov rdi, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax - 1]
shr rdi, 1
cmp rdi, rsi
ja 0x180033680
mov r12, qword [rbx + 8]
mov r13, qword [rbx]
cmp r13, r12
je 0x180033950
lea r15, [r13 + 8]
cmp r15, r12
je 0x180033950
lea rsi, [rax - 1]
mov r8d, dword [0x180167a60]
nop dword [rax]
nop dword [rax + rax]
lea r14, [rbp + 1]
nop dword [rax]
nop dword [rax + rax]
xor r11d, r11d
xor r10d, r10d
test rbp, rbp
je 0x1800338a0
nop
mov rcx, rsi
shl r11, cl
add r11, r11
nop dword [rax]
cmp r8d, 0x270
jne 0x18003375f
lea rax, [0x180167a68]
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 0x180033710
mov r8d, dword [0x180167a60]
lea r9, [0x180167a60]
jmp 0x18003383e
cmp r8d, 0x4e0
jb 0x18003383e
mov r8d, 0x9c4
mov edx, dword [r8 + r9]
xor edx, dword [r8 + r9 + 4]
btr edx, 0x1f
xor edx, dword [r8 + r9]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + r9 + 0x634]
shr edx, 1
xor ecx, edx
mov dword [r8 + r9 - 0x9c0], ecx
add r8, 4
cmp r8, 0xd50
jb 0x180033772
mov r8d, 0xd50
nop dword [rax + rax]
mov edx, dword [r8 + r9]
xor edx, dword [r8 + r9 + 4]
btr edx, 0x1f
xor edx, dword [r8 + r9]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + r9 - 0xd4c]
shr edx, 1
xor ecx, edx
mov dword [r8 + r9 - 0x9c0], ecx
add r8, 4
cmp r8, 0x1380
jb 0x1800337c0
mov edx, dword [0x180168de0]
xor edx, dword [0x180167a64]
btr edx, 0x1f
xor edx, dword [0x180168de0]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
shr edx, 1
xor ecx, edx
xor ecx, dword [0x180168094]
mov dword [0x180168420], ecx
xor r8d, r8d
mov dword [0x180167a60], r8d
mov eax, r8d
mov ecx, dword [r9 + rax*4 + 4]
lea r8d, [rax + 1]
mov dword [0x180167a60], r8d
mov eax, ecx
shr eax, 0xb
and eax, dword [0x180168de4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr rcx, 0x12
xor rcx, rax
cmp rcx, rdi
ja 0x1800336f0
or r11, rcx
mov rcx, rsi
shl r10, cl
add r10, r10
or r10, rdi
cmp r10, rbp
jb 0x1800336e0
xor edx, edx
mov rax, r10
div r14
mov rcx, rax
xor edx, edx
mov rax, r11
div r14
cmp rax, rcx
jb 0x1800338c9
xor edx, edx
mov rax, r10
div r14
cmp rdx, rbp
jne 0x1800336d0
xor edx, edx
mov rax, r11
div r14
cmp rdx, rbp
je 0x180033939
lea rbx, [rdx*8]
add rbx, r13
mov rax, qword [r15]
mov qword [rsp + 0x20], rax
xor ebp, ebp
mov qword [r15], rbp
cmp r15, rbx
je 0x180033904
mov rcx, r15
call fcn.180045bd0
mov rax, qword [rbx]
mov qword [r15], rax
mov qword [rbx], rbp
lea rax, [rsp + 0x20]
cmp rbx, rax
je 0x180033927
mov rcx, rbx
call fcn.180045bd0
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.180045bd0
nop
mov r8d, dword [0x180167a60]
mov rbp, r14
add r15, 8
cmp r15, r12
lea r9, [0x180167a60]
jne 0x1800336c0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [0x180168de8]
call fcn.1800b5e00
cmp dword [0x180168de8], 0xffffffff
jne 0x180033669
call fcn.1800b44f4
mov dword [0x180168de4], esi
mov dword [0x180167a64], eax
mov r8, rbp
lea rcx, [0x180167a60]
nop dword [rax]
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rcx + r8*4 + 4], eax
inc r8
cmp r8, 0x270
jb 0x1800339b0
mov dword [0x180167a60], 0x270
lea rcx, [0x180168de8]
call fcn.1800b5d94
nop
jmp 0x180033669