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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, 0xc
mov esi, ecx
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], edi
jl 0x48e131
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0048dd90
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, edx
and eax, 0xff
sub dword [ebp + 0xc], edi
mov edi, dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], 2
push ebx
jmp 0x48dee0
mov esi, ecx
or esi, 2
movzx esi, si
mov ebx, esi
xor ebx, 1
imul ebx, esi
movzx esi, byte [edi]
sar ebx, 8
movzx ebx, bl
xor ebx, esi
xor ebx, dword [ebp + 0x10]
mov esi, edx
shr esi, 8
xor esi, dword [eax + ebx*4]
mov edx, esi
and edx, 0xff
mov dword [ebp + 0x10], edx
add edx, dword [ebp - 0x10]
shr esi, 8
imul edx, edx, 0x8088405
inc edx
mov dword [ebp - 0x10], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [eax + edx*4]
mov edx, ecx
or edx, 2
movzx edx, dx
mov ebx, edx
xor ebx, 1
imul ebx, edx
sar ebx, 8
movzx edx, bl
movzx ebx, byte [edi + 1]
xor edx, ebx
xor edx, dword [ebp + 0x10]
xor esi, dword [eax + edx*4]
mov edx, esi
and edx, 0xff
mov dword [ebp + 0x10], edx
add edx, dword [ebp - 0x10]
shr esi, 8
imul edx, edx, 0x8088405
inc edx
mov dword [ebp - 0x10], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [eax + edx*4]
mov edx, ecx
or edx, 2
movzx edx, dx
mov ebx, edx
xor ebx, 1
imul ebx, edx
sar ebx, 8
movzx edx, bl
movzx ebx, byte [edi + 2]
xor edx, ebx
xor edx, dword [ebp + 0x10]
xor esi, dword [eax + edx*4]
mov edx, esi
and edx, 0xff
mov dword [ebp + 0x10], edx
add edx, dword [ebp - 0x10]
imul edx, edx, 0x8088405
inc edx
mov dword [ebp - 0x10], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [eax + edx*4]
mov edx, ecx
or edx, 2
movzx edx, dx
mov ebx, edx
xor ebx, 1
imul ebx, edx
sar ebx, 8
movzx edx, bl
movzx ebx, byte [edi + 3]
xor edx, ebx
xor edx, dword [ebp + 0x10]
shr esi, 8
xor esi, dword [eax + edx*4]
add edi, 6
mov edx, esi
and edx, 0xff
mov dword [ebp + 0x10], edx
add edx, dword [ebp - 0x10]
shr esi, 8
imul edx, edx, 0x8088405
inc edx
mov dword [ebp - 0x10], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [eax + edx*4]
mov edx, ecx
or edx, 2
movzx edx, dx
mov ebx, edx
xor ebx, 1
imul ebx, edx
sar ebx, 8
movzx edx, bl
movzx ebx, byte [edi - 2]
xor edx, ebx
xor edx, dword [ebp + 0x10]
xor esi, dword [eax + edx*4]
mov edx, esi
and edx, 0xff
mov dword [ebp + 0x10], edx
add edx, dword [ebp - 0x10]
shr esi, 8
imul edx, edx, 0x8088405
inc edx
mov dword [ebp - 0x10], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [eax + edx*4]
mov edx, ecx
or edx, 2
movzx edx, dx
mov ebx, edx
xor ebx, 1
imul ebx, edx
sar ebx, 8
movzx edx, bl
movzx ebx, byte [edi - 1]
xor edx, ebx
xor edx, dword [ebp + 0x10]
xor esi, dword [eax + edx*4]
mov edx, esi
and esi, 0xff
mov dword [ebp + 0x10], esi
add esi, dword [ebp - 0x10]
imul esi, esi, 0x8088405
inc esi
mov ebx, esi
shr ebx, 0x18
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [eax + ebx*4]
dec dword [ebp - 4]
mov dword [ebp - 0x10], esi
jne 0x48dee0
cmp dword [ebp + 0xc], 0
jle 0x48e130
lea esp, [esp]
mov eax, ecx
or eax, 2
movzx eax, ax
mov ebx, eax
xor ebx, 1
imul ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
sar ebx, 8
xor bl, byte [edi]
inc edi
mov byte [ebp + 0x13], bl
movzx ebx, bl
xor ebx, edx
and ebx, 0xff
shr edx, 8
xor edx, dword [eax + ebx*4]
movzx ebx, dl
add esi, ebx
imul esi, esi, 0x8088405
inc esi
mov ebx, esi
shr ebx, 0x18
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [eax + ebx*4]
mov al, byte [ebp + 0x13]
mov byte [edi - 0xd], al
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0xc], eax
test eax, eax
jg 0x48e0d0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc