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

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x550]
sub rsp, 0x650
mov rax, qword [0x140298ad8]
xor rax, rsp
mov qword [rbp + 0x520], rax
cmp dword [rcx + 0x24], 0
mov rdi, r8
mov rbx, rcx
je 0x140029ada
mov eax, 0x40000
jmp 0x14002a168
cmp byte [rcx + 0x40], 0
je 0x140029aea
mov eax, 0x50000
jmp 0x14002a168
mov qword [rsp + 0x648], r12
xor r12d, r12d
mov r9d, 0x104
cmp qword [rcx], r12
mov qword [rsp + 0x630], r15
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r8, rdx
lea rcx, [rbp + 0x310]
mov r15d, r12d
mov edx, r9d
cmovne r15d, eax
call fcn.1401af068
mov word [rbp + 0x516], r12w
cmp word [rbp + 0x310], r12w
jne 0x140029b40
mov eax, 0x10000
jmp 0x14002a158
mov qword [rsp + 0x688], rsi
lea rax, [rbp + 0x310]
mov ecx, 0x2f
mov qword [rsp + 0x638], r14
nop dword [rax]
cmp word [rax], 0x5c
jne 0x140029b69
mov word [rax], cx
add rax, 2
cmp word [rax], r12w
jne 0x140029b60
lea rcx, [rbp + 0x310]
mov r14d, 8
call fcn.140028ff0
mov esi, r14d
mov rdx, rdi
test al, al
mov rcx, rbx
cmovne esi, r12d
call fcn.140029480
test eax, eax
jne 0x14002a148
lea r8, [0x1402447b8]
lea rcx, [rbp - 0x78]
mov edx, 0x104
mov qword [rbp + 0x2c0], r12
call fcn.1401b1474
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0xa8]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x30], r12
lea r8, [rbp + 0x310]
xor edx, edx
mov ecx, 0xfde9
mov r9d, edi
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rbp + 0xa8]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], r12b
jne 0x140029c00
lea r8, [0x1402447b8]
lea rcx, [rbp + 0x1ac]
mov edx, 0x104
mov qword [rsp + 0x58], rdi
call fcn.1401b1474
mov eax, dword [rbx + 0x80]
mov dword [rsp + 0x48], eax
mov qword [rbp + 0xa0], r12
mov qword [rsp + 0x70], r12
mov dword [rbp + 0x2b0], 1
mov dword [rbp + 0x2b8], r12d
mov word [rsp + 0x7a], r12w
mov dword [rsp + 0x40], 0x140b17
mov dword [rsp + 0x4c], r12d
mov word [rsp + 0x44], r14w
mov edx, 9
cmp qword [rbx], r12
je 0x140029c79
movzx r14d, dx
mov word [rsp + 0x44], dx
mov word [rsp + 0x7c], r14w
mov word [rsp + 0x46], si
test esi, esi
jne 0x140029c9b
mov eax, dword [rbx + 0x88]
test eax, eax
js 0x140029c9b
add eax, r15d
mov dword [rsp + 0x50], eax
jmp 0x140029ca0
mov dword [rsp + 0x50], r12d
mov eax, dword [rbx + 0x88]
mov ecx, dword [rbx + 0x78]
lea r8, [rbp + 0x2d0]
mov dword [rsp + 0x54], eax
mov eax, dword [rbx + 0x70]
mov r9, rdx
mov dword [rbp - 0x80], eax
mov eax, dword [rbx + 0x20]
mov word [rsp + 0x78], r12w
add eax, dword [rbx + 0x28]
mov qword [rsp + 0x60], reloc.COMCTL32.dll_InitCommonControls
mov qword [rsp + 0x68], rdx
mov dword [rbp - 0x7c], eax
lea rax, [rbp + 0x2d0]
mov dword [rbp + 0x2d0], 0xd5455
mov qword [rbp + 0x90], rax
lea rax, [rbp + 0x2f8]
mov byte [rbp + 0x2d4], 7
mov qword [rbp + 0x98], rax
movzx eax, byte [rbx + 0x78]
mov byte [rbp + 0x2d5], al
mov eax, ecx
sar eax, 8
mov byte [rbp + 0x2d6], al
mov eax, ecx
sar ecx, 0x18
sar eax, 0x10
mov byte [rbp + 0x2d8], cl
mov ecx, dword [rbx + 0x74]
mov byte [rbp + 0x2d7], al
movzx eax, byte [rbx + 0x74]
mov byte [rbp + 0x2d9], al
mov eax, ecx
sar eax, 8
mov byte [rbp + 0x2da], al
mov eax, ecx
sar ecx, 0x18
sar eax, 0x10
mov byte [rbp + 0x2dc], cl
mov ecx, dword [rbx + 0x7c]
mov byte [rbp + 0x2db], al
movzx eax, byte [rbx + 0x7c]
mov byte [rbp + 0x2dd], al
mov eax, ecx
sar eax, 8
mov byte [rbp + 0x2de], al
mov eax, ecx
sar ecx, 0x18
mov byte [rbp + 0x2e0], cl
sar eax, 0x10
lea rcx, [rbp + 0x2f8]
mov byte [rbp + 0x2df], al
call fcn.1401aef30
mov rax, qword [rbp + 0x98]
lea rcx, [rsp + 0x40]
mov r8, rbx
mov byte [rax + 2], 5
call fcn.1400281e0
test eax, eax
je 0x140029dc2
mov rcx, rbx
call fcn.140029850
mov eax, 0x400
jmp 0x14002a148
mov ecx, dword [rsp + 0x58]
mov eax, dword [rsp + 0x60]
add ecx, 0x1e
add ecx, eax
add dword [rbx + 0x28], ecx
cmp dword [rbx + 0x24], r12d
je 0x140029de8
mov rcx, rbx
call fcn.140029850
mov eax, dword [rbx + 0x24]
jmp 0x14002a148
mov dword [rbx + 0x44], 0x12345678
mov dword [rbx + 0x48], 0x23456789
mov dword [rbx + 0x4c], 0x34567890
mov r8, qword [rbx]
mov qword [rsp + 0x640], r13
lea r13, [0x14024b6e0]
test r8, r8
je 0x140029e64
movzx eax, byte [r8]
test al, al
je 0x140029e64
mov edx, dword [rbx + 0x44]
mov ecx, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [r13 + rax*4]
xor ecx, edx
mov edx, dword [rbx + 0x4c]
movzx eax, cl
mov dword [rbx + 0x44], ecx
movzx ecx, dl
add eax, dword [rbx + 0x48]
shr edx, 8
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0x48], eax
movzx eax, byte [rbx + 0x4b]
xor rcx, rax
mov eax, dword [r13 + rcx*4]
xor eax, edx
mov dword [rbx + 0x4c], eax
inc r8
jne 0x140029e14
cmp byte [0x1402a6cd4], r12b
jne 0x140029e7c
xor ecx, ecx
call fcn.1401afc80
mov rcx, rax
call fcn.1401b1504
mov rdi, r12
nop
call fcn.1401b14d8
inc rdi
sar eax, 7
mov byte [rbp + rdi + 0x2e7], al
cmp rdi, 0xc
jl 0x140029e80
mov eax, dword [rsp + 0x48]
mov r11d, dword [rbx + 0x4c]
mov r14d, dword [rbx + 0x44]
mov r8d, dword [rbx + 0x48]
shr eax, 8
mov rdi, r12
mov byte [rbp + 0x2f3], al
nop word [rax + rax]
movsx r10, byte [rbp + rdi + 0x2e8]
mov eax, r14d
mov rcx, r14
shr eax, 8
xor rcx, r10
mov r9d, r11d
movzx edx, cl
and r9d, 0xfffd
inc rdi
mov ecx, dword [r13 + rdx*4]
or r9d, 2
movzx edx, r11b
xor ecx, eax
movzx eax, cl
mov dword [rbx + 0x44], ecx
mov r14d, ecx
add r8d, eax
mov ecx, r11d
shr ecx, 8
imul r8d, r8d, 0x8088405
inc r8d
mov dword [rbx + 0x48], r8d
movzx eax, byte [rbx + 0x4b]
xor rdx, rax
mov eax, dword [r13 + rdx*4]
xor eax, ecx
mov r11d, eax
mov dword [rbx + 0x4c], eax
mov eax, r9d
xor eax, 1
imul eax, r9d
shr eax, 8
xor al, r10b
mov byte [rbp + rdi + 0x2e7], al
cmp rdi, 0xc
jl 0x140029ec0
mov r13, qword [rsp + 0x640]
cmp qword [rbx], r12
je 0x140029f6f
lea rdx, [rbp + 0x2e8]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, rbx
call fcn.1400291d0
add dword [rbx + 0x28], 0xc
mov edi, r12d
cmp qword [rbx], rdi
setne al
mov byte [rbx + 0x41], al
cmp esi, 8
jne 0x140029f8f
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400298c0
jmp 0x140029f9b
test esi, esi
jne 0x140029f9d
mov rcx, rbx
call fcn.140029a10
mov edi, eax
mov byte [rbx + 0x41], r12b
cmp byte [rbx + 0xa0], r12b
je 0x140029fbc
mov rcx, qword [rbx + 0x98]
test rcx, rcx
je 0x140029fbc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rbx + 0xb8]
mov eax, dword [rbx + 0x24]
mov edx, dword [rbx + 0x8c]
add dword [rbx + 0x28], ecx
mov qword [rbx + 0x98], r12
mov dword [rbx + 0x88], edx
test eax, eax
jne 0x14002a148
test edi, edi
jne 0x140029db8
mov eax, dword [rbx + 0x90]
add ecx, r15d
mov dword [rsp + 0x54], edx
cmp dword [rsp + 0x50], ecx
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x4c], eax
sete r8b
cmp byte [rbx + 0x2c], r12b
je 0x14002a073
cmp qword [rbx], r12
jne 0x14002a073
movzx eax, word [rsp + 0x44]
mov word [rsp + 0x46], si
test al, 1
jne 0x14002a02e
mov ecx, 0xfff7
and ax, cx
mov word [rsp + 0x44], ax
mov edx, dword [rbp - 0x7c]
mov rcx, rbx
mov word [rsp + 0x7c], ax
sub edx, dword [rbx + 0x20]
call fcn.140029380
test al, al
je 0x14002a069
lea rcx, [rsp + 0x40]
mov r8, rbx
call fcn.1400281e0
test eax, eax
jne 0x140029db8
mov edx, dword [rbx + 0x28]
mov rcx, rbx
call fcn.140029380
test al, al
jne 0x14002a0b0
mov eax, 0x2000000
jmp 0x14002a148
cmp word [rsp + 0x46], si
jne 0x14002a083
test esi, esi
jne 0x14002a08d
test r8b, r8b
jne 0x14002a08d
mov eax, 0x4000000
jmp 0x14002a148
lea rcx, [rsp + 0x40]
mov r8, rbx
call fcn.140028560
test eax, eax
jne 0x140029db8
movzx eax, word [rsp + 0x7c]
add dword [rbx + 0x28], 0x10
mov word [rsp + 0x44], ax
mov eax, dword [rbx + 0x24]
test eax, eax
jne 0x14002a148
mov rcx, qword [rsp + 0x68]
call fcn.14002a3e4
mov rdx, qword [rsp + 0x68]
mov r8, qword [rbp + 0x98]
mov r9, rdx
mov rcx, rax
mov rdi, rax
call fcn.1401aef30
mov ecx, 0x388
mov qword [rbp + 0x98], rdi
call fcn.14002a398
mov r9d, 0x388
lea r8, [rsp + 0x40]
mov rcx, rax
mov edx, r9d
mov rdi, rax
call fcn.1401aef30
mov rcx, qword [rbx + 0x60]
test rcx, rcx
jne 0x14002a118
mov qword [rbx + 0x60], rdi
jmp 0x14002a146
lea rax, [rcx + 0x380]
cmp qword [rax], r12
je 0x14002a13f
nop word [rax + rax]
mov rcx, qword [rax]
lea rax, [rcx + 0x380]
cmp qword [rax], r12
jne 0x14002a130
mov qword [rcx + 0x380], rdi
xor eax, eax
mov r14, qword [rsp + 0x638]
mov rsi, qword [rsp + 0x688]
mov r12, qword [rsp + 0x648]
mov r15, qword [rsp + 0x630]
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.1401aef10
add rsp, 0x650
pop rdi
pop rbx
pop rbp
ret