Function at 0x140055210
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, 0x48
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0xaaaaaaaa
mov r15d, 0xffffff9a
test rcx, rcx
je 0x1400552c9
mov rbx, rcx
cmp qword [rcx + 0x90], 0
je 0x1400552c9
mov ebp, r9d
mov rsi, r8
mov rdi, rdx
mov r14, qword [rbx + 0x110]
test r14, r14
je 0x1400552a5
mov rcx, qword [r14]
call fcn.140084fc0
mov qword [r14], 0
cmp dword [r14 + 0x68], 8
jne 0x140055292
lea rcx, [r14 + 8]
call fcn.140023910
mov rcx, r14
call fcn.140084fc0
mov qword [rbx + 0x110], 0
mov rdx, qword [rbx + 0x60]
mov r8, qword [rbx + 0x78]
add r8, qword [rbx + 0x108]
mov rcx, rbx
xor r9d, r9d
call fcn.14005a680
mov r15d, 0xffffff99
test eax, eax
je 0x1400552fa
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b1b00
mov eax, r15d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
call fcn.140084fc0
mov r15d, 0xffffff98
jmp 0x1400552c9
mov dword [rsp + 0x28], ebp
mov r14, qword [rbx + 0x60]
lea r8, [rsp + 0x2c]
mov dword [r8], 0xaaaaaaaa
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
mov r9d, 4
call qword [0x14016adc0]
cmp eax, 4
jne 0x140055aeb
xor r15d, r15d
mov r12d, dword [rsp + 0x2c]
xor ebp, ebp
cmp r12d, 0x4034b50
mov r13d, 0xffffff99
cmove r13d, ebp
mov r14, qword [rbx + 0x60]
lea r8, [rsp + 0x2c]
mov word [r8], 0xaaaa
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
mov r9d, 2
call qword [0x14016adc0]
cmp eax, 2
je 0x14005538b
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
call qword [0x14016adc0]
xor ebp, ebp
neg eax
sbb ebp, ebp
mov r14, qword [rbx + 0x60]
lea r8, [rsp + 0x2c]
mov word [r8], 0xaaaa
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
mov r9d, 2
call qword [0x14016adc0]
cmp eax, 2
je 0x1400553da
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
call qword [0x14016adc0]
mov dword [rsp + 0x24], 0
neg eax
mov eax, 0
sbb eax, eax
jmp 0x1400553e5
movzx eax, word [rsp + 0x2c]
mov dword [rsp + 0x24], eax
xor eax, eax
or eax, ebp
or eax, r15d
sete bpl
mov r15d, 0xffffffff
cmovne r13d, r15d
mov r14, qword [rbx + 0x60]
lea r8, [rsp + 0x2c]
mov word [r8], 0xaaaa
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
mov r9d, 2
call qword [0x14016adc0]
cmp eax, 2
jne 0x14005548f
movzx eax, word [rsp + 0x2c]
cmp r12d, 0x4034b50
sete cl
and bpl, cl
mov r15d, r13d
cmp bpl, 1
jne 0x1400554a4
mov r15d, 0xffffff99
cmp eax, dword [rbx + 0xbc]
jne 0x1400554a4
cmp eax, 0xc
ja 0x14005545e
xor r15d, r15d
mov ecx, 0x1101
bt ecx, eax
jb 0x1400554a4
mov r15d, 0xffffff99
jmp 0x1400554a4
xor eax, eax
jmp 0x140055428
mov ebp, 0
cmp eax, dword [rbx + 0xc4]
je 0x14005551b
xor eax, eax
test byte [rsp + 0x24], 8
mov ebp, 0xffffff99
cmovne ebp, eax
jmp 0x14005551b
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
call qword [0x14016adc0]
test eax, eax
je 0x140055466
mov r14, qword [rbx + 0x60]
lea r8, [rsp + 0x2c]
mov dword [r8], 0xaaaaaaaa
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
mov r9d, 4
call qword [0x14016adc0]
xor r12d, r12d
cmp eax, 4
jne 0x140055acd
mov r14, qword [rbx + 0x60]
lea r8, [rsp + 0x2c]
mov dword [r8], 0xaaaaaaaa
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
mov r9d, 4
call qword [0x14016adc0]
cmp eax, 4
jne 0x140055a5d
mov eax, dword [rsp + 0x2c]
xor ebp, ebp
neg r12d
sbb ebp, ebp
or ebp, r15d
je 0x14005546a
mov r14, qword [rbx + 0x60]
lea r8, [rsp + 0x2c]
mov dword [r8], 0xaaaaaaaa
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
mov r9d, 4
call qword [0x14016adc0]
cmp eax, 4
jne 0x140055a82
mov eax, dword [rsp + 0x2c]
mov r15d, ebp
test ebp, ebp
jne 0x14005557a
cmp eax, 0xffffffff
je 0x14005557a
mov eax, eax
xor r15d, r15d
cmp qword [rbx + 0xc8], rax
je 0x14005557a
xor eax, eax
test byte [rsp + 0x24], 8
mov r15d, 0xffffff99
cmovne r15d, eax
mov r14, qword [rbx + 0x60]
lea r8, [rsp + 0x2c]
mov dword [r8], 0xaaaaaaaa
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
mov r9d, 4
call qword [0x14016adc0]
cmp eax, 4
jne 0x140055aa8
mov eax, dword [rsp + 0x2c]
mov ebp, r15d
test r15d, r15d
jne 0x1400555d7
cmp eax, 0xffffffff
je 0x1400555d7
mov eax, eax
xor ebp, ebp
cmp qword [rbx + 0xd0], rax
je 0x1400555d7
xor eax, eax
test byte [rsp + 0x24], 8
mov ebp, 0xffffff99
cmovne ebp, eax
mov r14, qword [rbx + 0x60]
lea r8, [rsp + 0x2c]
mov word [r8], 0xaaaa
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
mov r9d, 2
call qword [0x14016adc0]
cmp eax, 2
je 0x14005562f
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
call qword [0x14016adc0]
xor r15d, r15d
mov r12d, 0
test eax, eax
jne 0x14005563c
jmp 0x140055635
cmp r15d, dword [rbx + 0xd8]
sete r12b
jmp 0x14005563c
movzx r15d, word [rsp + 0x2c]
test ebp, ebp
je 0x140055622
xor r12d, r12d
mov r14, qword [rbx + 0x60]
lea r8, [rsp + 0x2c]
mov word [r8], 0xaaaa
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
mov r9d, 2
call qword [0x14016adc0]
cmp eax, 2
je 0x140055691
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
call qword [0x14016adc0]
test eax, eax
je 0x140055687
mov r15d, 0xffffff99
jmp 0x1400552c9
mov dword [rsp + 0x24], r15d
xor r13d, r13d
jmp 0x14005569c
mov dword [rsp + 0x24], r15d
movzx r13d, word [rsp + 0x2c]
mov r15d, 0xffffff99
test r12b, r12b
mov ebp, dword [rsp + 0x28]
je 0x1400552c9
mov r15, qword [rbx + 0x108]
mov ecx, 0x120
call fcn.140084f60
test rax, rax
je 0x1400552f2
mov r14, rax
mov eax, dword [rsp + 0x24]
add r15, rax
add r15, 0x1e
mov ecx, 0x4000
call fcn.140084f60
mov qword [r14], rax
mov qword [r14 + 0x70], r15
mov dword [r14 + 0x78], r13d
mov qword [r14 + 0x80], 0
mov dword [r14 + 0x118], ebp
test rax, rax
je 0x1400552ea
mov dword [r14 + 0x68], 0
test rdi, rdi
je 0x14005571c
mov eax, dword [rbx + 0xbc]
mov dword [rdi], eax
test rsi, rsi
je 0x1400557cf
mov dword [rsi], 6
mov eax, dword [rbx + 0xb8]
and eax, 6
cmp eax, 2
je 0x140055752
cmp eax, 6
je 0x1400557c8
cmp eax, 4
jne 0x1400557cf
mov eax, 2
jmp 0x1400557cd
mov eax, 9
jmp 0x1400557cd
test ebp, ebp
jne 0x140055845
cmp eax, 8
jne 0x140055845
mov rcx, r14
add rcx, 8
xor eax, eax
mov qword [r14 + 8], rax
mov dword [r14 + 0x10], 0
xorps xmm0, xmm0
movups xmmword [r14 + 0x38], xmm0
mov qword [r14 + 0x48], rax
lea r8, str.1.3.0.1_motley
mov edx, 0xfffffff1
mov r9d, 0x58
call fcn.140023760
test eax, eax
je 0x1400557be
mov r15d, eax
mov rcx, qword [r14]
call fcn.140084fc0
mov rcx, r14
call fcn.140084fc0
jmp 0x1400552c9
mov dword [r14 + 0x68], 8
jmp 0x140055845
mov eax, 1
mov dword [rsi], eax
mov eax, dword [rbx + 0xc4]
mov dword [r14 + 0x94], eax
xor edx, edx
mov dword [r14 + 0x90], edx
mov qword [r14 + 0x88], 0
mov eax, dword [rbx + 0xbc]
mov dword [r14 + 0x108], eax
mov rcx, qword [rbx + 0x60]
mov qword [r14 + 0x100], rcx
lea rdi, [r14 + 0xa8]
mov ecx, 0xb
mov rsi, rbx
rep movsq qword [rdi], qword [rsi]
mov rcx, qword [rbx + 0x78]
mov qword [r14 + 0x110], rcx
mov dword [r14 + 0x24], edx
test ebp, ebp
jne 0x140055759
cmp eax, 0xc
jne 0x140055759
mov dword [r14 + 0x118], 1
add r13d, dword [rsp + 0x24]
mov rsi, qword [rsp + 0xb0]
mov rax, qword [rbx + 0xc8]
mov qword [r14 + 0x98], rax
mov rax, qword [rbx + 0xd0]
mov qword [r14 + 0xa0], rax
mov rax, qword [rbx + 0x108]
add rax, r13
add rax, 0x1e
mov qword [r14 + 0x60], rax
xor r15d, r15d
mov dword [r14 + 0x10], r15d
mov qword [rbx + 0x110], r14
mov dword [rbx + 0x118], r15d
test rsi, rsi
je 0x1400552c9
call fcn.140101070
mov qword [rbx + 0x130], rax
movabs rcx, 0x2345678912345678
mov qword [rbx + 0x120], rcx
mov dword [rbx + 0x128], 0x34567890
mov r10b, byte [rsi]
test r10b, r10b
je 0x14005593f
inc rsi
mov ecx, 0x12345678
mov r8d, 0x23456789
mov edx, 0x34567890
mov r9d, 0xff
mov r11d, ecx
xor r11b, r10b
movzx r10d, r11b
shr ecx, 8
xor ecx, dword [rax + r10*4]
mov dword [rbx + 0x120], ecx
mov r10d, ecx
and r10d, r9d
add r10d, r8d
imul r8d, r10d, 0x8088405
inc r8d
mov dword [rbx + 0x124], r8d
mov r10d, r8d
shr r10d, 0x18
mov r11d, edx
and r11d, r9d
xor r11d, r10d
shr edx, 8
xor edx, dword [rax + r11*4]
mov dword [rbx + 0x128], edx
mov r10b, byte [rsi]
inc rsi
test r10b, r10b
jne 0x1400558e6
mov rdx, qword [rbx + 0x60]
mov rax, qword [rbx + 0x110]
mov r8, qword [rax + 0x110]
add r8, qword [rax + 0x60]
mov rcx, rbx
xor r9d, r9d
call fcn.14005a680
test eax, eax
jne 0x1400552f2
mov rdx, qword [rbx + 0x60]
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x38]
lea r8, [rsp + 0x30]
mov r9d, 0xc
call qword [0x14016adc0]
mov r15d, 0xffffff98
cmp eax, 0xc
jb 0x1400552c9
mov rax, qword [rbx + 0x130]
mov ecx, dword [rbx + 0x128]
mov edx, dword [rbx + 0x120]
mov r9d, dword [rbx + 0x124]
xor r8d, r8d
mov r10d, 0xff
mov r11d, ecx
and r11d, 0xfffd
mov esi, ecx
or esi, 2
xor r11d, 3
imul r11d, esi
shr r11d, 8
xor r11b, byte [rsp + r8 + 0x30]
mov byte [rsp + r8 + 0x30], r11b
mov esi, edx
xor sil, r11b
movzx r11d, sil
shr edx, 8
xor edx, dword [rax + r11*4]
mov dword [rbx + 0x120], edx
mov r11d, edx
and r11d, r10d
add r11d, r9d
imul r9d, r11d, 0x8088405
inc r9d
mov dword [rbx + 0x124], r9d
mov r11d, r9d
shr r11d, 0x18
mov esi, ecx
and esi, r10d
xor esi, r11d
shr ecx, 8
xor ecx, dword [rax + rsi*4]
mov dword [rbx + 0x128], ecx
inc r8
cmp r8, 0xc
jne 0x1400559b7
mov rax, qword [rbx + 0x110]
add qword [rax + 0x60], 0xc
mov rax, qword [rbx + 0x110]
add qword [rax + 0x98], 0xfffffffffffffff4
mov dword [rbx + 0x118], 1
xor r15d, r15d
jmp 0x1400552c9
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
call qword [0x14016adc0]
mov ebp, 0xffffffff
test eax, eax
jne 0x14005551b
xor eax, eax
jmp 0x14005550b
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
call qword [0x14016adc0]
mov r15d, 0xffffffff
test eax, eax
jne 0x14005557a
xor eax, eax
jmp 0x14005554f
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
call qword [0x14016adc0]
mov ebp, 0xffffffff
test eax, eax
jne 0x1400555d7
xor eax, eax
jmp 0x1400555ae
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
call qword [0x14016adc0]
xor r12d, r12d
neg eax
sbb r12d, r12d
jmp 0x1400554d7
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x38]
mov rdx, r14
call qword [0x14016adc0]
xor r12d, r12d
neg eax
mov r15d, 0
sbb r15d, r15d
jmp 0x140055336