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

Disassembly:
sub esp, 0x20
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x2c], 0xc
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edi
jge 0x5c2678
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0059bb21
add esp, 0x20
ret
mov eax, dword [0x8a9e44]
inc eax
mov dword [0x8a9e44], eax
cmp eax, 1
jne 0x5c269d
push 0
call fcn.005cf8ad
xor eax, 0xbb40e64e
push eax
call fcn.005a6202
add esp, 8
push ebp
push edi
push esi
push ebx
call fcn.005c2bb0
add esp, 0xc
xor ebp, ebp
nop dword [eax + eax]
call fcn.005a61e1
mov edx, dword [esi]
mov ecx, edx
sar eax, 7
xor ecx, eax
mov dword [esp + 0x18], eax
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, cl
and ebx, 0xfffd
mov ecx, dword [esp + 0x14]
or ebx, 2
shr edx, 8
mov eax, dword [ecx + eax*4]
xor eax, edx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ecx + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
shr eax, 8
xor al, byte [esp + 0x18]
mov byte [esp + ebp + 0x20], al
inc ebp
cmp ebp, 0xa
jl 0x5c26b0
mov ebp, ecx
push ebp
push esi
push dword [esp + 0x24]
call fcn.005c2bb0
mov ecx, dword [esi]
add esp, 0xc
movzx eax, byte [esp + 0x20]
xor eax, ecx
mov edi, dword [esi + 8]
movzx eax, al
mov ebx, edi
shr ecx, 8
and ebx, 0xfffd
or ebx, 2
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ebp + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
shr eax, 8
xor al, byte [esp + 0x20]
mov byte [ecx], al
mov ecx, dword [esi]
movzx eax, byte [esp + 0x21]
xor eax, ecx
mov edi, dword [esi + 8]
movzx eax, al
mov ebx, edi
shr ecx, 8
and ebx, 0xfffd
or ebx, 2
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ebp + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
shr eax, 8
xor al, byte [esp + 0x21]
mov byte [ecx + 1], al
mov ecx, dword [esi]
movzx eax, byte [esp + 0x22]
mov edi, dword [esi + 8]
xor eax, ecx
movzx eax, al
mov ebx, edi
shr ecx, 8
and ebx, 0xfffd
or ebx, 2
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ebp + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
shr eax, 8
xor al, byte [esp + 0x22]
mov byte [ecx + 2], al
mov ecx, dword [esi]
movzx eax, byte [esp + 0x23]
xor eax, ecx
mov edi, dword [esi + 8]
movzx eax, al
mov ebx, edi
shr ecx, 8
and ebx, 0xfffd
or ebx, 2
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ebp + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
shr eax, 8
xor al, byte [esp + 0x23]
mov byte [ecx + 3], al
mov ecx, dword [esi]
movzx eax, byte [esp + 0x24]
xor eax, ecx
mov edi, dword [esi + 8]
movzx eax, al
mov ebx, edi
shr ecx, 8
and ebx, 0xfffd
or ebx, 2
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ebp + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
shr eax, 8
xor al, byte [esp + 0x24]
mov byte [ecx + 4], al
mov edi, dword [esi + 8]
mov ebx, edi
mov ecx, dword [esi]
and ebx, 0xfffd
movzx eax, byte [esp + 0x25]
or ebx, 2
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ebp + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
shr eax, 8
xor al, byte [esp + 0x25]
mov byte [ecx + 5], al
mov ecx, dword [esi]
movzx eax, byte [esp + 0x26]
xor eax, ecx
mov edi, dword [esi + 8]
movzx eax, al
mov ebx, edi
shr ecx, 8
and ebx, 0xfffd
or ebx, 2
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ebp + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
shr eax, 8
xor al, byte [esp + 0x26]
mov byte [ecx + 6], al
mov ecx, dword [esi]
movzx eax, byte [esp + 0x27]
xor eax, ecx
mov edi, dword [esi + 8]
movzx eax, al
mov ebx, edi
shr ecx, 8
and ebx, 0xfffd
or ebx, 2
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ebp + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
shr eax, 8
xor al, byte [esp + 0x27]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
shr edx, 0x10
mov byte [ecx + 7], al
mov ecx, dword [esi]
movzx eax, byte [esp + 0x28]
xor eax, ecx
mov edi, dword [esi + 8]
movzx eax, al
mov ebx, edi
shr ecx, 8
and ebx, 0xfffd
or ebx, 2
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ebp + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
shr eax, 8
xor al, byte [esp + 0x28]
mov byte [ecx + 8], al
mov ecx, dword [esi]
movzx eax, byte [esp + 0x29]
xor eax, ecx
mov edi, dword [esi + 8]
movzx eax, al
mov ebx, edi
shr ecx, 8
and ebx, 0xfffd
or ebx, 2
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [ebp + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
shr eax, 8
xor al, byte [esp + 0x29]
mov byte [ecx + 9], al
mov eax, edx
mov ecx, dword [esi]
xor eax, ecx
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, al
and ebx, 0xfffd
shr ecx, 8
or ebx, 2
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edi
mov ecx, dword [esp + 0x10]
movzx eax, al
shr edi, 8
xor edi, dword [ebp + eax*4]
mov eax, ebx
xor eax, 1
mov dword [esi + 8], edi
imul eax, ebx
mov ebx, dword [esp + 0x48]
shr ebx, 0x18
shr eax, 8
xor al, dl
mov byte [ecx + 0xa], al
mov eax, ebx
mov ecx, dword [esi]
xor eax, ecx
movzx eax, al
mov edx, dword [esi + 8]
mov edi, edx
shr ecx, 8
and edi, 0xfffd
or edi, 2
mov eax, dword [ebp + eax*4]
xor eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esi], eax
movzx eax, al
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [ebp + eax*4]
mov eax, edi
xor eax, 1
mov dword [esi + 8], edx
imul eax, edi
pop ebp
pop edi
pop esi
shr eax, 8
xor al, bl
mov byte [ecx + 0xb], al
mov eax, 0xc
mov ecx, dword [esp + 0x20]
pop ebx
xor ecx, esp
call fcn.0059bb21
add esp, 0x20
ret