Function at 0x4e2780
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 [0x575010]
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 0x4e295a
mov eax, dword [ecx + 0x60]
or eax, dword [ecx + 0x64]
je 0x4e295a
cmp dword [ecx + 0xe0], 0
mov ebx, ecx
je 0x4e27cf
push ebx
call fcn.004e1e24
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.004eb39e
add esp, 0x14
test eax, eax
jne 0x4e2955
mov edx, dword [ebx + 0x30]
lea edi, [ebp - 0x20]
mov ecx, ebx
push edi
call fcn.004e315c
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.004e33c1
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.004e33c1
add esp, 4
mov edi, eax
mov edx, dword [ebx + 0x30]
mov ecx, ebx
lea eax, [ebp - 0x24]
push eax
call fcn.004e33c1
add esp, 4
mov edx, esi
test eax, eax
je 0x4e296e
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.004e315c
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [edi + 0x30]
mov ecx, edi
push ebx
call fcn.004e315c
add esp, 4
mov ebx, esi
test eax, eax
jne 0x4e28bb
xor ebx, ebx
neg dword [ebp - 0x38]
sbb ebx, ebx
or ebx, dword [ebp - 0x34]
jne 0x4e28bb
mov eax, dword [ebp - 0x24]
mov ebx, 0
cmp eax, dword [edi + 0x94]
je 0x4e28bb
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.004e315c
add esp, 4
mov ecx, esi
test eax, eax
je 0x4e29d5
mov dword [ebp - 0x34], ecx
mov edx, dword [edi + 0x30]
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call fcn.004e315c
add esp, 4
mov ebx, esi
test eax, eax
je 0x4e2a12
mov edx, dword [edi + 0x30]
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.004e33c1
add esp, 4
test eax, eax
jne 0x4e2922
mov esi, ebx
test ebx, ebx
jne 0x4e2922
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.004e33c1
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 0x4e2a52
mov ebx, 0xffffff99
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
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 0x4e2863
cmp ebx, 0x4034b50
jne 0x4e2863
mov eax, dword [ebp - 0x24]
mov edx, 0xffffff99
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x8c]
jne 0x4e2863
cmp eax, 0xc
ja 0x4e29cb
xor edx, edx
mov ecx, 0x1101
bt ecx, eax
jb 0x4e2863
mov edx, 0xffffff99
jmp 0x4e2863
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x4e2afa
mov ecx, ebx
test ebx, ebx
jne 0x4e28d6
xor eax, dword [edi + 0x98]
xor ecx, ecx
or eax, dword [edi + 0x9c]
je 0x4e28d6
xor eax, eax
test byte [ebp - 0x28], 8
mov ecx, 0xffffff99
cmovne ecx, eax
jmp 0x4e28d6
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x4e2b01
mov ecx, dword [ebp - 0x34]
mov ebx, ecx
test ecx, ecx
jne 0x4e28f4
xor eax, dword [edi + 0xa0]
xor ebx, ebx
or eax, dword [edi + 0xa4]
je 0x4e28f4
xor eax, eax
test byte [ebp - 0x28], 8
mov ebx, 0xffffff99
cmovne ebx, eax
jmp 0x4e28f4
mov dword [ebp - 0x34], ebx
mov ebx, 0xffffff99
test esi, esi
jne 0x4e295a
mov dword [ebp - 0x38], ecx
mov ebx, dword [ebp - 0x30]
push 0xd0
call fcn.004778b0
add esp, 4
test eax, eax
je 0x4e2cc1
mov esi, eax
push 0x4000
call fcn.004778b0
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 0x4e2b09
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 0x4e2ace
mov edx, dword [edi + 0x8c]
mov dword [ecx], edx
test eax, eax
mov ebx, dword [ebp + 0x14]
je 0x4e2b23
mov dword [eax], 6
mov ecx, dword [edi + 0x88]
and ecx, 6
cmp ecx, 2
je 0x4e2b17
cmp ecx, 6
je 0x4e2b1e
cmp ecx, 4
jne 0x4e2b23
mov ecx, 2
jmp 0x4e2b21
mov ecx, ebx
jmp 0x4e28d6
mov ebx, dword [ebp - 0x34]
jmp 0x4e28f4
push esi
call fcn.00477900
add esp, 4
jmp 0x4e2cc1
mov ecx, 9
jmp 0x4e2b21
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 0x4e2ccb
cmp eax, 0xc
jne 0x4e2ccb
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 0x4e295a
mov esi, eax
call fcn.00495c10
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 0x4e2c92
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 dword [eax + 0xf0], edi
shr esi, 8
mov ebx, dword [ebp - 0x34]
xor esi, dword [ebx + edx*4]
mov edx, dword [ebp - 0x38]
mov dword [eax + 0xf4], esi
mov bl, byte [edx]
inc edx
test bl, bl
jne 0x4e2c35
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.004eb39e
add esp, 0x14
test eax, eax
je 0x4e2d1c
mov ebx, 0xffffff98
jmp 0x4e295a
test ebx, ebx
jne 0x4e2b97
cmp eax, 8
jne 0x4e2b97
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.00449a70
add esp, 0x10
test eax, eax
je 0x4e2e12
mov ebx, eax
push esi
call fcn.00477900
add esp, 4
jmp 0x4e295a
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 0x4e295a
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 edi, dword [eax + 0xf0]
xor esi, esi
mov dword [ebp - 0x38], esi
mov ecx, ebx
and ecx, 0xfffd
mov eax, ebx
or eax, 2
xor ecx, 3
imul ecx, eax
xor ch, byte [ebp + esi - 0x1c]
mov byte [ebp + esi - 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, edi
imul edi, eax, 0x8088405
inc edi
mov eax, edi
shr eax, 0x18
mov ecx, ebx
mov esi, 0xff
and ecx, esi
mov esi, dword [ebp - 0x38]
xor ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xec], edx
mov dword [eax + 0xf0], edi
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 esi
cmp esi, 0xc
jne 0x4e2d68
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 0x4e295a
mov dword [esi + 0x48], 8
jmp 0x4e2b97