Function at 0x1400f9a9b
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, 0x68
mov rax, qword [0x14019e638]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0xaaaaaaaa
mov esi, 0xffffff9a
test rcx, rcx
je 0x1400fa010
mov r15, rcx
cmp qword [rcx + 0x90], 0
je 0x1400fa010
mov r12d, r9d
mov rbx, r8
mov rbp, rdx
cmp qword [r15 + 0x110], 0
je 0x1400f9b0b
mov rcx, r15
call fcn.1400f91e5
mov eax, 0xaaaaaaaa
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], eax
mov rdx, qword [r15 + 0x60]
mov r8, qword [r15 + 0x78]
add r8, qword [r15 + 0x108]
xor edi, edi
mov rcx, r15
xor r9d, r9d
call fcn.14010a571
test eax, eax
je 0x1400f9b54
mov r13d, 0x1e
xor r14d, r14d
xor eax, eax
jmp 0x1400f9d0c
mov qword [rsp + 0x28], rbp
mov rdx, qword [r15 + 0x60]
lea rdi, [rsp + 0x4c]
mov rcx, r15
mov r8, rdi
call fcn.1400fa44b
mov ebp, eax
xor esi, esi
cmp dword [rdi], 0x4034b50
mov r14d, 0xffffff99
cmove r14d, esi
mov rdx, qword [r15 + 0x60]
lea r13, [rsp + 0x48]
mov rcx, r15
mov r8, r13
call fcn.1400fa6f0
mov edi, eax
or edi, ebp
mov rdx, qword [r15 + 0x60]
lea r8, [rsp + 0x44]
mov rcx, r15
call fcn.1400fa6f0
or eax, edi
mov edi, 0xffffffff
cmovne r14d, edi
mov rdx, qword [r15 + 0x60]
mov rcx, r15
mov r8, r13
call fcn.1400fa6f0
mov r13d, 0xffffffff
test eax, eax
jne 0x1400f9c01
mov r13d, r14d
test r14d, r14d
jne 0x1400f9c01
mov eax, dword [rsp + 0x48]
mov r13d, 0xffffff99
cmp eax, dword [r15 + 0xbc]
jne 0x1400f9c01
cmp eax, 0xc
ja 0x1400f9bfb
xor r13d, r13d
mov ecx, 0x1101
bt ecx, eax
jb 0x1400f9c01
mov r13d, 0xffffff99
mov rdx, qword [r15 + 0x60]
lea rbp, [rsp + 0x48]
mov rcx, r15
mov r8, rbp
call fcn.1400fa44b
cmp eax, 1
sbb esi, esi
mov rdx, qword [r15 + 0x60]
mov rcx, r15
mov r8, rbp
call fcn.1400fa44b
test eax, eax
jne 0x1400f9c54
not esi
or esi, r13d
mov edi, esi
jne 0x1400f9c54
mov eax, dword [rsp + 0x48]
xor edi, edi
cmp eax, dword [r15 + 0xc4]
je 0x1400f9c54
xor eax, eax
test byte [rsp + 0x44], 8
mov edi, 0xffffff99
cmovne edi, eax
mov rdx, qword [r15 + 0x60]
lea r8, [rsp + 0x48]
mov rcx, r15
call fcn.1400fa44b
mov esi, 0xffffffff
mov ebp, 0xffffffff
test eax, eax
je 0x1400f9db4
mov rdx, qword [r15 + 0x60]
lea r8, [rsp + 0x48]
mov rcx, r15
call fcn.1400fa44b
test eax, eax
je 0x1400f9dea
mov qword [rsp + 0x30], rbx
mov rdx, qword [r15 + 0x60]
lea r8, [rsp + 0x40]
mov rcx, r15
call fcn.1400fa6f0
mov ebp, 0xffffffff
test eax, eax
jne 0x1400f9cca
mov ebp, esi
test esi, esi
jne 0x1400f9cca
mov eax, dword [rsp + 0x40]
xor ecx, ecx
cmp eax, dword [r15 + 0xd8]
mov ebp, 0xffffff99
cmove ebp, ecx
mov ebx, dword [rsp + 0x40]
mov rdx, qword [r15 + 0x60]
lea rsi, [rsp + 0x3c]
mov rcx, r15
mov r8, rsi
call fcn.1400fa6f0
mov r14, rbx
add r14, qword [r15 + 0x108]
mov ecx, 0x1e
add r14, rcx
mov edi, dword [rsi]
lea r13d, [rdi + rbx]
or eax, ebp
sete al
add r13, rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov esi, 0xffffff99
test al, al
je 0x1400fa010
mov rsi, rbp
mov ecx, 0x120
call fcn.14013c4f0
test rax, rax
je 0x1400fa00b
mov rbp, rax
mov ecx, 0x4000
call fcn.14013c4f0
mov qword [rbp], rax
mov qword [rbp + 0x70], r14
mov dword [rbp + 0x78], edi
mov qword [rbp + 0x80], 0
mov dword [rbp + 0x118], r12d
test rax, rax
je 0x1400f9e20
mov dword [rbp + 0x68], 0
test rsi, rsi
je 0x1400f9d77
mov eax, dword [r15 + 0xbc]
mov dword [rsi], eax
test rbx, rbx
je 0x1400f9e49
mov eax, 6
mov dword [rbx], eax
and eax, dword [r15 + 0xb8]
cmp eax, 2
je 0x1400f9e3b
cmp eax, 4
je 0x1400f9e43
cmp eax, 6
jne 0x1400f9e49
mov dword [rbx], 1
jmp 0x1400f9e49
test edi, edi
jne 0x1400f9e2d
mov eax, dword [rsp + 0x48]
mov ebp, edi
cmp eax, 0xffffffff
je 0x1400f9c77
xor ebp, ebp
cmp qword [r15 + 0xc8], rax
je 0x1400f9c77
xor eax, eax
test byte [rsp + 0x44], 8
mov ebp, 0xffffff99
cmovne ebp, eax
jmp 0x1400f9c77
test ebp, ebp
jne 0x1400f9e34
mov eax, dword [rsp + 0x48]
mov esi, ebp
cmp eax, 0xffffffff
je 0x1400f9c90
xor esi, esi
cmp qword [r15 + 0xd0], rax
je 0x1400f9c90
xor eax, eax
test byte [rsp + 0x44], 8
mov esi, 0xffffff99
cmovne esi, eax
jmp 0x1400f9c90
mov rcx, rbp
call fcn.14013b290
jmp 0x1400fa00b
mov ebp, edi
jmp 0x1400f9c77
mov esi, ebp
jmp 0x1400f9c90
mov dword [rbx], 9
jmp 0x1400f9e49
mov dword [rbx], 2
mov eax, dword [r15 + 0xc4]
mov dword [rbp + 0x94], eax
xor edx, edx
mov dword [rbp + 0x90], edx
mov qword [rbp + 0x88], 0
mov eax, dword [r15 + 0xbc]
mov dword [rbp + 0x108], eax
mov rcx, qword [r15 + 0x60]
mov qword [rbp + 0x100], rcx
lea rdi, [rbp + 0xa8]
mov ecx, 0xb
mov rsi, r15
rep movsq qword [rdi], qword [rsi]
mov rcx, qword [r15 + 0x78]
mov qword [rbp + 0x110], rcx
mov dword [rbp + 0x24], edx
test r12d, r12d
jne 0x1400f9eb7
cmp eax, 0xc
jne 0x1400f9eb7
mov dword [rbp + 0x118], 1
jmp 0x1400f9f11
test r12d, r12d
jne 0x1400f9f11
cmp eax, 8
jne 0x1400f9f11
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.140005a59
test eax, eax
je 0x1400f9f0a
mov esi, eax
mov rcx, rbp
call fcn.14013b290
jmp 0x1400fa010
mov dword [rbp + 0x68], 8
mov r14, qword [rsp + 0xd0]
movups xmm0, xmmword [r15 + 0xc8]
movups xmmword [rbp + 0x98], xmm0
add r13, qword [r15 + 0x108]
mov qword [rbp + 0x60], r13
xor esi, esi
mov dword [rbp + 0x10], esi
mov qword [r15 + 0x110], rbp
mov dword [r15 + 0x118], esi
test r14, r14
je 0x1400fa010
call fcn.1400524d4
mov qword [r15 + 0x130], rax
movabs rcx, 0x2345678912345678
mov qword [r15 + 0x120], rcx
mov dword [r15 + 0x128], 0x34567890
mov bl, byte [r14]
test bl, bl
je 0x1400f9fe6
inc r14
mov edi, 0x12345678
mov ebp, 0x23456789
mov edx, 0x34567890
mov r8d, 0xff
movzx ebx, bl
mov esi, edi
and esi, r8d
xor esi, ebx
shr edi, 8
xor edi, dword [rax + rsi*4]
mov dword [r15 + 0x120], edi
mov ecx, edi
and ecx, r8d
add ecx, ebp
imul ebp, ecx, 0x8088405
inc ebp
mov dword [r15 + 0x124], ebp
mov ecx, ebp
shr ecx, 0x18
mov ebx, edx
and ebx, r8d
xor ebx, ecx
shr edx, 8
xor edx, dword [rax + rbx*4]
mov dword [r15 + 0x128], edx
mov bl, byte [r14]
inc r14
test bl, bl
jne 0x1400f9f96
mov rdx, qword [r15 + 0x60]
mov rax, qword [r15 + 0x110]
mov r8, qword [rax + 0x110]
add r8, qword [rax + 0x60]
mov rcx, r15
xor r9d, r9d
call fcn.14010a571
test eax, eax
je 0x1400fa030
mov esi, 0xffffff98
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401207e0
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r15 + 0x38]
mov rdx, qword [r15 + 0x60]
lea r8, [rsp + 0x50]
mov r9d, 0xc
call qword [r15 + 8]
mov esi, 0xffffff98
cmp eax, 0xc
jb 0x1400fa010
mov r9, qword [r15 + 0x130]
mov ecx, dword [r15 + 0x128]
mov eax, dword [r15 + 0x120]
mov ebp, dword [r15 + 0x124]
xor edi, edi
mov r8d, 0xff
mov ebx, ecx
and ebx, 0xfffd
lea esi, [rbx + 2]
xor ebx, 3
imul ebx, esi
shr ebx, 8
xor bl, byte [rsp + rdi + 0x50]
mov byte [rsp + rdi + 0x50], bl
movzx ebx, bl
mov esi, eax
and esi, r8d
xor esi, ebx
shr eax, 8
xor eax, dword [r9 + rsi*4]
mov dword [r15 + 0x120], eax
mov edx, eax
and edx, r8d
add edx, ebp
imul ebp, edx, 0x8088405
inc ebp
mov dword [r15 + 0x124], ebp
mov edx, ebp
shr edx, 0x18
mov ebx, ecx
and ebx, r8d
xor ebx, edx
shr ecx, 8
xor ecx, dword [r9 + rbx*4]
mov dword [r15 + 0x128], ecx
inc rdi
cmp rdi, 0xc
jne 0x1400fa075
mov rax, qword [r15 + 0x110]
add qword [rax + 0x60], 0xc
mov rax, qword [r15 + 0x110]
add qword [rax + 0x98], 0xfffffffffffffff4
mov dword [r15 + 0x118], 1
xor esi, esi
jmp 0x1400fa010