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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
xor edx, edx
add rcx, 0xa8
lea r8d, [rdx + 0x78]
call fcn.1400d8190
mov edx, 0x4000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0xa8], rax
test rax, rax
je 0x140025ef5
cmp word [rbx + 0x66], 0
je 0x140025d23
mov edx, 0x78
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0xe0], rax
test rax, rax
je 0x140025ef5
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x78]
call fcn.1400d8190
mov rax, qword [rbx + 0xe0]
mov edx, 0x2d00
xor ecx, ecx
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], 0
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rbx + 0xe0]
mov qword [rcx + 0x40], rax
test rax, rax
je 0x140025ef5
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 0x140025ef5
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
test byte [rbx], 8
je 0x140025d4c
mov eax, dword [rsi + 0x28]
mov dword [rbx + 0x70], eax
mov eax, dword [rsi + 0x30]
mov dword [rbx + 0x74], eax
mov rax, qword [rsi + 0x28]
mov qword [rbx + 0x8a], rax
mov rcx, qword [rsi + 0x30]
mov qword [rbx + 0x92], rcx
jmp 0x140025d5a
mov rax, qword [rbx + 0x8a]
mov rcx, qword [rbx + 0x92]
test byte [rbx + 0x64], 8
mov qword [rbx + 0xf0], rax
mov qword [rbx + 0xf8], rcx
je 0x140025d74
movzx eax, byte [rbx + 0x69]
jmp 0x140025d78
movzx eax, byte [rbx + 0x6f]
mov byte [rbx + 0x118], al
mov ecx, dword [rbx]
test cl, 4
je 0x140025d91
mov rax, qword [rbx + 0x9a]
jmp 0x140025eb4
test byte [rbx + 0x64], 1
je 0x140025e3f
mov qword [rbx + 0x110], reloc.WSOCK32.dll_ioctlsocket
mov dword [rbx + 0x100], 0x12345678
mov dword [rbx + 0x104], 0x23456789
mov dword [rbx + 0x108], 0x34567890
mov r8, qword [rbx + 0x50]
test r8, r8
je 0x140025e3f
movzx eax, byte [r8]
test al, al
je 0x140025e3f
lea r9, [0x140106a60]
nop dword [rax]
mov edx, dword [rbx + 0x100]
lea r8, [r8 + 1]
mov ecx, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [r9 + rax*4]
xor ecx, edx
movzx eax, cl
add eax, dword [rbx + 0x104]
imul edx, eax, 0x8088405
mov dword [rbx + 0x100], ecx
mov ecx, dword [rbx + 0x108]
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0x104], edx
shr rdx, 0x18
xor rax, rdx
mov eax, dword [r9 + rax*4]
xor eax, ecx
mov dword [rbx + 0x108], eax
movzx eax, byte [r8]
test al, al
jne 0x140025de0
mov r8, qword [rbx + 0x9a]
mov ecx, dword [rbx + 0x34]
add r8, 0x1c
add r8, rcx
test byte [rbx], 1
jne 0x140025e7d
mov edx, dword [rbx + 0x14]
xor r9d, r9d
mov rcx, qword [rbx + 8]
add rdx, r8
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140025e81
mov eax, 7
jmp 0x140025efa
mov qword [rbx + 0x20], r8
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140025170
test eax, eax
je 0x140025e76
movzx eax, word [rsp + 0x30]
movzx ecx, word [rbx + 0x78]
add rcx, rax
mov rax, qword [rbx + 0x9a]
add rax, 0x1e
add rax, rcx
mov ecx, dword [rbx]
test cl, 1
jne 0x140025ee1
mov edx, dword [rbx + 0x14]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 8]
add rdx, rax
xor r9d, r9d
mov qword [rsp + 0x30], rdx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140025f05
mov eax, 7
jmp 0x140025efa
mov qword [rbx + 0x20], rax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov eax, 2
mov rcx, rbx
mov dword [rbx + 0x10], eax
call fcn.140025ab0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret