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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rdx
mov rbx, rcx
mov edx, dword [rdx]
xor r8d, r8d
mov rcx, qword [rcx + 0xa8]
call fcn.14018d0b0
cmp rax, 0xffffffffffffffff
jne 0x140001df0
mov eax, 0x1b60
jmp 0x14000201c
mov ecx, 0xffffffff
cmp rax, rcx
jle 0x140001e04
mov eax, 0x2ced
jmp 0x14000201c
mov rcx, qword [rbx + 0xa8]
lea rdx, [rdi + 4]
mov r8d, 0x1e
mov qword [rsp + 0x60], rsi
call fcn.14018cf60
cmp rax, 0x1e
jne 0x140002012
cmp qword [rdi + 0x40], 0x10
lea rdx, [rdi + 0x28]
movzx esi, word [rdi + 0x1e]
jb 0x140001e3b
mov rdx, qword [rdx]
mov rcx, qword [rbx + 0xa8]
mov r8, rsi
call fcn.14018cf60
cmp rax, rsi
jne 0x140002012
cmp byte [rbx + 0x38], 0
je 0x14000200e
mov rax, qword [rbx + 0x28]
dec rax
cmp rax, 0x7e
ja 0x14000200e
mov rax, qword [rbx + 0x28]
mov edi, dword [rdi + 0x12]
dec rax
cmp rax, 0x7e
ja 0x140001fe6
xor eax, eax
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], eax
lea r9d, [rax + 2]
lea r8d, [rax + 0xc]
call fcn.1401bf3f0
test eax, eax
js 0x140001fe6
shr edi, 0x18
lea r11, [rbx + 0x18]
mov r9d, 0x12345678
mov byte [rsp + 0x2b], dil
mov r8d, 0x23456789
mov dword [rbx + 8], r9d
mov r10d, 0x34567890
mov dword [rbx + 0xc], r8d
mov dword [rbx + 0x10], r10d
cmp qword [rbx + 0x30], 0x10
jb 0x140001ede
mov r11, qword [rbx + 0x18]
lea rdx, [rbx + 0x18]
jb 0x140001ee8
mov rdx, qword [rbx + 0x18]
mov rdi, qword [rbx + 0x28]
lea rsi, [0x1401f8ce0]
add rdi, rdx
cmp r11, rdi
je 0x140001f58
nop dword [rax + rax]
movzx eax, byte [r11]
mov rcx, r9
xor rcx, rax
inc r11
movzx edx, cl
mov eax, r9d
shr eax, 8
mov ecx, dword [rsi + rdx*4]
xor ecx, eax
movzx eax, cl
mov r9d, ecx
add eax, r8d
mov dword [rbx + 8], ecx
imul r8d, eax, 0x8088405
mov ecx, r10d
shr ecx, 8
inc r8d
mov eax, r8d
mov dword [rbx + 0xc], r8d
shr rax, 0x18
xor rax, r10
movzx eax, al
mov eax, dword [rsi + rax*4]
xor eax, ecx
mov dword [rbx + 0x10], eax
mov r10d, eax
cmp r11, rdi
jne 0x140001f00
mov rax, qword [rbx + 0x28]
dec rax
cmp rax, 0x7e
ja 0x140001ff1
lea r11, [rsp + 0x20]
nop
movzx edx, byte [r11]
movzx eax, word [rbx + 0x10]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, edx
xor rax, r9
sar ecx, 8
xor cl, dl
movzx edx, al
mov byte [r11], cl
mov ecx, r9d
shr ecx, 8
inc r11
mov eax, dword [rsi + rdx*4]
xor eax, ecx
mov r9d, eax
movzx eax, al
add eax, r8d
imul ecx, eax, 0x8088405
lea eax, [rcx + 1]
shr rax, 0x18
lea r8d, [rcx + 1]
xor rax, r10
mov ecx, r10d
movzx eax, al
shr ecx, 8
mov eax, dword [rsi + rax*4]
xor eax, ecx
mov r10d, eax
mov dword [rbx + 0x10], eax
lea rax, [rsp + 0x2c]
cmp r11, rax
jb 0x140001f70
mov dword [rbx + 8], r9d
mov dword [rbx + 0xc], r8d
jmp 0x140001ff1
xor eax, eax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], eax
mov rcx, qword [rbx + 0xa8]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_inet_ntoa
call fcn.14018cf60
cmp rax, 0xc
jne 0x140002012
xor eax, eax
jmp 0x140002017
mov eax, 0x1b5d
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401c5190
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret