Function at 0x140029410
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0xa8], xmm0
mov rdi, rdx
mov rbx, rcx
movups xmmword [rcx + 0xb8], xmm0
mov edx, 0x4000
movups xmmword [rcx + 0xc8], xmm0
movups xmmword [rcx + 0xd8], xmm0
movups xmmword [rcx + 0xe8], xmm0
movups xmmword [rcx + 0xf8], xmm0
movups xmmword [rcx + 0x108], xmm0
mov qword [rcx + 0x118], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0xa8], rax
test rax, rax
je 0x140029797
cmp word [rbx + 0x66], 0
je 0x14002955e
mov edx, 0x78
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0xe0], rax
test rax, rax
je 0x140029797
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov edx, 0x2d00
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x70], rcx
mov rax, qword [rbx + 0xe0]
mov dword [rax + 8], reloc.WSOCK32.dll_ntohs
mov rax, qword [rbx + 0xe0]
mov byte [rax + 0x70], 7
mov rax, qword [rbx + 0xe0]
mov byte [rax + 0x6c], cl
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rbx + 0xe0]
mov qword [rcx + 0x40], rax
test rax, rax
je 0x140029797
mov edx, 0x8000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rbx + 0xe0]
mov qword [rcx + 0x48], rax
test rax, rax
je 0x140029797
mov rcx, qword [rbx + 0xe0]
mov rax, qword [rcx + 0x48]
add rax, 0x8000
mov qword [rcx + 0x50], rax
mov rcx, qword [rbx + 0xe0]
mov rax, qword [rcx + 0x48]
mov qword [rcx + 0x60], rax
mov rcx, qword [rbx + 0xe0]
mov rax, qword [rcx + 0x60]
mov qword [rcx + 0x58], rax
mov ecx, dword [rbx]
test cl, 8
je 0x140029587
mov eax, dword [rdi + 0x28]
mov dword [rbx + 0x70], eax
mov eax, dword [rdi + 0x30]
mov dword [rbx + 0x74], eax
mov rax, qword [rdi + 0x28]
mov qword [rbx + 0x8a], rax
mov rax, qword [rdi + 0x30]
mov qword [rbx + 0x92], rax
mov rax, qword [rbx + 0x8a]
movzx edx, word [rbx + 0x64]
mov qword [rbx + 0xf0], rax
mov rax, qword [rbx + 0x92]
mov qword [rbx + 0xf8], rax
test dl, 8
je 0x1400295b2
movzx eax, byte [rbx + 0x69]
jmp 0x1400295b6
movzx eax, byte [rbx + 0x6f]
mov byte [rbx + 0x118], al
mov ebp, 7
test cl, 4
je 0x1400295d2
mov rax, qword [rbx + 0x9a]
jmp 0x14002975e
test dl, 1
je 0x14002968b
mov r9, qword [rbx + 0x50]
mov qword [rbx + 0x110], reloc.WSOCK32.dll_ioctlsocket
mov dword [rbx + 0x100], 0x12345678
mov dword [rbx + 0x104], 0x23456789
mov dword [rbx + 0x108], 0x34567890
test r9, r9
je 0x14002968b
movzx eax, byte [r9]
test al, al
je 0x14002968b
mov r10d, dword [rbx + 0x104]
lea r11, [0x1400fccc0]
mov r8d, dword [rbx + 0x108]
nop word [rax + rax]
mov edx, dword [rbx + 0x100]
lea r9, [r9 + 1]
mov ecx, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, r8b
shr r8d, 8
xor edx, dword [r11 + rax*4]
movzx eax, dl
add eax, r10d
mov dword [rbx + 0x100], edx
imul r10d, eax, 0x8088405
inc r10d
mov eax, r10d
mov dword [rbx + 0x104], r10d
shr rax, 0x18
xor rcx, rax
xor r8d, dword [r11 + rcx*4]
mov dword [rbx + 0x108], r8d
movzx eax, byte [r9]
test al, al
jne 0x140029630
mov r8, qword [rbx + 0x9a]
mov ecx, dword [rbx + 0x34]
add r8, 0x1c
add r8, rcx
test byte [rbx], 1
jne 0x1400296c8
mov edx, dword [rbx + 0x14]
xor r9d, r9d
mov rcx, qword [rbx + 8]
add rdx, r8
lea r8, [rsp + 0x60]
mov qword [rsp + 0x60], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002979c
jmp 0x1400296cc
mov qword [rbx + 0x20], r8
test byte [rbx], 1
mov esi, 2
jne 0x140029703
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x60]
xor edi, edi
lea rdx, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400296fd
mov dword [rbx + 0x10], ebp
jmp 0x140029743
mov edi, dword [rsp + 0x60]
jmp 0x140029743
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x58], r14
mov r14, qword [rbx + 0x20]
lea rax, [r14 + 2]
cmp rax, rcx
jbe 0x14002971e
mov esi, ecx
sub esi, r14d
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x50]
add rdx, r14
mov r8d, esi
mov edi, esi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rdi + r14]
mov r14, qword [rsp + 0x58]
mov qword [rbx + 0x20], rax
mov edi, esi
test edi, edi
je 0x14002979c
movzx ecx, word [rbx + 0x78]
movzx eax, word [rsp + 0x50]
add rcx, qword [rbx + 0x9a]
add rax, 0x1e
add rax, rcx
test byte [rbx], 1
jne 0x140029786
mov edx, dword [rbx + 0x14]
lea r8, [rsp + 0x50]
mov rcx, qword [rbx + 8]
add rdx, rax
xor r9d, r9d
mov qword [rsp + 0x50], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1400297a7
jmp 0x14002979c
mov qword [rbx + 0x20], rax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov ebp, 2
mov rcx, rbx
mov dword [rbx + 0x10], ebp
call fcn.1400292b0
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret