Function at 0x140067c20
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rax, qword [0x140124058]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov esi, 0xffffff9a
test rcx, rcx
je 0x140068154
mov r13, rcx
mov qword [rsp + 0x28], r8
cmp qword [rcx + 0x90], 0
je 0x140068154
mov edi, r9d
mov rbx, rdx
cmp qword [r13 + 0x110], 0
je 0x140067c7b
mov rcx, r13
call fcn.1400673c0
mov rdx, qword [r13 + 0x60]
mov r8, qword [r13 + 0x78]
add r8, qword [r13 + 0x108]
xor r14d, r14d
mov rcx, r13
xor r9d, r9d
call fcn.1400990a0
test eax, eax
je 0x140067cac
mov r12d, 0x1e
xor r15d, r15d
xor eax, eax
jmp 0x140067e5a
mov dword [rsp + 0x24], edi
mov rdx, qword [r13 + 0x60]
lea r8, [rsp + 0x44]
mov rcx, r13
call fcn.140068590
mov r14d, 0xffffffff
mov edi, 0xffffffff
test eax, eax
jne 0x140067ce2
xor eax, eax
cmp dword [rsp + 0x44], 0x4034b50
mov edi, 0xffffff99
cmove edi, eax
mov rdx, qword [r13 + 0x60]
lea rsi, [rsp + 0x40]
mov rcx, r13
mov r8, rsi
call fcn.140068940
mov ebp, eax
mov rdx, qword [r13 + 0x60]
lea r8, [rsp + 0x3c]
mov rcx, r13
call fcn.140068940
or eax, ebp
cmovne edi, r14d
mov rdx, qword [r13 + 0x60]
mov rcx, r13
mov r8, rsi
call fcn.140068940
test eax, eax
jne 0x140067d54
mov r14d, edi
test edi, edi
jne 0x140067d54
mov eax, dword [rsp + 0x40]
mov r14d, 0xffffff99
cmp eax, dword [r13 + 0xbc]
jne 0x140067d54
cmp eax, 0xc
ja 0x140067d4e
xor r14d, r14d
mov ecx, 0x1101
bt ecx, eax
jb 0x140067d54
mov r14d, 0xffffff99
mov rdx, qword [r13 + 0x60]
lea rsi, [rsp + 0x40]
mov rcx, r13
mov r8, rsi
call fcn.140068590
xor ebp, ebp
cmp eax, 1
sbb ebp, ebp
mov rdx, qword [r13 + 0x60]
mov rcx, r13
mov r8, rsi
call fcn.140068590
mov esi, 0xffffffff
mov edi, 0xffffffff
test eax, eax
jne 0x140067db3
not ebp
or ebp, r14d
mov edi, ebp
jne 0x140067db3
mov eax, dword [rsp + 0x40]
xor edi, edi
cmp eax, dword [r13 + 0xc4]
je 0x140067db3
xor eax, eax
test byte [rsp + 0x3c], 8
mov edi, 0xffffff99
cmovne edi, eax
mov rdx, qword [r13 + 0x60]
lea r8, [rsp + 0x40]
mov rcx, r13
call fcn.140068590
test eax, eax
je 0x140067f08
mov rdx, qword [r13 + 0x60]
lea r8, [rsp + 0x40]
mov rcx, r13
call fcn.140068590
mov edi, 0xffffffff
mov ebp, 0xffffffff
test eax, eax
je 0x140067f3e
mov rdx, qword [r13 + 0x60]
lea r8, [rsp + 0x38]
mov rcx, r13
call fcn.140068940
test eax, eax
jne 0x140067e1f
mov edi, ebp
test ebp, ebp
jne 0x140067e1f
mov eax, dword [rsp + 0x38]
xor ecx, ecx
cmp eax, dword [r13 + 0xd8]
mov edi, 0xffffff99
cmove edi, ecx
mov ebp, dword [rsp + 0x38]
mov rdx, qword [r13 + 0x60]
lea rsi, [rsp + 0x34]
mov rcx, r13
mov r8, rsi
call fcn.140068940
mov rcx, qword [r13 + 0x108]
lea r15, [rcx + rbp]
add r15, 0x1e
mov r14d, dword [rsi]
lea r12d, [r14 + rbp]
or eax, edi
sete al
add r12, 0x1e
mov edi, dword [rsp + 0x24]
mov esi, 0xffffff99
test al, al
je 0x140068154
mov ecx, 0x120
call fcn.14001d0d0
test rax, rax
je 0x14006814f
mov rbp, rax
mov ecx, 0x4000
call fcn.14001d0d0
mov qword [rbp], rax
mov qword [rbp + 0x70], r15
mov dword [rbp + 0x78], r14d
mov qword [rbp + 0x80], 0
mov dword [rbp + 0x118], edi
test rax, rax
je 0x140067f74
mov dword [rbp + 0x68], 0
test rbx, rbx
je 0x140067ec2
mov eax, dword [r13 + 0xbc]
mov dword [rbx], eax
mov ebx, edi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140067f9d
mov dword [rcx], 6
mov eax, dword [r13 + 0xb8]
and eax, 6
cmp eax, 2
je 0x140067f8f
cmp eax, 4
je 0x140067f97
cmp eax, 6
jne 0x140067f9d
mov dword [rcx], 1
jmp 0x140067f9d
test edi, edi
jne 0x140067f81
mov eax, dword [rsp + 0x40]
mov esi, edi
cmp eax, 0xffffffff
je 0x140067dcc
xor esi, esi
cmp qword [r13 + 0xc8], rax
je 0x140067dcc
xor eax, eax
test byte [rsp + 0x3c], 8
mov esi, 0xffffff99
cmovne esi, eax
jmp 0x140067dcc
test esi, esi
jne 0x140067f88
mov eax, dword [rsp + 0x40]
mov ebp, esi
cmp eax, 0xffffffff
je 0x140067def
xor ebp, ebp
cmp qword [r13 + 0xd0], rax
je 0x140067def
xor eax, eax
test byte [rsp + 0x3c], 8
mov ebp, 0xffffff99
cmovne ebp, eax
jmp 0x140067def
mov rcx, rbp
call fcn.14001d130
jmp 0x14006814f
mov esi, edi
jmp 0x140067dcc
mov ebp, esi
jmp 0x140067def
mov dword [rcx], 9
jmp 0x140067f9d
mov dword [rcx], 2
mov eax, dword [r13 + 0xc4]
mov dword [rbp + 0x94], eax
xor edx, edx
mov dword [rbp + 0x90], edx
mov qword [rbp + 0x88], 0
mov eax, dword [r13 + 0xbc]
mov dword [rbp + 0x108], eax
mov rcx, qword [r13 + 0x60]
mov qword [rbp + 0x100], rcx
lea rdi, [rbp + 0xa8]
mov ecx, 0xb
mov rsi, r13
rep movsq qword [rdi], qword [rsi]
mov rcx, qword [r13 + 0x78]
mov qword [rbp + 0x110], rcx
mov dword [rbp + 0x24], edx
test ebx, ebx
jne 0x14006800a
cmp eax, 0xc
jne 0x14006800a
mov dword [rbp + 0x118], 1
jmp 0x140068063
test ebx, ebx
jne 0x140068063
cmp eax, 8
jne 0x140068063
mov rcx, rbp
add rcx, 8
xor eax, eax
mov qword [rbp + 8], rax
mov dword [rbp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
mov qword [rbp + 0x48], rax
lea r8, str.1.2.11
mov edx, 0xfffffff1
mov r9d, 0x58
call fcn.140009fb0
test eax, eax
je 0x14006805c
mov esi, eax
mov rcx, rbp
call fcn.14001d130
jmp 0x140068154
mov dword [rbp + 0x68], 8
mov rdi, qword [rsp + 0xc0]
movups xmm0, xmmword [r13 + 0xc8]
movups xmmword [rbp + 0x98], xmm0
add r12, qword [r13 + 0x108]
mov qword [rbp + 0x60], r12
xor esi, esi
mov dword [rbp + 0x10], esi
mov qword [r13 + 0x110], rbp
mov dword [r13 + 0x118], esi
test rdi, rdi
je 0x140068154
call fcn.140022080
mov qword [r13 + 0x130], rax
movabs rcx, 0x2345678912345678
mov qword [r13 + 0x120], rcx
mov dword [r13 + 0x128], 0x34567890
mov bl, byte [rdi]
test bl, bl
je 0x14006812a
inc rdi
mov ecx, 0x12345678
mov ebp, 0x23456789
mov edx, 0x34567890
movzx ebx, bl
movzx esi, cl
xor esi, ebx
shr ecx, 8
xor ecx, dword [rax + rsi*4]
mov dword [r13 + 0x120], ecx
movzx ebx, cl
add ebx, ebp
imul ebp, ebx, 0x8088405
inc ebp
mov dword [r13 + 0x124], ebp
mov ebx, ebp
shr ebx, 0x18
movzx esi, dl
xor esi, ebx
shr edx, 8
xor edx, dword [rax + rsi*4]
mov dword [r13 + 0x128], edx
mov bl, byte [rdi]
inc rdi
test bl, bl
jne 0x1400680e1
mov rdx, qword [r13 + 0x60]
mov rax, qword [r13 + 0x110]
mov r8, qword [rax + 0x110]
add r8, qword [rax + 0x60]
mov rcx, r13
xor r9d, r9d
call fcn.1400990a0
test eax, eax
je 0x140068174
mov esi, 0xffffff98
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a5a90
mov eax, esi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r13 + 0x38]
mov rdx, qword [r13 + 0x60]
lea r8, [rsp + 0x44]
mov r9d, 0xc
call qword [r13 + 8]
mov esi, 0xffffff98
cmp eax, 0xc
jb 0x140068154
mov eax, dword [r13 + 0x128]
mov rcx, qword [r13 + 0x130]
mov edx, dword [r13 + 0x120]
mov ebp, dword [r13 + 0x124]
xor edi, edi
mov ebx, eax
and ebx, 0xfffd
lea esi, [rbx + 2]
xor ebx, 3
imul ebx, esi
shr ebx, 8
xor bl, byte [rsp + rdi + 0x44]
mov byte [rsp + rdi + 0x44], bl
movzx ebx, bl
movzx esi, dl
xor esi, ebx
shr edx, 8
xor edx, dword [rcx + rsi*4]
mov dword [r13 + 0x120], edx
movzx ebx, dl
add ebx, ebp
imul ebp, ebx, 0x8088405
inc ebp
mov dword [r13 + 0x124], ebp
mov ebx, ebp
shr ebx, 0x18
movzx esi, al
xor esi, ebx
shr eax, 8
xor eax, dword [rcx + rsi*4]
mov dword [r13 + 0x128], eax
inc rdi
cmp rdi, 0xc
jne 0x1400681b3
mov rax, qword [r13 + 0x110]
add qword [rax + 0x60], 0xc
mov rax, qword [r13 + 0x110]
add qword [rax + 0x98], 0xfffffffffffffff4
mov dword [r13 + 0x118], 1
xor esi, esi
jmp 0x140068154