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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x7bd684]
push ebx
inc eax
mov dword [ebp - 4], edx
mov dword [0x7bd684], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push esi
push edi
cmp eax, 1
jne 0x4a4c58
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
xor eax, 0xbb40e64e
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, esi
call fcn.004a4ba0
add esp, 4
mov dword [ebp - 8], 0
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov edx, dword [esi]
mov ecx, edx
sar eax, 7
xor ecx, eax
mov dword [ebp - 0xc], eax
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, cl
and ebx, 0xfffd
mov ecx, dword [ebp + 0x10]
or ebx, 2
shr edx, 8
xor edx, dword [ecx + eax*4]
movzx eax, dl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], edx
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
mov ecx, dword [ebp - 8]
xor eax, 1
imul eax, ebx
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0xc]
mov byte [ebp + ecx - 0x1c], al
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, 0xa
jl 0x4a4c71
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.004a4ba0
mov ecx, dword [esi]
add esp, 4
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, byte [ebp - 0x1c]
and ebx, 0xfffd
xor eax, ecx
mov esi, dword [ebp + 0x10]
movzx eax, al
or ebx, 2
shr ecx, 8
xor ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0xc]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
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
mov ecx, dword [ebp - 4]
xor eax, 1
imul eax, ebx
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0x1c]
mov byte [ecx], al
mov ecx, dword [esi]
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, byte [ebp - 0x1b]
and ebx, 0xfffd
mov esi, dword [ebp + 0x10]
xor eax, ecx
movzx eax, al
or ebx, 2
shr ecx, 8
xor ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0xc]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
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
mov ecx, dword [ebp - 4]
xor eax, 1
imul eax, ebx
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0x1b]
mov byte [ecx + 1], al
mov ecx, dword [esi]
movzx eax, byte [ebp - 0x1a]
mov edi, dword [esi + 8]
xor eax, ecx
mov esi, dword [ebp + 0x10]
mov ebx, edi
movzx eax, al
and ebx, 0xfffd
shr ecx, 8
or ebx, 2
xor ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0xc]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
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 ecx, dword [ebp - 4]
imul eax, ebx
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0x1a]
mov byte [ecx + 2], al
mov ecx, dword [esi]
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, byte [ebp - 0x19]
and ebx, 0xfffd
xor eax, ecx
mov esi, dword [ebp + 0x10]
movzx eax, al
or ebx, 2
shr ecx, 8
xor ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0xc]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
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
mov ecx, dword [ebp - 4]
xor eax, 1
imul eax, ebx
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0x19]
mov byte [ecx + 3], al
mov ecx, dword [esi]
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, byte [ebp - 0x18]
and ebx, 0xfffd
mov esi, dword [ebp + 0x10]
xor eax, ecx
movzx eax, al
or ebx, 2
shr ecx, 8
xor ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0xc]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
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 [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov byte [ecx + 4], al
mov ecx, dword [esi]
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, byte [ebp - 0x17]
and ebx, 0xfffd
xor eax, ecx
mov esi, dword [ebp + 0x10]
movzx eax, al
or ebx, 2
shr ecx, 8
xor ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0xc]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
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
mov ecx, dword [ebp - 4]
xor eax, 1
imul eax, ebx
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0x17]
mov byte [ecx + 5], al
mov ecx, dword [esi]
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, byte [ebp - 0x16]
and ebx, 0xfffd
mov esi, dword [ebp + 0x10]
xor eax, ecx
movzx eax, al
or ebx, 2
shr ecx, 8
xor ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0xc]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
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
mov ecx, dword [ebp - 4]
xor eax, 1
imul eax, ebx
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0x16]
mov byte [ecx + 6], al
mov ecx, dword [esi]
movzx eax, byte [ebp - 0x15]
mov edi, dword [esi + 8]
xor eax, ecx
mov esi, dword [ebp + 0x10]
mov ebx, edi
movzx eax, al
and ebx, 0xfffd
shr ecx, 8
or ebx, 2
xor ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0xc]
movzx eax, cl
mov dword [esi], ecx
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov ecx, dword [ebp + 0x10]
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 ecx, dword [ebp - 4]
imul eax, ebx
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0x15]
mov byte [ecx + 7], al
mov ecx, dword [esi]
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, byte [ebp - 0x14]
and ebx, 0xfffd
xor eax, ecx
mov esi, dword [ebp + 0x10]
movzx eax, al
or ebx, 2
shr ecx, 8
xor ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0xc]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
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
mov ecx, dword [ebp - 4]
xor eax, 1
imul eax, ebx
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0x14]
mov byte [ecx + 8], al
mov ecx, dword [esi]
mov edi, dword [esi + 8]
mov ebx, edi
movzx eax, byte [ebp - 0x13]
and ebx, 0xfffd
mov esi, dword [ebp + 0x10]
xor eax, ecx
movzx eax, al
or ebx, 2
shr ecx, 8
xor ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0xc]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
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
mov ecx, dword [ebp - 4]
xor eax, 1
imul eax, ebx
mov dword [esi + 8], edi
shr eax, 8
xor al, byte [ebp - 0x13]
mov byte [ecx + 9], al
mov ecx, dword [esi]
mov edi, dword [esi + 8]
mov ebx, edi
mov edx, dword [ebp + 0x14]
and ebx, 0xfffd
mov esi, dword [ebp + 0x10]
or ebx, 2
shr edx, 0x10
mov eax, edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [esi + eax*4]
mov esi, dword [ebp + 0xc]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [ebp + 0x10]
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
mov ecx, dword [ebp - 4]
xor eax, 1
imul eax, ebx
mov ebx, dword [ebp + 0x14]
mov dword [esi + 8], edi
shr ebx, 0x18
mov dword [ebp + 0x14], ebx
shr eax, 8
xor al, dl
mov byte [ecx + 0xa], al
mov eax, ebx
mov ecx, dword [esi]
xor eax, ecx
mov ebx, dword [ebp + 0x10]
mov edx, dword [esi + 8]
mov edi, edx
movzx eax, al
and edi, 0xfffd
shr ecx, 8
or edi, 2
xor ecx, dword [ebx + eax*4]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, ebx
mov ebx, dword [ebp + 0x14]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [ecx + eax*4]
mov eax, edi
mov ecx, dword [ebp - 4]
xor eax, 1
imul eax, edi
pop edi
mov dword [esi + 8], edx
pop esi
shr eax, 8
xor al, bl
mov byte [ecx + 0xb], al
mov eax, 0xc
pop ebx
mov esp, ebp
pop ebp
ret