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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x560]
sub rsp, 0x660
mov rax, qword [0x1402526c8]
xor rax, rsp
mov qword [rbp + 0x530], rax
cmp dword [rcx + 0x24], 0
mov rdi, r8
mov rsi, rcx
je 0x14002a81a
mov eax, 0x40000
jmp 0x14002afd9
cmp byte [rcx + 0x40], 0
je 0x14002a82a
mov eax, 0x50000
jmp 0x14002afd9
mov qword [rsp + 0x650], r13
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x648], r14
xor r14d, r14d
mov r8d, 0x104
mov r13d, r14d
cmp qword [rcx], r13
lea rcx, [rbp + 0x320]
cmovne r13d, eax
mov dword [rsp + 0x40], r13d
call fcn.14017e248
mov word [rbp + 0x526], r14w
cmp word [rbp + 0x320], r14w
jne 0x14002a87f
mov eax, 0x10000
jmp 0x14002afc9
mov qword [rsp + 0x698], rbx
lea rax, [rbp + 0x320]
mov ecx, 0x2f
mov qword [rsp + 0x658], r12
nop dword [rax + rax]
cmp word [rax], 0x5c
jne 0x14002a8a9
mov word [rax], cx
add rax, 2
cmp word [rax], r14w
jne 0x14002a8a0
lea rcx, [rbp + 0x320]
mov ebx, 8
call fcn.140029d50
mov r12d, ebx
mov rdx, rdi
test al, al
mov rcx, rsi
cmovne r12d, r14d
mov dword [rsp + 0x44], r12d
call fcn.14002a1d0
test eax, eax
jne 0x14002afb9
mov qword [rsp + 0x38], r14
lea rax, [rbp + 0xb8]
mov qword [rsp + 0x30], r14
lea r8, [rbp + 0x320]
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x104
mov qword [rbp + 0x2d0], r14
mov qword [rsp + 0x20], rax
mov byte [rbp - 0x68], r14b
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0xb8]
repne scasb al, byte [rdi]
mov byte [rbp + 0x1bc], al
mov eax, 0xb17
mov word [rsp + 0x50], ax
mov eax, 0x14
not rcx
dec rcx
mov word [rsp + 0x52], ax
mov eax, dword [rsi + 0x80]
mov qword [rsp + 0x68], rcx
mov qword [rbp + 0xb0], r14
mov qword [rbp - 0x80], r14
lea ecx, [rbx + 1]
mov dword [rbp + 0x2c0], 1
mov dword [rbp + 0x2c8], r14d
mov word [rbp - 0x76], r14w
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], r14d
mov word [rsp + 0x54], bx
cmp qword [rsi], r14
je 0x14002a99f
movzx ebx, cx
mov word [rsp + 0x54], cx
mov word [rbp - 0x74], bx
mov word [rsp + 0x56], r12w
test r12d, r12d
jne 0x14002a9c1
mov eax, dword [rsi + 0x88]
test eax, eax
js 0x14002a9c1
add eax, r13d
mov dword [rsp + 0x60], eax
jmp 0x14002a9c6
mov dword [rsp + 0x60], r14d
mov eax, dword [rsi + 0x88]
mov edx, dword [rsi + 0x78]
mov qword [rsp + 0x78], rcx
mov ecx, dword [rsi + 0x74]
mov dword [rsp + 0x64], eax
mov eax, dword [rsi + 0x70]
mov dword [rbp - 0x70], eax
mov eax, dword [rsi + 0x28]
mov dword [rbp + 0x2e0], 0xd5455
add eax, dword [rsi + 0x20]
mov byte [rbp + 0x2e4], 7
mov word [rbp - 0x78], r14w
mov dword [rbp - 0x6c], eax
lea rax, [rbp + 0x2e0]
mov qword [rsp + 0x70], reloc.COMCTL32.dll_InitCommonControls
mov qword [rbp + 0xa0], rax
lea rax, [rbp + 0x308]
mov qword [rbp + 0xa8], rax
movzx eax, byte [rsi + 0x78]
mov byte [rbp + 0x2e5], al
mov eax, edx
sar eax, 8
mov byte [rbp + 0x2e6], al
mov eax, edx
sar edx, 0x18
sar eax, 0x10
mov byte [rbp + 0x2e8], dl
mov byte [rbp + 0x310], dl
mov byte [rbp + 0x2e7], al
movzx eax, byte [rsi + 0x74]
mov rdx, rsi
mov byte [rbp + 0x2e9], al
mov eax, ecx
sar eax, 8
mov byte [rbp + 0x2ea], al
mov eax, ecx
sar ecx, 0x18
sar eax, 0x10
mov byte [rbp + 0x2ec], cl
mov ecx, dword [rsi + 0x7c]
mov byte [rbp + 0x2eb], al
movzx eax, byte [rsi + 0x7c]
mov byte [rbp + 0x2ed], al
mov eax, ecx
sar eax, 8
mov byte [rbp + 0x2ee], al
mov eax, ecx
sar ecx, 0x18
sar eax, 0x10
mov byte [rbp + 0x2f0], cl
lea rcx, [rsp + 0x50]
mov byte [rbp + 0x2ef], al
mov rax, qword [rbp + 0x2e0]
mov qword [rbp + 0x308], rax
mov byte [rbp + 0x30a], 5
call fcn.140028ed0
test eax, eax
je 0x14002aae1
mov rcx, rsi
call fcn.14002a5a0
mov eax, 0x400
jmp 0x14002afb9
mov ecx, dword [rsp + 0x68]
mov eax, dword [rsp + 0x70]
lea ecx, [rax + rcx + 0x1e]
add dword [rsi + 0x28], ecx
cmp dword [rsi + 0x24], r14d
je 0x14002ab06
mov rcx, rsi
call fcn.14002a5a0
mov eax, dword [rsi + 0x24]
jmp 0x14002afb9
mov rdi, qword [rsi]
mov qword [rsp + 0x640], r15
mov dword [rsi + 0x44], 0x12345678
mov dword [rsi + 0x48], 0x23456789
mov dword [rsi + 0x4c], 0x34567890
lea r8, [0x14020b170]
test rdi, rdi
je 0x14002ab7f
movzx eax, byte [rdi]
test al, al
je 0x14002ab7f
mov edx, dword [rsi + 0x44]
mov ecx, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov edx, dword [rsi + 0x4c]
movzx eax, cl
mov dword [rsi + 0x44], ecx
movzx ecx, dl
add eax, dword [rsi + 0x48]
shr edx, 8
imul eax, eax, 0x8088405
inc eax
mov dword [rsi + 0x48], eax
movzx eax, byte [rsi + 0x4b]
xor rcx, rax
mov eax, dword [r8 + rcx*4]
xor eax, edx
inc rdi
mov dword [rsi + 0x4c], eax
jne 0x14002ab32
cmp byte [0x1402607c4], r14b
jne 0x14002ab97
xor ecx, ecx
call fcn.14017eaf0
mov rcx, rax
call fcn.14017fea4
mov rdi, r14
nop word [rax + rax]
call fcn.14017febc
inc rdi
sar eax, 7
mov byte [rbp + rdi + 0x2f7], al
cmp rdi, 0xc
jl 0x14002aba0
mov eax, dword [rsp + 0x58]
mov r15d, dword [rsi + 0x4c]
mov r13d, dword [rsi + 0x44]
mov ebx, dword [rsi + 0x48]
shr eax, 8
lea r12, [0x14020b170]
mov byte [rbp + 0x303], al
nop word [rax + rax]
movsx r8, byte [rbp + r14 + 0x2f8]
mov edi, r15d
mov rax, r8
and edi, 0xfffd
xor rax, r13
or edi, 2
movzx ecx, al
mov eax, r13d
mov edx, dword [r12 + rcx*4]
shr eax, 8
mov ecx, r15d
xor edx, eax
shr ecx, 8
mov dword [rsi + 0x44], edx
mov r9d, edx
movzx r11d, dl
add r11d, ebx
movzx edx, r15b
imul r11d, r11d, 0x8088405
inc r11d
mov dword [rsi + 0x48], r11d
movzx eax, byte [rsi + 0x4b]
xor rdx, rax
mov eax, edi
mov r10d, dword [r12 + rdx*4]
xor eax, 1
xor r10d, ecx
mov dword [rsi + 0x4c], r10d
mov edx, r10d
imul eax, edi
movsx rdi, byte [rbp + r14 + 0x2f9]
shr eax, 8
and edx, 0xfffd
xor al, r8b
or edx, 2
mov byte [rbp + r14 + 0x2f8], al
mov rax, rdi
xor rax, r9
shr r9d, 8
movzx ecx, al
mov eax, dword [r12 + rcx*4]
movzx ecx, r10b
shr r10d, 8
xor eax, r9d
mov dword [rsi + 0x44], eax
movzx ebx, al
mov r8d, eax
add ebx, r11d
imul ebx, ebx, 0x8088405
inc ebx
mov dword [rsi + 0x48], ebx
movzx eax, byte [rsi + 0x4b]
xor rcx, rax
mov eax, edx
mov r9d, dword [r12 + rcx*4]
xor eax, 1
xor r9d, r10d
mov dword [rsi + 0x4c], r9d
imul eax, edx
shr eax, 8
mov edx, r9d
xor al, dil
movsx rdi, byte [rbp + r14 + 0x2fa]
and edx, 0xfffd
mov byte [rbp + r14 + 0x2f9], al
mov rax, rdi
or edx, 2
xor rax, r8
shr r8d, 8
movzx ecx, al
mov eax, dword [r12 + rcx*4]
movzx ecx, r9b
xor eax, r8d
movzx r10d, al
mov r8d, eax
mov dword [rsi + 0x44], eax
add r10d, ebx
imul r10d, r10d, 0x8088405
inc r10d
mov dword [rsi + 0x48], r10d
movzx eax, byte [rsi + 0x4b]
xor rcx, rax
mov eax, edx
shr r9d, 8
xor r9d, dword [r12 + rcx*4]
xor eax, 1
add r14, 4
mov dword [rsi + 0x4c], r9d
imul eax, edx
shr eax, 8
mov edx, r9d
xor al, dil
movsx rdi, byte [rbp + r14 + 0x2f7]
and edx, 0xfffd
mov byte [rbp + r14 + 0x2f6], al
or edx, 2
mov rax, rdi
xor rax, r8
shr r8d, 8
movzx ecx, al
mov eax, dword [r12 + rcx*4]
movzx ecx, r9b
shr r9d, 8
xor eax, r8d
movzx ebx, al
mov r13d, eax
mov dword [rsi + 0x44], eax
add ebx, r10d
imul ebx, ebx, 0x8088405
inc ebx
mov dword [rsi + 0x48], ebx
movzx eax, byte [rsi + 0x4b]
xor rcx, rax
mov eax, dword [r12 + rcx*4]
xor eax, r9d
mov r15d, eax
mov dword [rsi + 0x4c], eax
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, dil
mov byte [rbp + r14 + 0x2f7], al
cmp r14, 0xc
jl 0x14002abe0
cmp qword [rsi], 0
mov r15, qword [rsp + 0x640]
mov r12d, dword [rsp + 0x44]
mov r13d, dword [rsp + 0x40]
je 0x14002ade9
lea rdx, [rbp + 0x2f8]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rsi
call fcn.140029f20
add dword [rsi + 0x28], 0xc
xor eax, eax
xor edi, edi
cmp qword [rsi], rax
setne al
mov byte [rsi + 0x41], al
cmp r12d, 8
jne 0x14002ae0b
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14002a610
jmp 0x14002ae18
test r12d, r12d
jne 0x14002ae1a
mov rcx, rsi
call fcn.14002a750
mov edi, eax
cmp byte [rsi + 0xa0], 0
mov byte [rsi + 0x41], 0
je 0x14002ae39
mov rcx, qword [rsi + 0x98]
test rcx, rcx
je 0x14002ae39
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsi + 0xb8]
mov eax, dword [rsi + 0x24]
mov edx, dword [rsi + 0x8c]
add dword [rsi + 0x28], ecx
mov qword [rsi + 0x98], 0
mov dword [rsi + 0x88], edx
test eax, eax
jne 0x14002afb9
test edi, edi
jne 0x14002aad7
mov eax, dword [rsi + 0x90]
add ecx, r13d
mov dword [rsp + 0x64], edx
cmp dword [rsp + 0x60], ecx
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x5c], eax
sete dil
cmp byte [rsi + 0x2c], 0
je 0x14002aef5
cmp qword [rsi], 0
jne 0x14002aef5
movzx eax, word [rsp + 0x54]
mov word [rsp + 0x56], r12w
test al, 1
jne 0x14002aeb1
mov ecx, 0xfff7
and ax, cx
mov word [rsp + 0x54], ax
mov edx, dword [rbp - 0x6c]
mov rcx, rsi
mov word [rbp - 0x74], ax
sub edx, dword [rsi + 0x20]
call fcn.14002a0d0
test al, al
je 0x14002aeeb
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.140028ed0
test eax, eax
jne 0x14002aad7
mov edx, dword [rsi + 0x28]
mov rcx, rsi
call fcn.14002a0d0
test al, al
jne 0x14002af33
mov eax, 0x2000000
jmp 0x14002afb9
cmp word [rsp + 0x56], r12w
jne 0x14002af07
test r12d, r12d
jne 0x14002af11
test dil, dil
jne 0x14002af11
mov eax, 0x4000000
jmp 0x14002afb9
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.140029270
test eax, eax
jne 0x14002aad7
movzx eax, word [rbp - 0x74]
add dword [rsi + 0x28], 0x10
mov word [rsp + 0x54], ax
mov eax, dword [rsi + 0x24]
test eax, eax
jne 0x14002afb9
mov rcx, qword [rsp + 0x78]
call fcn.14002b25c
mov r8, qword [rsp + 0x78]
mov rdx, qword [rbp + 0xa8]
mov rcx, rax
mov rdi, rax
call fcn.14017eea0
mov ecx, 0x388
mov qword [rbp + 0xa8], rdi
call fcn.14002b218
lea rdx, [rsp + 0x50]
mov r8d, 0x388
mov rcx, rax
mov rdi, rax
call fcn.14017eea0
mov rcx, qword [rsi + 0x60]
test rcx, rcx
jne 0x14002af91
mov qword [rsi + 0x60], rdi
jmp 0x14002afb7
lea rax, [rcx + 0x380]
cmp qword [rax], 0
je 0x14002afb0
nop
mov rcx, qword [rax]
lea rax, [rcx + 0x380]
cmp qword [rax], 0
jne 0x14002afa0
mov qword [rcx + 0x380], rdi
xor eax, eax
mov r12, qword [rsp + 0x658]
mov rbx, qword [rsp + 0x698]
mov r13, qword [rsp + 0x650]
mov r14, qword [rsp + 0x648]
mov rcx, qword [rbp + 0x530]
xor rcx, rsp
call fcn.14017e0f0
add rsp, 0x660
pop rdi
pop rsi
pop rbp
ret