Function at 0x48e140
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
jl 0x48e4f8
mov eax, dword [ebp + 0x10]
push esi
push edi
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.0048dd90
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], 0
call fcn.00502ef3
sar eax, 7
mov cl, al
mov eax, dword [ebx + 4]
movzx edx, cl
mov ecx, dword [ebp - 0x14]
xor edx, ecx
shr ecx, 8
and edx, 0xff
xor ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
movzx ecx, cl
add ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [ebp - 0x10], ecx
shr ecx, 0x18
xor ecx, edi
and ecx, 0xff
shr edi, 8
xor edi, dword [eax + ecx*4]
mov eax, edi
or eax, 2
movzx eax, ax
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 8]
sar ecx, 8
mov byte [eax + esi], cl
inc eax
mov dword [ebp - 8], eax
cmp eax, 0xa
jl 0x48e174
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
mov dword [ebp - 0xc], edi
call fcn.0048dd90
sub dword [ebp + 0xc], 0xa
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], 2
jmp 0x48e206
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 4]
mov ecx, edi
or ecx, 2
movzx ecx, cx
mov dword [ebp + 0x10], ecx
movzx ecx, byte [esi]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ebx + ecx*4]
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
xor edi, dword [ebx + edx*4]
movzx edx, word [ebp + 0x10]
mov ebx, edx
xor ebx, 1
imul ebx, edx
sar ebx, 8
xor bl, byte [esi]
mov edx, edi
or edx, 2
movzx edx, dx
mov dword [ebp + 0x10], edx
movzx edx, byte [esi + 1]
mov byte [esi], bl
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 4]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [ebx + edx*4]
movzx edx, al
add edx, ecx
imul edx, edx, 0x8088405
inc edx
mov ecx, edx
shr ecx, 0x18
xor ecx, edi
and ecx, 0xff
shr edi, 8
xor edi, dword [ebx + ecx*4]
movzx ecx, word [ebp + 0x10]
mov ebx, ecx
xor ebx, 1
imul ebx, ecx
mov ecx, edi
or ecx, 2
movzx ecx, cx
sar ebx, 8
xor bl, byte [esi + 1]
mov dword [ebp + 0x10], ecx
movzx ecx, byte [esi + 2]
mov byte [esi + 1], bl
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 4]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ebx + ecx*4]
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
xor edi, dword [ebx + edx*4]
movzx edx, word [ebp + 0x10]
mov ebx, edx
xor ebx, 1
imul ebx, edx
sar ebx, 8
xor bl, byte [esi + 2]
mov edx, edi
mov byte [esi + 2], bl
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 4]
or edx, 2
movzx edx, dx
mov dword [ebp + 0x10], edx
movzx edx, byte [esi + 3]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [ebx + edx*4]
add esi, 5
movzx edx, al
add edx, ecx
imul edx, edx, 0x8088405
inc edx
mov ecx, edx
shr ecx, 0x18
xor ecx, edi
and ecx, 0xff
shr edi, 8
xor edi, dword [ebx + ecx*4]
movzx ecx, word [ebp + 0x10]
mov ebx, ecx
xor ebx, 1
imul ebx, ecx
sar ebx, 8
xor bl, byte [esi - 2]
mov ecx, edi
mov byte [esi - 2], bl
movzx ebx, byte [esi - 1]
xor ebx, eax
or ecx, 2
and ebx, 0xff
movzx ecx, cx
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
shr eax, 8
xor eax, dword [ecx + ebx*4]
movzx ebx, al
add edx, ebx
imul edx, edx, 0x8088405
inc edx
mov ebx, edx
shr ebx, 0x18
xor ebx, edi
and ebx, 0xff
shr edi, 8
xor edi, dword [ecx + ebx*4]
movzx ecx, word [ebp + 0x10]
mov ebx, ecx
xor ebx, 1
imul ebx, ecx
sar ebx, 8
xor bl, byte [esi - 1]
dec dword [ebp + 8]
mov byte [esi - 1], bl
jne 0x48e203
mov ecx, dword [ebp + 0x14]
shr ecx, 0x10
mov byte [esi], cl
mov dword [ebp + 8], ecx
movzx ecx, cl
xor ecx, eax
mov ebx, edi
or ebx, 2
movzx ebx, bx
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 4]
and ecx, 0xff
shr eax, 8
xor eax, dword [ebx + ecx*4]
add esi, 2
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
xor edi, dword [ebx + edx*4]
movzx edx, word [ebp + 0x10]
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [ebp + 0x14]
sar ebx, 8
xor bl, byte [ebp + 8]
shr edx, 0x18
mov byte [esi - 2], bl
mov byte [esi - 1], dl
mov ebx, edi
or ebx, 2
movzx ebx, bx
mov dword [ebp + 0x14], edx
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + 4]
movzx edx, dl
xor edx, eax
shr eax, 8
and edx, 0xff
xor eax, dword [ebx + edx*4]
mov edx, eax
movzx eax, dl
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
shr ecx, 0x18
xor ecx, edi
and ecx, 0xff
shr edi, 8
xor edi, dword [ebx + ecx*4]
movzx ecx, word [ebp + 0x10]
mov ebx, ecx
xor ebx, 1
imul ebx, ecx
mov ecx, dword [ebp + 0xc]
sar ebx, 8
xor bl, byte [ebp + 0x14]
sub ecx, 2
mov byte [esi - 1], bl
mov dword [ebp + 0xc], ecx
test ecx, ecx
jle 0x48e4f6
movzx ebx, byte [esi]
xor ebx, edx
mov ecx, edi
or ecx, 2
movzx ecx, cx
and ebx, 0xff
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
shr edx, 8
xor edx, dword [ecx + ebx*4]
inc esi
movzx ebx, dl
add eax, ebx
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
xor ebx, edi
and ebx, 0xff
shr edi, 8
xor edi, dword [ecx + ebx*4]
movzx ecx, word [ebp + 0x10]
mov ebx, ecx
xor ebx, 1
imul ebx, ecx
mov ecx, dword [ebp + 0xc]
sar ebx, 8
xor bl, byte [esi - 1]
dec ecx
mov byte [esi - 1], bl
mov dword [ebp + 0xc], ecx
test ecx, ecx
jg 0x48e494
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10