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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [rdx]
test rax, rax
je 0x1400c9134
cmp eax, 1
jne 0x1400c9178
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1400c91d4
cmp r15, rbx
mov r9, rbx
cmovb r9, r15
mov rdx, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
mov r8, r14
call qword [rax + 0x18]
cmp qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x38]
je 0x1400c91e4
mov qword [rdi + 8], rax
mov qword [rdi], 1
test r15, r15
jne 0x1400c9205
jmp 0x1400c962b
mov rbx, qword [rsi + 0x18]
test rbx, rbx
je 0x1400c91c9
cmp r15, rbx
cmovae r15, rbx
mov rdx, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
mov r8, r14
mov r9, r15
call qword [rax + 0x18]
cmp qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x38]
je 0x1400c9289
mov qword [rdi + 8], rax
jmp 0x1400c9624
mov r9, qword [rsi + 0x30]
test r9, r9
je 0x1400c91c9
mov r12, qword [rsi + 0x18]
test r12, r12
je 0x1400c92a6
cmp r9, r15
cmovae r9, r15
cmp r9, r12
cmovae r9, r12
mov rdx, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
mov r8, r14
call qword [rax + 0x18]
cmp qword [rsp + 0x30], 0
mov rbx, qword [rsp + 0x38]
je 0x1400c92ae
mov qword [rdi + 8], rbx
jmp 0x1400c9624
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
jmp 0x1400c962b
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
test r15, r15
jne 0x1400c9205
jmp 0x1400c962b
sub rbx, rax
jb 0x1400c963f
mov qword [rsi + 0x18], rbx
mov qword [rdi + 8], rax
mov qword [rdi], 0
test r15, r15
je 0x1400c962b
mov ecx, dword [rsi + 0x28]
mov eax, dword [rsi + 0x20]
mov edx, dword [rsi + 0x24]
xor r8d, r8d
lea r9, [0x1401e7f54]
nop dword [rax + rax]
mov r11d, ecx
or r11d, 3
mov r10d, r11d
and r10d, 0xfffffffe
imul r10d, r11d
shr r10d, 8
xor r10b, byte [r14 + r8]
mov r11d, eax
xor r11b, r10b
movzx r11d, r11b
shr eax, 8
xor eax, dword [r9 + r11*4]
movzx r11d, al
add r11d, edx
imul edx, r11d, 0x8088405
inc edx
mov r11d, edx
shr r11d, 0x18
movzx edi, cl
xor edi, r11d
shr ecx, 8
xor ecx, dword [r9 + rdi*4]
mov byte [r14 + r8], r10b
inc r8
cmp r15, r8
jne 0x1400c9220
mov dword [rsi + 0x28], ecx
mov dword [rsi + 0x20], eax
mov dword [rsi + 0x24], edx
jmp 0x1400c962b
sub rbx, rax
jb 0x1400c963f
mov qword [rsi + 0x18], rbx
mov qword [rdi + 8], rax
mov qword [rdi], 0
jmp 0x1400c962b
mov qword [rsi + 0x30], r9
xor ebx, ebx
jmp 0x1400c92c8
sub r12, rbx
jb 0x1400c963f
mov qword [rsi + 0x18], r12
sub qword [rsi + 0x30], rbx
cmp rbx, r15
ja 0x1400c963f
lea r13, [rsi + 0x98]
movzx r12d, byte [rsi + 0xd8]
mov eax, 0x40
sub rax, r12
mov r15, rbx
sub r15, rax
jae 0x1400c92fe
lea rcx, [r12 + r13]
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
add r12, rbx
jmp 0x1400c937f
mov qword [rsp + 0x28], r13
mov r8, rbx
mov r13, r14
test r12, r12
je 0x1400c9341
lea r13, [r14 + rax]
mov rbp, qword [rsp + 0x28]
add r12, rbp
mov rcx, r12
mov rdx, r14
mov r8, rax
call sub.msvcrt.dll_memcpy
inc qword [rsi + 0x38]
lea rcx, [rsi + 0x40]
mov r8d, 1
mov rdx, rbp
call fcn.140062e50
mov r8, r15
mov rbp, r8
and rbp, 0xffffffffffffffc0
mov r12d, r8d
and r12d, 0x3f
add rbp, r13
cmp r8, 0x40
jb 0x1400c936c
shr r8, 6
add qword [rsi + 0x38], r8
lea rcx, [rsi + 0x40]
mov rdx, r13
call fcn.140062e50
mov r13, qword [rsp + 0x28]
mov rcx, r13
mov rdx, rbp
mov r8, r12
call sub.msvcrt.dll_memcpy
mov byte [rsi + 0xd8], r12b
mov rcx, qword [rsi + 0x20]
mov rax, qword [rsi + 0x28]
mov rdx, r14
mov r8, rbx
call qword [rax + 0x18]
cmp qword [rsi + 0x30], 0
je 0x1400c93ae
mov qword [rdi + 8], rbx
mov qword [rdi], 0
jmp 0x1400c962b
mov qword [rsp + 0x28], r13
cmp byte [rsi + 0xe0], 0
jne 0x1400c963f
lea rax, [rsi + 0x38]
mov qword [rsp + 0xa0], rax
mov byte [rsi + 0xe0], 1
mov word [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov rbp, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0xb8], rax
mov r15, qword [rsi + 0x18]
mov r12d, 0xa
lea r13, [rsp + 0x50]
jmp 0x1400c9418
cmp byte [r14 + 0x10], 0x23
jne 0x1400c9620
test r12, r12
je 0x1400c9522
test r15, r15
je 0x1400c9619
cmp r12, r15
mov r9, r15
cmovb r9, r12
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov r8, r13
mov rax, qword [rsp + 0xb8]
call qword [rax + 0x18]
cmp qword [rsp + 0x30], 0
mov r14, qword [rsp + 0x38]
je case.default.0x1400c9466
mov eax, r14d
and eax, 3
lea rcx, [0x1401929b0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
sub r15, r14
jb 0x1400c963f
mov qword [rsi + 0x18], r15
test r14, r14
je 0x1400c9619
sub r12, r14
jb 0x1400c963f
add r13, r14
jmp 0x1400c940f
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 0
movaps xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x90], 0
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x28]
mov rdx, r14
call fcn.1400c8fa0
mov eax, dword [rsi + 0x70]
mov dword [rsp + 0x48], eax
movups xmm0, xmmword [rsi + 0x60]
movups xmmword [rsp + 0x38], xmm0
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x90]
mov dword [r14 + 0x10], eax
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [r14], xmm0
mov byte [rsi + 0xd8], 0x14
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x60]
mov rdx, r14
call fcn.1400c8fa0
mov eax, dword [rsi + 0x90]
mov dword [rsi + 0x50], eax
movups xmm0, xmmword [rsi + 0x80]
movups xmmword [rsi + 0x40], xmm0
mov rax, qword [rsi + 0x78]
mov qword [rsi + 0x38], rax
mov byte [rsi + 0xd8], 0
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0xd0], eax
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0xc0], xmm0
lea rcx, [rsp + 0xc0]
lea rdx, [rsp + 0x50]
call fcn.14000b2a0
test al, al
je 0x1400c939e
lea rdx, [0x1401e7e4e]
mov r8d, 0x5b
mov cl, 0x15
call fcn.1400ca590
jmp 0x1400c916f
lea r14, [0x1401e8370]
mov qword [rdi + 8], r14
mov qword [rdi], 1
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2