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

Disassembly:
push r12
push r13
push r15
sub rsp, 0x30
xor r13d, r13d
xor r12d, r12d
mov r15, r9
test r9, r9
je 0x14023d3cb
mov byte [r9], r12b
mov qword [rsp + 0x50], rbx
test rcx, rcx
je 0x14023d726
mov rbx, qword [rcx + 0x80]
test rbx, rbx
je 0x14023d726
cmp qword [rbx], r12
jne 0x14023d403
mov eax, 0xffffff9c
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop r13
pop r12
ret
test r8d, r8d
jne 0x14023d41a
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop r13
pop r12
ret
mov eax, dword [rbx + 0x80]
mov qword [rbx + 0x18], rdx
mov dword [rbx + 0x20], r8d
cmp r8d, eax
jbe 0x14023d433
mov dword [rbx + 0x20], eax
mov r8d, eax
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
test r8d, r8d
je 0x14023d721
lea r14, [0x1402d6030]
nop word [rax + rax]
mov esi, dword [rbx + 0x10]
test esi, esi
jne 0x14023d59b
mov eax, dword [rbx + 0x7c]
test eax, eax
je 0x14023d59b
mov rcx, qword [rbx + 0x88]
mov edi, 0x4000
mov edx, dword [rbx + 0x94]
cmp eax, edi
cmovb edi, eax
add edx, dword [rbx + 0x60]
cmp byte [rcx], sil
je 0x14023d4b4
cmp byte [rcx + 1], sil
je 0x14023d70a
add edx, dword [rcx + 0x14]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x14023d4b7
mov dword [rcx + 0x2c], edx
mov r9, qword [rbx + 0x88]
mov r8d, 1
mov rcx, qword [rbx]
mov edx, edi
mov ebp, edi
call fcn.14023caf0
cmp rax, 1
jne 0x14023d70a
add dword [rbx + 0x60], edi
mov esi, edi
sub dword [rbx + 0x7c], edi
cmp byte [rbx + 0x98], 0
mov r10, qword [rbx]
mov qword [rbx + 8], r10
mov dword [rbx + 0x10], edi
je 0x14023d59b
test edi, edi
je 0x14023d59b
nop dword [rax]
nop word [rax + rax]
mov r9d, dword [rbx + 0xa4]
mov edx, dword [rbx + 0x9c]
mov eax, r9d
and eax, 0xfffd
mov ecx, edx
or eax, 2
shr edx, 8
mov r8d, eax
xor r8d, 1
imul r8d, eax
shr r8d, 8
xor r8b, byte [r10]
movsx rax, r8b
xor rcx, rax
movzx eax, cl
mov ecx, dword [r14 + rax*4]
xor ecx, edx
movzx eax, cl
add eax, dword [rbx + 0xa0]
imul eax, eax, 0x8088405
mov dword [rbx + 0x9c], ecx
movzx ecx, r9b
shr r9d, 8
inc eax
mov dword [rbx + 0xa0], eax
shr rax, 0x18
xor rcx, rax
mov eax, dword [r14 + rcx*4]
xor eax, r9d
mov dword [rbx + 0xa4], eax
mov byte [r10], r8b
inc r10
sub rbp, 1
jne 0x14023d510
mov esi, dword [rbx + 0x10]
mov r9d, dword [rbx + 0xa8]
mov r8d, esi
cmp r9d, esi
cmovbe r8d, r9d
test r8d, r8d
je 0x14023d5ee
mov rdx, qword [rbx + 8]
lea eax, [r8 - 1]
sub esi, r8d
movzx r10d, byte [rax + rdx]
sub dword [rbx + 0x80], r8d
mov eax, r8d
add rax, rdx
mov dword [rbx + 0x10], esi
sub r9d, r8d
mov qword [rbx + 8], rax
mov dword [rbx + 0xa8], r9d
jne 0x14023d5ee
cmp r10b, byte [rbx + 0xac]
jne 0x14023d711
cmp dword [rbx + 0x90], 0
jne 0x14023d686
mov r14d, dword [rbx + 0x20]
cmp r14d, esi
mov ebp, r14d
cmovae ebp, esi
xor r8d, r8d
test ebp, ebp
je 0x14023d630
nop
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x18]
movzx eax, byte [r8 + rax]
mov byte [r8 + rcx], al
inc r8d
cmp r8d, ebp
jb 0x14023d610
mov esi, dword [rbx + 0x10]
mov r14d, dword [rbx + 0x20]
mov rdi, qword [rbx + 0x18]
mov r8d, ebp
mov ecx, dword [rbx + 0x74]
mov rdx, rdi
call fcn.14023cb90
sub dword [rbx + 0x80], ebp
sub r14d, ebp
add dword [rbx + 0x24], ebp
sub esi, ebp
mov ecx, ebp
add r12d, ebp
add qword [rbx + 8], rcx
cmp dword [rbx + 0x80], 0
mov dword [rbx + 0x74], eax
lea rax, [rdi + rbp]
mov dword [rbx + 0x20], r14d
lea r14, [0x1402d6030]
mov dword [rbx + 0x10], esi
mov qword [rbx + 0x18], rax
jne 0x14023d6d4
test r15, r15
je 0x14023d6d4
mov byte [r15], 1
jmp 0x14023d6d4
mov edi, dword [rbx + 0x24]
lea rcx, [rbx + 8]
mov rsi, qword [rbx + 0x18]
mov edx, 2
call fcn.14023ab70
mov ebp, dword [rbx + 0x24]
mov rdx, rsi
mov ecx, dword [rbx + 0x74]
sub ebp, edi
mov r8d, ebp
mov r13d, eax
call fcn.14023cb90
mov ecx, dword [rbx + 0x80]
add r12d, ebp
sub ecx, ebp
mov dword [rbx + 0x74], eax
mov dword [rbx + 0x80], ecx
cmp r13d, 1
je 0x14023d718
test ecx, ecx
je 0x14023d718
test r13d, r13d
jne 0x14023d6e3
cmp dword [rbx + 0x20], 0
ja 0x14023d460
test r13d, r13d
je 0x14023d721
mov eax, r13d
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop r13
pop r12
ret
mov eax, 0xffffffff
jmp 0x14023d6e6
mov eax, 0xffffff96
jmp 0x14023d6e6
test r15, r15
je 0x14023d721
mov byte [r15], 1
mov eax, r12d
jmp 0x14023d6e6
mov rbx, qword [rsp + 0x50]
mov eax, 0xffffff9a
add rsp, 0x30
pop r15
pop r13
pop r12
ret