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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
test rcx, rcx
je 0x140003d2b
cmp qword [rcx + 0xa0], 0
je 0x140003d2b
cmp qword [rcx + 0x140], 0
je 0x14000374e
call fcn.140004230
lea r9, [rsp + 0x20]
mov rcx, rbx
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x24]
call fcn.1400034a0
test eax, eax
je 0x140003781
mov eax, 0xffffff99
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018da0
add rsp, 0x60
pop rbx
ret
mov qword [rsp + 0x78], rbp
mov ecx, 0x130
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400037e6
mov ecx, 0x10000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [rsp + 0x28]
xor esi, esi
mov qword [rdi + 0x70], rcx
mov ecx, dword [rsp + 0x20]
mov dword [rdi + 0x78], ecx
mov qword [rdi], rax
mov qword [rdi + 0x80], rsi
mov dword [rdi + 0x128], esi
test rax, rax
jne 0x140003815
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffff98
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018da0
add rsp, 0x60
pop rbx
ret
mov dword [rdi + 0x68], esi
mov eax, dword [rbx + 0xdc]
mov ecx, dword [rbx + 0xd4]
mov dword [rdi + 0x94], eax
mov dword [rdi + 0x90], esi
mov qword [rdi + 0x88], rsi
mov dword [rdi + 0x118], ecx
mov rax, qword [rbx + 0x68]
mov qword [rdi + 0x110], rax
movups xmm0, xmmword [rbx]
movups xmmword [rdi + 0xa8], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0xb8], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rdi + 0xc8], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rdi + 0xd8], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rdi + 0xe8], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rdi + 0xf8], xmm1
movsd xmm0, qword [rbx + 0x60]
movsd qword [rdi + 0x108], xmm0
mov eax, dword [rbx + 0x80]
cmp dword [rbx + 0xb0], eax
jne 0x1400038ad
mov rax, qword [rbx + 0x88]
jmp 0x1400038b0
mov rax, rsi
mov qword [rdi + 0x120], rax
mov dword [rdi + 0x24], esi
mov dword [rdi + 0x14], esi
mov qword [rdi + 8], rsi
cmp ecx, 0xc
jne 0x140003955
mov dword [rdi + 0x128], 1
mov rax, qword [rbx + 0xe0]
mov ecx, dword [rsp + 0x24]
mov r14, qword [rsp + 0x90]
add rcx, 0x1e
mov qword [rdi + 0x98], rax
mov rax, qword [rbx + 0xe8]
mov qword [rdi + 0xa0], rax
add rcx, qword [rbx + 0x130]
mov qword [rdi + 0x60], rcx
mov dword [rdi + 0x10], esi
mov qword [rbx + 0x140], rdi
mov qword [rbx + 0x158], rsi
test r14, r14
je 0x140003d24
test byte [rbx + 0xd0], 1
je 0x140003d24
mov r8, qword [rdi + 0x120]
add r8, qword [rdi + 0x60]
mov rax, qword [rbx + 0x28]
mov rdx, qword [rbx + 0x68]
test rax, rax
je 0x140003998
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
call rax
jmp 0x1400039ae
cmp ecx, 8
jne 0x1400038d4
lea rcx, [rdi + 8]
mov qword [rdi + 0x38], rsi
mov qword [rdi + 0x40], rsi
mov qword [rdi + 0x48], rbx
mov dword [rdi + 0x10], esi
call fcn.1400129b0
mov ebp, eax
test eax, eax
jne 0x140003988
mov dword [rdi + 0x68], 8
jmp 0x1400038d4
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, ebp
jmp 0x1400037eb
mov eax, r8d
cmp rax, r8
jne 0x1400037e6
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
call qword [rbx + 0x60]
test eax, eax
jne 0x1400037e6
lea r11, [0x14001b730]
mov r8d, 0x12345678
mov qword [rbx + 0x158], r11
mov r10d, 0x23456789
mov r9d, 0x34567890
mov dword [rbx + 0x14c], r8d
mov dword [rbx + 0x150], r10d
mov dword [rbx + 0x154], r9d
movzx eax, byte [r14]
test al, al
je 0x140003a5b
nop dword [rax]
nop word [rax + rax]
movsx ecx, al
lea r14, [r14 + 1]
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, r9b
shr r9d, 8
xor r8d, dword [r11 + rax*4]
mov dword [rbx + 0x14c], r8d
movzx eax, r8b
add eax, r10d
imul eax, eax, 0x8088405
inc eax
mov edx, eax
shr rdx, 0x18
xor rdx, rcx
mov dword [rbx + 0x150], eax
mov r10d, eax
xor r9d, dword [r11 + rdx*4]
mov dword [rbx + 0x154], r9d
movzx eax, byte [r14]
test al, al
jne 0x140003a00
mov rdx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x40]
mov r9d, 0xc
call qword [rbx + 0x10]
cmp eax, 0xc
jb 0x1400037e6
mov r11, qword [rbx + 0x158]
mov edx, dword [rbx + 0x14c]
mov eax, dword [rbx + 0x154]
mov r8d, dword [rbx + 0x154]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, byte [rsp + rsi + 0x30]
mov byte [rsp + rsi + 0x30], cl
movsx eax, cl
xor rax, rdx
shr edx, 8
movzx ecx, al
xor edx, dword [r11 + rcx*4]
mov dword [rbx + 0x14c], edx
mov r9d, edx
movzx eax, dl
add eax, dword [rbx + 0x150]
imul edx, eax, 0x8088405
movzx ecx, r8b
shr r8d, 8
inc edx
mov dword [rbx + 0x150], edx
mov eax, edx
shr rax, 0x18
xor rcx, rax
xor r8d, dword [r11 + rcx*4]
mov dword [rbx + 0x154], r8d
mov ecx, r8d
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rsi + 0x31], al
movsx eax, byte [rsp + rsi + 0x31]
xor rax, r9
shr r9d, 8
movzx ecx, al
xor r9d, dword [r11 + rcx*4]
movzx ecx, r8b
mov dword [rbx + 0x14c], r9d
movzx eax, r9b
add eax, edx
shr r8d, 8
imul edx, eax, 0x8088405
inc edx
mov dword [rbx + 0x150], edx
mov eax, edx
shr rax, 0x18
xor rcx, rax
xor r8d, dword [r11 + rcx*4]
mov ecx, r8d
mov dword [rbx + 0x154], r8d
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rsi + 0x32], al
movsx eax, byte [rsp + rsi + 0x32]
xor rax, r9
shr r9d, 8
movzx ecx, al
xor r9d, dword [r11 + rcx*4]
movzx ecx, r8b
movzx eax, r9b
add eax, edx
shr r8d, 8
imul edx, eax, 0x8088405
mov dword [rbx + 0x14c], r9d
inc edx
mov eax, edx
mov dword [rbx + 0x150], edx
shr rax, 0x18
xor rcx, rax
xor r8d, dword [r11 + rcx*4]
mov dword [rbx + 0x154], r8d
mov ecx, r8d
and ecx, 0xfffd
mov r10d, r8d
or ecx, 2
shr r10d, 8
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rsi + 0x33], al
movsx eax, byte [rsp + rsi + 0x33]
xor rax, r9
shr r9d, 8
movzx ecx, al
xor r9d, dword [r11 + rcx*4]
mov dword [rbx + 0x14c], r9d
movzx eax, r9b
add eax, edx
movzx ecx, r8b
imul edx, eax, 0x8088405
inc edx
mov dword [rbx + 0x150], edx
mov eax, edx
shr rax, 0x18
xor rcx, rax
xor r10d, dword [r11 + rcx*4]
mov dword [rbx + 0x154], r10d
mov ecx, r10d
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rsi + 0x34], al
movsx eax, byte [rsp + rsi + 0x34]
xor rax, r9
shr r9d, 8
movzx ecx, al
xor r9d, dword [r11 + rcx*4]
mov dword [rbx + 0x14c], r9d
movzx ecx, r10b
movzx eax, r9b
add eax, edx
shr r10d, 8
imul r8d, eax, 0x8088405
mov edx, r9d
inc r8d
mov dword [rbx + 0x150], r8d
mov eax, r8d
shr rax, 0x18
xor rcx, rax
xor r10d, dword [r11 + rcx*4]
mov dword [rbx + 0x154], r10d
mov ecx, r10d
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rsi + 0x35], al
movsx eax, byte [rsp + rsi + 0x35]
xor rax, rdx
shr edx, 8
movzx ecx, al
xor edx, dword [r11 + rcx*4]
movzx eax, dl
add eax, r8d
mov dword [rbx + 0x14c], edx
imul edx, eax, 0x8088405
movzx eax, r10b
mov ecx, r10d
shr ecx, 8
inc edx
mov dword [rbx + 0x150], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r11 + rax*4]
mov dword [rbx + 0x154], ecx
add rsi, 6
cmp rsi, 0xc
jl 0x140003a81
mov rax, qword [rbx + 0x140]
add qword [rax + 0x98], 0xfffffffffffffff4
mov rax, qword [rbx + 0x140]
add qword [rax + 0x60], 0xc
xor eax, eax
jmp 0x1400037eb
mov eax, 0xffffff9a
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140018da0
add rsp, 0x60
pop rbx
ret