Function at 0x4a4361
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 [0x533014]
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 0x4a453b
mov eax, dword [ecx + 0x60]
or eax, dword [ecx + 0x64]
je 0x4a453b
cmp dword [ecx + 0xe0], 0
mov ebx, ecx
je 0x4a43b0
push ebx
call fcn.004a3a05
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.004be14a
add esp, 0x14
test eax, eax
jne 0x4a4536
mov edx, dword [ebx + 0x30]
lea edi, [ebp - 0x20]
mov ecx, ebx
push edi
call fcn.004a4d52
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.004a4fc4
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004a4fc4
add esp, 4
mov edi, eax
mov edx, dword [ebx + 0x30]
mov ecx, ebx
lea eax, [ebp - 0x24]
push eax
call fcn.004a4fc4
add esp, 4
mov edx, esi
test eax, eax
je 0x4a454f
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.004a4d52
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [edi + 0x30]
mov ecx, edi
push ebx
call fcn.004a4d52
add esp, 4
mov ebx, esi
test eax, eax
jne 0x4a449c
xor ebx, ebx
neg dword [ebp - 0x38]
sbb ebx, ebx
or ebx, dword [ebp - 0x34]
jne 0x4a449c
mov eax, dword [ebp - 0x24]
mov ebx, 0
cmp eax, dword [edi + 0x94]
je 0x4a449c
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.004a4d52
add esp, 4
mov ecx, esi
test eax, eax
je 0x4a45b6
mov dword [ebp - 0x34], ecx
mov edx, dword [edi + 0x30]
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call fcn.004a4d52
add esp, 4
mov ebx, esi
test eax, eax
je 0x4a45f6
mov edx, dword [edi + 0x30]
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004a4fc4
add esp, 4
test eax, eax
jne 0x4a4503
mov esi, ebx
test ebx, ebx
jne 0x4a4503
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.004a4fc4
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 0x4a4639
mov ebx, 0xffffff99
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3343
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 0x4a4444
cmp ebx, 0x4034b50
jne 0x4a4444
mov eax, dword [ebp - 0x24]
mov edx, 0xffffff99
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x8c]
jne 0x4a4444
cmp eax, 0xc
ja 0x4a45ac
xor edx, edx
mov ecx, 0x1101
bt ecx, eax
jb 0x4a4444
mov edx, 0xffffff99
jmp 0x4a4444
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x4a46e1
mov ecx, ebx
test ebx, ebx
mov edi, dword [ebp + 8]
jne 0x4a44b7
xor eax, dword [edi + 0x98]
xor ecx, ecx
or eax, dword [edi + 0x9c]
je 0x4a44b7
xor eax, eax
test byte [ebp - 0x28], 8
mov ecx, 0xffffff99
cmovne ecx, eax
jmp 0x4a44b7
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x4a46eb
mov ecx, dword [ebp - 0x34]
mov ebx, ecx
test ecx, ecx
mov edi, dword [ebp + 8]
jne 0x4a44d5
xor eax, dword [edi + 0xa0]
xor ebx, ebx
or eax, dword [edi + 0xa4]
je 0x4a44d5
xor eax, eax
test byte [ebp - 0x28], 8
mov ebx, 0xffffff99
cmovne ebx, eax
jmp 0x4a44d5
mov dword [ebp - 0x34], ebx
mov ebx, 0xffffff99
test esi, esi
jne 0x4a453b
mov dword [ebp - 0x38], ecx
mov ebx, dword [ebp - 0x30]
push 0xd0
call fcn.0044a130
add esp, 4
test eax, eax
je 0x4a48b4
mov esi, eax
push 0x4000
call fcn.0044a130
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 0x4a46f6
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 0x4a46b5
mov edx, dword [edi + 0x8c]
mov dword [ecx], edx
test eax, eax
mov ebx, dword [ebp + 0x14]
je 0x4a4710
mov dword [eax], 6
mov ecx, dword [edi + 0x88]
and ecx, 6
cmp ecx, 2
je 0x4a4704
cmp ecx, 6
je 0x4a470b
cmp ecx, 4
jne 0x4a4710
mov ecx, 2
jmp 0x4a470e
mov ecx, ebx
mov edi, dword [ebp + 8]
jmp 0x4a44b7
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp + 8]
jmp 0x4a44d5
push esi
call fcn.0044a180
add esp, 4
jmp 0x4a48b4
mov ecx, 9
jmp 0x4a470e
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 0x4a48be
cmp eax, 0xc
jne 0x4a48be
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 0x4a453b
mov esi, eax
call fcn.0044dea0
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 0x4a4885
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 0x4a4822
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.004be14a
add esp, 0x14
test eax, eax
je 0x4a490f
mov ebx, 0xffffff98
jmp 0x4a453b
test ebx, ebx
jne 0x4a4784
cmp eax, 8
jne 0x4a4784
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.0041d0f0
add esp, 0x10
test eax, eax
je 0x4a4a05
mov ebx, eax
push esi
call fcn.0044a180
add esp, 4
jmp 0x4a453b
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 0x4a453b
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 0x4a495b
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 0x4a453b
mov dword [esi + 0x48], 8
jmp 0x4a4784