Function at 0x18003add0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rbp
push r15
push r14
push r13
cmp eax, 1
jne 0x18003aeaf
add byte [rax], al
invalid
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x18003af21
cmp r8, rbx
mov rax, rbx
mov rdi, r8
sub rbx, rdx
jb 0x18003b2c9
mov qword [rsi + 0x18], rbx
jmp 0x18003b2b5
mov rdi, qword [rsi + 0x18]
test rdi, rdi
dec dword [rdi]
invalid
invalid
add byte [rax], al
invalid
cmp r8, rdi
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x18003af18
mov rdi, qword [rsi + 0x18]
test rdi, rdi
je 0x18003afbe
add byte [rax], al
invalid
cmp rax, r8
xor eax, eax
xor edx, edx
jmp 0x18003b2b5
xor edx, edx
xor eax, eax
test r8, r8
je 0x18003b2b5
mov r10d, dword [rsi + 0x28]
mov ecx, dword [rsi + 0x20]
mov r11d, dword [rsi + 0x24]
xor edi, edi
lea rbx, [0x183962560]
mov dword [rsi + 0x28], r10d
mov dword [rsi + 0x20], ecx
mov dword [rsi + 0x24], r11d
jmp 0x18003b2b5
xor edx, edx
sub rax, rdx
mov qword [rsi + 0x30], rax
cmp rdx, r8
ja 0x18003b30d
lea rbx, [rsi + 0x98]
movzx eax, byte [rsi + 0xd8]
movzx r15d, al
mov r8d, 0x40
sub r8, r15
cmp r8, rdx
mov qword [rbp - 8], rdx
jbe 0x18003b00e
lea rcx, [rbx + r15]
mov rdi, rdx
mov r14, r9
mov rdx, r9
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add r15, rdi
jmp 0x18003b087
mov rdi, rdx
test al, al
je 0x18003b045
sub rdi, r8
lea r13, [r9 + r8]
add r15, rbx
mov rcx, r15
mov r14, r9
mov rdx, r9
call sub.VCRUNTIME140.dll_memcpy
inc qword [rsi + 0x38]
lea rcx, [rsi + 0x40]
mov r8d, 1
mov rdx, rbx
call fcn.180011260
jmp 0x18003b04b
mov r14, r9
mov r13, r9
mov r12, rdi
and r12, 0xffffffffffffffc0
mov r15d, edi
and r15d, 0x3f
add r12, r13
cmp rdi, 0x40
jb 0x18003b079
shr rdi, 6
add qword [rsi + 0x38], rdi
lea rcx, [rsi + 0x40]
mov rdx, r13
mov r8, rdi
call fcn.180011260
mov rcx, rbx
mov rdx, r12
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + 0xd8], r15b
mov rcx, qword [rsi + 0x20]
mov rax, qword [rsi + 0x28]
mov rdx, r14
mov r8, qword [rbp - 8]
call qword [rax + 0x18]
cmp qword [rsi + 0x30], 0
je 0x18003b0b2
xor eax, eax
mov rdx, qword [rbp - 8]
jmp 0x18003b2b5
cmp byte [rsi + 0xe0], 0
jne 0x18003b322
lea rax, [rsi + 0x38]
mov qword [rbp - 0x48], rax
mov byte [rsi + 0xe0], 1
mov word [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov r15d, 0xa
lea r12, [rbp - 0x18]
lea r13, [0x1839642e4]
mov rdi, qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18003b109
cmp byte [rdx + 0x10], 0x23
jne 0x18003b2b0
test r15, r15
je 0x18003b1f3
mov r14, qword [rsi + 0x18]
test r14, r14
je 0x18003b2a9
cmp r15, r14
mov r8, r14
cmovb r8, r15
mov rcx, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
mov rdx, r12
call qword [rax + 0x18]
test rax, rax
je case.default.0x18003b140
mov eax, edx
and eax, 3
movsxd rax, dword [r13 + rax*4]
add rax, r13
jmp rax
cmp byte [rdx + 0xf], 0x23
jne 0x18003b2b0
mov rax, rdx
dec rax
mov qword [rbp - 0x20], rax
mov rax, qword [rdx - 1]
mov qword [rbp], rax
mov rax, qword [rdx + 7]
mov qword [rbp + 8], rax
mov rax, qword [rax]
test rax, rax
je 0x18003b174
mov rcx, qword [rbp]
call rax
mov r8, qword [rbp]
mov rax, qword [rbp + 8]
cmp qword [rax + 8], 0
je 0x18003b199
cmp qword [rax + 0x10], 0x11
jb 0x18003b18e
mov r8, qword [r8 - 8]
mov rcx, qword [0x183972f90]
xor edx, edx
call rdi
mov rcx, qword [0x183972f90]
xor edx, edx
mov r8, qword [rbp - 0x20]
call rdi
jmp 0x18003b100
sub r14, rdx
jb 0x18003b2c9
mov qword [rsi + 0x18], r14
test rdx, rdx
je 0x18003b2a9
mov rax, r15
sub rax, rdx
jb 0x18003b2fb
add r12, rdx
mov r15, rax
jmp 0x18003b100
mov rax, rdx
shr rax, 0x20
cmp eax, 0x23
je 0x18003b100
test rdx, rdx
jne 0x18003b2b0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0
movaps xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 0
lea r8, [rbp - 0x40]
mov rcx, qword [rbp - 0x48]
mov rdx, rbx
call fcn.180038b50
mov eax, dword [rsi + 0x70]
mov dword [rbp + 0x28], eax
movups xmm0, xmmword [rsi + 0x60]
movups xmmword [rbp + 0x18], xmm0
mov rax, qword [rsi + 0x58]
mov qword [rbp + 0x10], rax
mov eax, dword [rbp - 0x30]
mov dword [rbx + 0x10], eax
movaps xmm0, xmmword [rbp - 0x40]
movups xmmword [rbx], xmm0
mov byte [rsi + 0xd8], 0x14
lea rcx, [rbp + 0x10]
lea rdi, [rbp - 0x60]
mov rdx, rbx
mov r8, rdi
call fcn.180038b50
mov rax, qword [rsi + 0x78]
mov qword [rsi + 0x38], rax
movups xmm0, xmmword [rsi + 0x80]
movups xmmword [rsi + 0x40], xmm0
mov eax, dword [rsi + 0x90]
mov dword [rsi + 0x50], eax
mov byte [rsi + 0xd8], 0
lea rdx, [rbp - 0x18]
mov rcx, rdi
call fcn.180002b80
test al, al
je 0x18003b0a7
lea rdx, [0x183962280]
mov r8d, 0x5b
mov cl, 0x15
call fcn.180038c90
mov rdx, rax
jmp 0x18003b2b0
lea rdx, [0x183962a90]
mov eax, 1
mov rdx, rdi
mov r11, qword [rbp + 0x110]
adc byte [rcx], al
add byte [rax], al
adc byte [rcx], al
add byte [rax], al
mov r8, r11
jmp r9
test rax, rax
cmove r8, rax
add rcx, r8
add rcx, 8
jmp 0x18003c0f3
test rax, rax
cmove r8, rax
add rcx, r8
add rcx, 2
jmp 0x18003c0f3
mov rdi, rdx
xlatb
sub rdi, rcx
jb 0x18003c403
add rcx, r11
mov r8, rcx
test rdi, rdi
je 0x18003c11c
movzx eax, byte [r8]
cmp al, 0x2f
sete cl
cmp al, 0x5c
sete al
or al, cl
jmp 0x18003c11e
xor eax, eax
mov qword [rbp + 0x90], r11
mov qword [rbp + 0x98], rdx
movups xmm0, xmmword [rbp + 0x10]
movups xmm1, xmmword [rbp + 0x20]
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm1
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0xc0], rcx
mov byte [rbp + 0xca], al
mov word [rbp + 0xc8], 0x200
lea r14, [rbp - 0x4f]
lea r15, [rbp + 0x31]
mov r12b, 1
mov eax, 1
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x130], 0
lea rsi, [rbp - 0x50]
lea rdi, [rbp + 0x90]
lea rbx, [rbp + 0x10]
xor r13d, r13d
jmp 0x18003c1e5
mov eax, dword [rbp + 0x118]
mov ecx, dword [rbp + 0x11b]
mov dword [rbp + 0x103], ecx
mov dword [rbp + 0x100], eax
mov rdx, qword [rbp + 0x120]
mov qword [rbp + 0x130], r8
mov qword [rbp + 0x120], rdx
mov eax, dword [rbp + 0x100]
mov ecx, dword [rbp + 0x103]
mov dword [rbp + 0x11b], ecx
mov dword [rbp + 0x118], eax
mov byte [rbp + 0x13f], 0
mov rcx, rsi
mov rdx, rdi
call fcn.180016980
movzx eax, byte [rbp - 0x50]
cmp al, 0xa
je 0x18003c29b
cmp al, 9
mov r8, qword [rbp + 0x130]
jne 0x18003c1a0
mov qword [rbp + 0x10], r8
mov rax, qword [rbp + 0x120]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], r13
mov byte [rbp + 0x28], r12b
mov eax, dword [rbp + 0x118]
mov ecx, dword [rbp + 0x11b]
mov dword [r15 - 5], ecx
mov dword [r15 - 8], eax
mov byte [rbp + 0x30], 9
mov rax, qword [r14 + 0x2f]
mov qword [r15 + 0x2f], rax
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movups xmm2, xmmword [r14 + 0x20]
movups xmmword [r15 + 0x20], xmm2
movups xmmword [r15 + 0x10], xmm1
movups xmmword [r15], xmm0
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x40]
mov rcx, rbx
call fcn.18001a770
mov r8, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov r13, qword [rbp + 0x20]
movzx r12d, byte [rbp + 0x28]
mov eax, dword [r15 - 8]
mov ecx, dword [r15 - 5]
mov dword [rbp + 0x100], eax
mov dword [rbp + 0x103], ecx
jmp 0x18003c1bf
mov rdx, qword [rbp + 8]
mov rax, qword [rbp + 0x130]
mov qword [rdx], rax
mov rax, qword [rbp + 0x120]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], r13
mov byte [rdx + 0x18], r12b
mov eax, dword [rbp + 0x118]
mov ecx, dword [rbp + 0x11b]
mov dword [rdx + 0x19], eax
mov dword [rdx + 0x1c], ecx
cmp qword [rbp + 0x108], 0
je 0x18003c2ee
mov rcx, qword [0x183972f90]
xor edx, edx
mov r8, qword [rbp + 0x110]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0xe8], 0
je 0x18003c322
mov rcx, qword [0x183972f90]
xor edx, edx
mov r8, qword [rbp + 0xf8]
add rsp, 0x1c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x1c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret