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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0xf8]
xor r12d, r12d
cmp r8, rax
mov qword [rcx + 0xc8], rdx
mov rbx, rcx
cmova r8, rax
mov qword [rcx + 0xd0], r8
test r8, r8
je 0x140029a5e
lea r13, [0x1400fccc0]
nop
cmp qword [rbx + 0xb8], 0
jne 0x140029918
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x140029918
mov rdx, qword [rbx + 0xa8]
mov edi, 0x4000
cmp rax, rdi
mov rcx, rbx
cmovb rdi, rax
mov r8d, edi
call fcn.140028a80
test eax, eax
je 0x140029a7e
sub qword [rbx + 0xf0], rdi
test byte [rbx + 0x64], 1
mov r8, qword [rbx + 0xa8]
mov qword [rbx + 0xb0], r8
mov qword [rbx + 0xb8], rdi
je 0x140029918
xor r9d, r9d
test rdi, rdi
je 0x140029918
xor r10d, r10d
nop dword [rax]
mov ecx, dword [rbx + 0x108]
inc r9d
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [r10 + r8], al
mov edx, dword [rbx + 0x100]
mov r8, qword [rbx + 0xa8]
movsx rax, byte [r10 + r8]
xor rax, rdx
mov r10d, r9d
movzx ecx, al
shr edx, 8
xor edx, dword [r13 + rcx*4]
movzx eax, dl
add eax, dword [rbx + 0x104]
imul eax, eax, 0x8088405
mov dword [rbx + 0x100], edx
mov edx, dword [rbx + 0x108]
movzx ecx, dl
shr edx, 8
inc eax
mov dword [rbx + 0x104], eax
shr rax, 0x18
xor rcx, rax
xor edx, dword [r13 + rcx*4]
mov dword [rbx + 0x108], edx
cmp r10, rdi
jb 0x140029890
mov r9, qword [rbx + 0x110]
mov rdx, qword [rbx + 0xb8]
cmp r9, rdx
mov r8, rdx
cmovbe r8, r9
test r8, r8
je 0x14002996c
mov rcx, qword [rbx + 0xb0]
sub rdx, r8
add rcx, r8
sub r9, r8
movzx eax, byte [rcx - 1]
mov qword [rbx + 0xb8], rdx
mov qword [rbx + 0xb0], rcx
mov qword [rbx + 0x110], r9
jne 0x14002996c
cmp al, byte [rbx + 0x118]
jne 0x140029a89
cmp word [rbx + 0x66], 0
mov r15, qword [rbx + 0xc8]
jne 0x1400299f3
mov rbp, qword [rbx + 0xd0]
mov rcx, r15
cmp rbp, rdx
cmovae rbp, rdx
mov rdx, qword [rbx + 0xb0]
mov r8d, ebp
call sub.VCRUNTIME140.dll_memcpy
mov rsi, qword [rbx + 0xc8]
mov r8d, ebp
mov ecx, dword [rbx + 0xe8]
mov rdx, rsi
call fcn.140028580
sub qword [rbx + 0xf8], rbp
add r12, rbp
sub qword [rbx + 0xb8], rbp
sub qword [rbx + 0xd0], rbp
add qword [rbx + 0xb0], rbp
add qword [rbx + 0xd8], rbp
cmp qword [rbx + 0xf8], 0
mov dword [rbx + 0xe8], eax
lea rax, [rsi + rbp]
mov qword [rbx + 0xc8], rax
jmp 0x140029a4e
mov rbp, qword [rbx + 0xd8]
lea rcx, [rbx + 0xb0]
call fcn.140028690
mov esi, eax
cmp eax, 1
ja 0x140029a94
mov rdi, qword [rbx + 0xd8]
mov rdx, r15
mov ecx, dword [rbx + 0xe8]
sub rdi, rbp
mov r8d, edi
call fcn.140028580
mov dword [rbx + 0xe8], eax
add r12, rdi
mov rax, qword [rbx + 0xf8]
sub rax, rdi
mov qword [rbx + 0xf8], rax
cmp esi, 1
je 0x140029a5e
test rax, rax
je 0x140029a5e
cmp qword [rbx + 0xd0], 0
jne 0x140029810
mov rax, r12
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [rbx + 0x10], 7
xor eax, eax
jmp 0x140029a61
mov dword [rbx + 0x10], reloc.WSOCK32.dll_send
xor eax, eax
jmp 0x140029a61
mov dword [rbx + 0x10], reloc.OLEAUT32.dll_SafeArrayGetUBound
xor eax, eax
jmp 0x140029a61