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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov ecx, dword [ebp + 8]
mov eax, dword [0x53c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor esi, esi
dec esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov ebx, 0xffffff9a
test ecx, ecx
je 0x4aa2bb
mov eax, dword [ecx + 0x60]
or eax, dword [ecx + 0x64]
je 0x4aa2bb
cmp dword [ecx + 0xe0], 0
mov ebx, ecx
je 0x4aa130
push ebx
call fcn.004a9785
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [ebx + 0x48]
add eax, dword [ebx + 0xd8]
mov ecx, dword [ebx + 0x4c]
adc ecx, dword [ebx + 0xdc]
push 0
push ecx
push eax
push dword [ebx + 0x30]
push ebx
call fcn.004c3e5a
add esp, 0x14
test eax, eax
jne 0x4aa2b6
mov edx, dword [ebx + 0x30]
lea edi, [ebp - 0x20]
mov ecx, ebx
push edi
call fcn.004aaad2
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov dword [ebp - 0x34], eax
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.004aad44
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004aad44
add esp, 4
mov edi, eax
mov edx, dword [ebx + 0x30]
mov ecx, ebx
lea eax, [ebp - 0x24]
push eax
call fcn.004aad44
add esp, 4
mov edx, esi
test eax, eax
je 0x4aa2cf
mov dword [ebp - 0x34], edx
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x30]
mov ecx, edi
lea ebx, [ebp - 0x24]
push ebx
call fcn.004aaad2
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [edi + 0x30]
mov ecx, edi
push ebx
call fcn.004aaad2
add esp, 4
mov ebx, esi
test eax, eax
jne 0x4aa21c
xor ebx, ebx
neg dword [ebp - 0x38]
sbb ebx, ebx
or ebx, dword [ebp - 0x34]
jne 0x4aa21c
mov eax, dword [ebp - 0x24]
mov ebx, 0
cmp eax, dword [edi + 0x94]
je 0x4aa21c
xor eax, eax
test byte [ebp - 0x28], 8
mov ebx, 0xffffff99
cmovne ebx, eax
mov edx, dword [edi + 0x30]
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call fcn.004aaad2
add esp, 4
mov ecx, esi
test eax, eax
je 0x4aa336
mov dword [ebp - 0x34], ecx
mov edx, dword [edi + 0x30]
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call fcn.004aaad2
add esp, 4
mov ebx, esi
test eax, eax
je 0x4aa376
mov edx, dword [edi + 0x30]
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004aad44
add esp, 4
test eax, eax
jne 0x4aa283
mov esi, ebx
test ebx, ebx
jne 0x4aa283
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp eax, dword [edi + 0xa8]
mov esi, 0xffffff99
cmove esi, ecx
mov ebx, dword [ebp - 0x2c]
mov edx, dword [edi + 0x30]
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.004aad44
add esp, 4
mov ecx, dword [edi + 0xdc]
mov edi, dword [edi + 0xd8]
add edi, ebx
adc ecx, 0
add edi, 0x1e
adc ecx, 0
test eax, eax
je 0x4aa3b9
mov ebx, 0xffffff99
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e96e3
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
or edi, dword [ebp - 0x3c]
xor eax, eax
mov ebx, dword [ebp - 0x34]
cmp ebx, 0x4034b50
mov ecx, 0xffffff99
cmove ecx, eax
xor edx, edx
dec edx
or edi, dword [ebp - 0x38]
cmove edx, ecx
jne 0x4aa1c4
cmp ebx, 0x4034b50
jne 0x4aa1c4
mov eax, dword [ebp - 0x24]
mov edx, 0xffffff99
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x8c]
jne 0x4aa1c4
cmp eax, 0xc
ja 0x4aa32c
xor edx, edx
mov ecx, 0x1101
bt ecx, eax
jb 0x4aa1c4
mov edx, 0xffffff99
jmp 0x4aa1c4
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x4aa461
mov ecx, ebx
test ebx, ebx
mov edi, dword [ebp + 8]
jne 0x4aa237
xor eax, dword [edi + 0x98]
xor ecx, ecx
or eax, dword [edi + 0x9c]
je 0x4aa237
xor eax, eax
test byte [ebp - 0x28], 8
mov ecx, 0xffffff99
cmovne ecx, eax
jmp 0x4aa237
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x4aa46b
mov ecx, dword [ebp - 0x34]
mov ebx, ecx
test ecx, ecx
mov edi, dword [ebp + 8]
jne 0x4aa255
xor eax, dword [edi + 0xa0]
xor ebx, ebx
or eax, dword [edi + 0xa4]
je 0x4aa255
xor eax, eax
test byte [ebp - 0x28], 8
mov ebx, 0xffffff99
cmovne ebx, eax
jmp 0x4aa255
mov dword [ebp - 0x34], ebx
mov ebx, 0xffffff99
test esi, esi
jne 0x4aa2bb
mov dword [ebp - 0x38], ecx
mov ebx, dword [ebp - 0x30]
push 0xd0
call fcn.0044bdc0
add esp, 4
test eax, eax
je 0x4aa634
mov esi, eax
push 0x4000
call fcn.0044bdc0
add esp, 4
mov dword [esi], eax
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], ebx
xor ecx, ecx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x60], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0xc8], ecx
test eax, eax
je 0x4aa476
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x48], 0
test ecx, ecx
mov edi, dword [ebp + 8]
je 0x4aa435
mov edx, dword [edi + 0x8c]
mov dword [ecx], edx
test eax, eax
mov ebx, dword [ebp + 0x14]
je 0x4aa490
mov dword [eax], 6
mov ecx, dword [edi + 0x88]
and ecx, 6
cmp ecx, 2
je 0x4aa484
cmp ecx, 6
je 0x4aa48b
cmp ecx, 4
jne 0x4aa490
mov ecx, 2
jmp 0x4aa48e
mov ecx, ebx
mov edi, dword [ebp + 8]
jmp 0x4aa237
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp + 8]
jmp 0x4aa255
push esi
call fcn.0044be10
add esp, 4
jmp 0x4aa634
mov ecx, 9
jmp 0x4aa48e
xor ecx, ecx
inc ecx
mov dword [eax], ecx
mov eax, dword [edi + 0x94]
mov dword [esi + 0x74], eax
xor ecx, ecx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x68], ecx
mov eax, dword [edi + 0x8c]
mov dword [esi + 0xb8], eax
mov edx, dword [edi + 0x30]
mov dword [esi + 0xb4], edx
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [esi + 0x88], xmm0
movups xmmword [esi + 0x98], xmm1
movups xmm0, xmmword [edi + 0x1c]
movups xmmword [esi + 0xa4], xmm0
movsd xmm0, qword [edi + 0x48]
movsd qword [esi + 0xc0], xmm0
mov dword [esi + 0x18], ecx
test ebx, ebx
jne 0x4aa63e
cmp eax, 0xc
jne 0x4aa63e
mov dword [esi + 0xc8], 1
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x34]
movsd xmm0, qword [edi + 0x98]
movsd qword [esi + 0x78], xmm0
movsd xmm0, qword [edi + 0xa0]
movsd qword [esi + 0x80], xmm0
xor ebx, ebx
add ecx, dword [edi + 0xd8]
mov eax, dword [edi + 0xdc]
adc eax, ebx
add ecx, 0x1e
mov dword [esi + 0x40], ecx
adc eax, ebx
mov dword [esi + 0x44], eax
mov dword [esi + 8], ebx
mov dword [edi + 0xe0], esi
mov eax, dword [ebp + 0x18]
mov dword [edi + 0xe4], ebx
test eax, eax
je 0x4aa2bb
mov esi, eax
call fcn.004508e0
mov dword [ebp - 0x34], eax
mov dword [edi + 0xf8], eax
mov dword [edi + 0xec], 0x12345678
mov dword [edi + 0xf0], 0x23456789
mov dword [edi + 0xf4], 0x34567890
mov bl, byte [esi]
test bl, bl
je 0x4aa605
mov edx, esi
inc edx
mov ecx, 0x12345678
mov edi, 0x23456789
mov esi, 0x34567890
mov dword [ebp - 0x38], edx
mov bh, cl
xor bh, bl
movzx ebx, bh
shr ecx, 8
mov edx, dword [ebp - 0x34]
xor ecx, dword [edx + ebx*4]
mov ebx, ecx
mov edx, 0xff
and ebx, edx
add ebx, edi
imul edi, ebx, 0x8088405
inc edi
mov eax, edi
shr eax, 0x18
mov edx, esi
mov ebx, 0xff
and edx, ebx
xor edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xec], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0xf0], edi
shr esi, 8
mov ebx, dword [ebp - 0x34]
xor esi, dword [ebx + edx*4]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
mov dword [eax + 0xf4], esi
mov bl, byte [edx]
inc edx
test bl, bl
jne 0x4aa5a2
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xe0]
mov ecx, dword [edi + 0xc0]
add ecx, dword [edi + 0x40]
mov edx, dword [edi + 0xc4]
adc edx, dword [edi + 0x44]
push 0
push edx
push ecx
push dword [esi + 0x30]
push esi
call fcn.004c3e5a
add esp, 0x14
test eax, eax
je 0x4aa68f
mov ebx, 0xffffff98
jmp 0x4aa2bb
test ebx, ebx
jne 0x4aa504
cmp eax, 8
jne 0x4aa504
mov eax, esi
add eax, 4
xor ecx, ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
push 0x38
push str.1.2.13
push 0xfffffffffffffff1
push eax
call fcn.0041e4c0
add esp, 0x10
test eax, eax
je 0x4aa785
mov ebx, eax
push esi
call fcn.0044be10
add esp, 4
jmp 0x4aa2bb
mov eax, esi
mov esi, dword [esi + 0x30]
mov ecx, dword [eax + 4]
mov edi, dword [eax + 0x1c]
call dword [section..00cfg]
lea eax, [ebp - 0x1c]
push 0xc
push eax
push esi
push edi
call ecx
add esp, 0x10
mov ebx, 0xffffff98
cmp eax, 0xc
jb 0x4aa2bb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xf8]
mov dword [ebp - 0x34], ecx
mov ebx, dword [eax + 0xf4]
mov edx, dword [eax + 0xec]
mov esi, dword [eax + 0xf0]
xor edi, edi
mov dword [ebp - 0x38], edi
mov ecx, ebx
and ecx, 0xfffd
mov eax, ebx
or eax, 2
xor ecx, 3
imul ecx, eax
xor ch, byte [ebp + edi - 0x1c]
mov byte [ebp + edi - 0x1c], ch
mov eax, edx
xor al, ch
movzx eax, al
shr edx, 8
mov ecx, dword [ebp - 0x34]
xor edx, dword [ecx + eax*4]
mov eax, edx
mov ecx, 0xff
and eax, ecx
add eax, esi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
shr eax, 0x18
mov ecx, ebx
mov edi, 0xff
and ecx, edi
mov edi, dword [ebp - 0x38]
xor ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xec], edx
mov dword [eax + 0xf0], esi
shr ebx, 8
mov eax, dword [ebp - 0x34]
xor ebx, dword [eax + ecx*4]
mov eax, dword [ebp + 8]
mov dword [eax + 0xf4], ebx
inc edi
cmp edi, 0xc
jne 0x4aa6db
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xe0]
add dword [eax + 0x40], 0xc
adc dword [eax + 0x44], 0
mov eax, dword [ecx + 0xe0]
add dword [eax + 0x78], 0xfffffff4
adc dword [eax + 0x7c], 0xffffffff
mov dword [ecx + 0xe4], 1
xor ebx, ebx
jmp 0x4aa2bb
mov dword [esi + 0x48], 8
jmp 0x4aa504