Function at 0x4e6ef5
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, 0x28
mov ecx, dword [ebp + 8]
mov eax, dword [0x6f4e3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0xffffff9a
test ecx, ecx
je 0x4e7462
mov eax, dword [ecx + 0x60]
or eax, dword [ecx + 0x64]
je 0x4e7462
mov edi, dword [ebp + 8]
cmp dword [edi + 0xe0], 0
je 0x4e6f39
push edi
call fcn.004e660a
add esp, 4
mov eax, dword [edi + 0x48]
add eax, dword [edi + 0xd8]
mov ecx, dword [edi + 0x4c]
adc ecx, dword [edi + 0xdc]
push 0
push ecx
push eax
push dword [edi + 0x30]
push edi
call fcn.004f80f6
add esp, 0x14
test eax, eax
je 0x4e6f73
xor edi, edi
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x30], 0
xor eax, eax
jmp 0x4e710e
mov edx, dword [edi + 0x30]
lea esi, [ebp - 0x1c]
mov ecx, edi
push esi
call fcn.004e7884
add esp, 4
mov edi, eax
xor eax, eax
cmp dword [esi], 0x4034b50
mov esi, 0xffffff99
cmove esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 8]
push eax
call fcn.004e7bca
add esp, 4
mov ebx, eax
or ebx, edi
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x30]
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004e7bca
add esp, 4
xor ecx, ecx
dec ecx
or eax, ebx
mov ebx, ecx
cmovne esi, ecx
mov edx, dword [edi + 0x30]
mov ecx, edi
lea eax, [ebp - 0x20]
push eax
call fcn.004e7bca
add esp, 4
mov dword [ebp - 0x34], ebx
mov edx, ebx
test eax, eax
jne 0x4e7013
mov edx, esi
test esi, esi
jne 0x4e7013
mov eax, dword [ebp - 0x20]
mov edx, 0xffffff99
cmp eax, dword [edi + 0x8c]
jne 0x4e7013
cmp eax, 0xc
ja 0x4e700e
xor edx, edx
mov ecx, 0x1101
bt ecx, eax
jb 0x4e7013
mov edx, 0xffffff99
mov dword [ebp - 0x30], edx
mov edx, dword [edi + 0x30]
mov ecx, edi
lea ebx, [ebp - 0x20]
push ebx
call fcn.004e7884
add esp, 4
cmp eax, 1
mov esi, 0
sbb esi, esi
mov edx, dword [edi + 0x30]
mov ecx, edi
push ebx
call fcn.004e7884
add esp, 4
mov ebx, edi
xor edi, edi
dec edi
test eax, eax
jne 0x4e706c
not esi
or esi, dword [ebp - 0x30]
mov edi, esi
jne 0x4e706c
mov eax, dword [ebp - 0x20]
xor edi, edi
cmp eax, dword [ebx + 0x94]
je 0x4e706c
xor eax, eax
test byte [ebp - 0x24], 8
mov edi, 0xffffff99
cmovne edi, eax
mov edx, dword [ebx + 0x30]
mov ecx, ebx
lea eax, [ebp - 0x20]
push eax
call fcn.004e7884
add esp, 4
xor esi, esi
dec esi
test eax, eax
je 0x4e71c9
mov edx, dword [ebx + 0x30]
mov ecx, ebx
lea eax, [ebp - 0x20]
push eax
call fcn.004e7884
add esp, 4
xor edi, edi
dec edi
test eax, eax
je 0x4e7209
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004e7bca
add esp, 4
test eax, eax
jne 0x4e70d6
mov dword [ebp - 0x34], edi
test edi, edi
jne 0x4e70d6
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp eax, dword [ebx + 0xa8]
mov eax, 0xffffff99
cmove eax, ecx
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x28]
mov edx, dword [ebx + 0x30]
lea esi, [ebp - 0x2c]
mov ecx, ebx
push esi
call fcn.004e7bca
add esp, 4
mov edx, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0xd8]
add ecx, edi
adc edx, 0
add ecx, 0x1e
adc edx, 0
mov esi, dword [esi]
mov dword [ebp - 0x30], esi
add edi, esi
or eax, dword [ebp - 0x34]
sete al
mov ebx, 0xffffff99
test al, al
je 0x4e7462
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x34], edi
push 0xd0
call fcn.00491250
add esp, 4
test eax, eax
je 0x4e745d
mov edi, eax
push 0x4000
call fcn.00491250
add esp, 4
mov dword [edi], eax
mov dword [edi + 0x54], ebx
mov ebx, dword [ebp + 0x14]
mov dword [edi + 0x50], esi
mov ecx, dword [ebp - 0x30]
mov dword [edi + 0x58], ecx
xor ecx, ecx
mov dword [edi + 0x64], ecx
mov dword [edi + 0x60], ecx
mov dword [edi + 0xc8], ebx
test eax, eax
je 0x4e7245
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x48], 0
test ecx, ecx
je 0x4e7189
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x8c]
mov dword [ecx], edx
test eax, eax
je 0x4e7275
mov dword [eax], 6
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x88]
and ecx, 6
cmp ecx, 2
je 0x4e7267
cmp ecx, 4
je 0x4e726f
cmp ecx, 6
jne 0x4e7275
mov dword [eax], 1
jmp 0x4e7275
test edi, edi
jne 0x4e7253
mov eax, dword [ebp - 0x20]
mov esi, edi
cmp eax, 0xffffffff
mov ebx, dword [ebp + 8]
je 0x4e7088
xor eax, dword [ebx + 0x98]
xor esi, esi
or eax, dword [ebx + 0x9c]
je 0x4e7088
xor eax, eax
test byte [ebp - 0x24], 8
mov esi, 0xffffff99
cmovne esi, eax
jmp 0x4e7088
test esi, esi
jne 0x4e725d
mov eax, dword [ebp - 0x20]
mov edi, esi
cmp eax, 0xffffffff
mov ebx, dword [ebp + 8]
je 0x4e70a4
xor eax, dword [ebx + 0xa0]
xor edi, edi
or eax, dword [ebx + 0xa4]
je 0x4e70a4
xor eax, eax
test byte [ebp - 0x24], 8
mov edi, 0xffffff99
cmovne edi, eax
jmp 0x4e70a4
push edi
call fcn.00491290
add esp, 4
jmp 0x4e745d
mov esi, edi
mov ebx, dword [ebp + 8]
jmp 0x4e7088
mov edi, esi
mov ebx, dword [ebp + 8]
jmp 0x4e70a4
mov dword [eax], 9
jmp 0x4e7275
mov dword [eax], 2
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x94]
mov dword [edi + 0x74], eax
xor ecx, ecx
mov dword [edi + 0x70], ecx
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x68], ecx
mov eax, dword [esi + 0x8c]
mov dword [edi + 0xb8], eax
mov edx, dword [esi + 0x30]
mov dword [edi + 0xb4], edx
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
movups xmmword [edi + 0x88], xmm0
movups xmmword [edi + 0x98], xmm1
movups xmm0, xmmword [esi + 0x1c]
movups xmmword [edi + 0xa4], xmm0
movsd xmm0, qword [esi + 0x48]
movsd qword [edi + 0xc0], xmm0
mov dword [edi + 0x18], ecx
test ebx, ebx
jne 0x4e72e6
cmp eax, 0xc
jne 0x4e72e6
mov dword [edi + 0xc8], 1
jmp 0x4e7332
test ebx, ebx
jne 0x4e7332
cmp eax, 8
jne 0x4e7332
mov eax, edi
add eax, 4
xor ecx, ecx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
push 0x38
push str.1.2.11
push 0xfffffffffffffff1
push eax
call fcn.0044c930
add esp, 0x10
test eax, eax
je 0x4e732b
mov ebx, eax
push edi
call fcn.00491290
add esp, 4
jmp 0x4e7462
mov dword [edi + 0x48], 8
mov ecx, dword [ebp + 8]
movups xmm0, xmmword [ecx + 0x98]
movups xmmword [edi + 0x78], xmm0
xor ebx, ebx
mov edx, dword [ebp - 0x34]
add edx, dword [ecx + 0xd8]
mov eax, dword [ecx + 0xdc]
adc eax, ebx
add edx, 0x1e
mov dword [edi + 0x40], edx
adc eax, ebx
mov dword [edi + 0x44], eax
mov dword [edi + 8], ebx
mov dword [ecx + 0xe0], edi
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0xe4], ebx
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4e7462
call fcn.004a7300
mov ecx, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [esi + 0xf8], eax
mov dword [esi + 0xec], 0x12345678
mov dword [esi + 0xf0], 0x23456789
mov dword [esi + 0xf4], 0x34567890
mov eax, dword [ebp + 0x18]
mov al, byte [eax]
test al, al
je 0x4e7431
inc dword [ebp - 0x30]
mov ecx, 0x12345678
mov ebx, 0x23456789
mov edx, 0x34567890
movzx edi, al
mov esi, ecx
mov eax, 0xff
and esi, eax
xor esi, edi
shr ecx, 8
mov eax, dword [ebp - 0x34]
xor ecx, dword [eax + esi*4]
mov eax, ecx
mov esi, 0xff
and eax, esi
add eax, ebx
imul ebx, eax, 0x8088405
inc ebx
mov eax, ebx
shr eax, 0x18
mov esi, edx
mov edi, 0xff
and esi, edi
xor esi, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xec], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0xf0], ebx
shr edx, 8
mov eax, dword [ebp - 0x34]
xor edx, dword [eax + esi*4]
mov esi, dword [ebp + 8]
mov dword [esi + 0xf4], edx
mov edi, dword [ebp - 0x30]
mov al, byte [edi]
inc edi
mov dword [ebp - 0x30], edi
test al, al
jne 0x4e73c7
mov eax, dword [esi + 0xe0]
mov ecx, dword [eax + 0xc0]
add ecx, dword [eax + 0x40]
mov edx, dword [eax + 0xc4]
adc edx, dword [eax + 0x44]
push 0
push edx
push ecx
push dword [esi + 0x30]
push esi
call fcn.004f80f6
add esp, 0x14
test eax, eax
je 0x4e7476
mov ebx, 0xffffff98
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00517c1a
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x1c]
push 0xc
push eax
push dword [esi + 0x30]
push dword [esi + 0x1c]
call dword [esi + 4]
add esp, 0x10
mov ebx, 0xffffff98
cmp eax, 0xc
jb 0x4e7462
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xf8]
mov dword [ebp - 0x30], ecx
mov esi, dword [eax + 0xf4]
mov edx, dword [eax + 0xec]
mov edi, dword [eax + 0xf0]
xor ebx, ebx
mov ecx, esi
and ecx, 0xfffd
lea eax, [ecx + 2]
xor ecx, 3
imul ecx, eax
mov dword [ebp - 0x34], ebx
xor ch, byte [ebp + ebx - 0x1c]
mov byte [ebp + ebx - 0x1c], ch
movzx ebx, ch
mov ecx, edx
mov eax, 0xff
and ecx, eax
xor ecx, ebx
shr edx, 8
mov eax, dword [ebp - 0x30]
xor edx, dword [eax + ecx*4]
mov eax, edx
mov ecx, 0xff
and eax, ecx
add eax, edi
imul edi, eax, 0x8088405
inc edi
mov eax, edi
shr eax, 0x18
mov ecx, esi
mov ebx, 0xff
and ecx, ebx
xor ecx, eax
mov ebx, dword [ebp + 8]
mov dword [ebx + 0xec], edx
mov dword [ebx + 0xf0], edi
shr esi, 8
mov eax, dword [ebp - 0x30]
xor esi, dword [eax + ecx*4]
mov dword [ebx + 0xf4], esi
mov eax, dword [ebp - 0x34]
inc eax
mov ebx, eax
cmp eax, 0xc
jne 0x4e74b2
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 0x4e7462