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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x1c], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], eax
call fcn.005511b0
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x12345678
mov dword [esi + 0x14], 0x23456789
mov dword [esi + 0x18], 0x34567890
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4e0036
xor ebx, ebx
mov dword [ebp - 0x14], ebx
test eax, eax
jle 0x4dfed6
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
nop dword [eax + eax]
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax + ebx]
mov ebx, dword [esi + 0xc]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [ebx + eax*4]
movzx eax, cl
add edx, eax
mov dword [esi + 0x10], ecx
imul edx, edx, 0x8088405
inc edx
mov eax, edx
mov dword [esi + 0x14], edx
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ebx + eax*4]
mov ebx, dword [ebp - 0x14]
inc ebx
mov dword [esi + 0x18], edi
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp - 0x20]
jl 0x4dfe90
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xc
jb 0x4e0036
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov dword [ebp - 8], eax
mov eax, edx
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x14], 0
nop dword [eax + eax]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 0x14]
shr ecx, 8
xor cl, byte [ebp + eax - 0x10]
movzx eax, cl
xor eax, ebx
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0xc]
movzx eax, al
shr ebx, 8
xor ebx, dword [ecx + eax*4]
movzx eax, bl
add edi, eax
mov dword [esi + 0x10], ebx
imul edi, edi, 0x8088405
inc edi
mov eax, edi
mov dword [esi + 0x14], edi
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x18], edx
mov byte [ebp + eax - 0x10], cl
inc eax
mov dword [ebp - 0x14], eax
mov eax, edx
cmp dword [ebp - 0x14], 0xc
jl 0x4dff10
mov eax, dword [ebp + 0x14]
shr eax, 0x18
cmp byte [ebp - 5], al
jne 0x4e0036
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
sub eax, 0xc
push eax
call fcn.0055278b
mov edi, 0xc
mov dword [ebp - 0x14], eax
add esp, 4
cmp dword [ebx], edi
jbe 0x4e0009
movzx eax, word [esi + 0x18]
or eax, 2
mov ecx, dword [esi + 0x10]
mov ebx, eax
mov edx, dword [esi + 0xc]
xor ebx, 1
imul ebx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
shr ebx, 8
xor bl, byte [edi + eax]
movzx eax, bl
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
movzx eax, cl
add eax, dword [esi + 0x14]
imul eax, eax, 0x8088405
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x18]
inc eax
mov dword [esi + 0x14], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x18], ecx
mov byte [eax + edi - 0xc], bl
inc edi
mov ebx, dword [ebp - 0x18]
cmp edi, dword [ebx]
jb 0x4dffa5
mov esi, dword [ebp - 0x1c]
push dword [esi]
call fcn.00552794
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [esi], eax
mov eax, 1
add dword [ebx], 0xfffffff4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551e44
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00551e44
mov esp, ebp
pop ebp
ret 0x10