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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x7b2214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], esi
push edi
test esi, esi
je 0x429577
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
je 0x429577
cmp dword [esi + 0xe0], 0
je 0x4291e0
call fcn.00429a50
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x1c]
call fcn.00428f30
add esp, 8
test eax, eax
je 0x42920f
mov eax, 0xffffff99
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00629f1d
mov esp, ebp
pop ebp
ret
push 0xd0
call fcn.00685999
mov edi, eax
add esp, 4
test edi, edi
je 0x429267
push 0x4000
call fcn.00685999
mov ecx, dword [ebp - 0x28]
add esp, 4
mov dword [edi + 0x50], ecx
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x54], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x58], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi], eax
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0xc8], ecx
test eax, eax
jne 0x42927d
push edi
call fcn.00684e92
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00629f1d
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x48], 0
test edx, edx
je 0x429293
mov eax, dword [esi + 0x8c]
mov dword [edx], eax
test ebx, ebx
je 0x4292cb
mov dword [ebx], 6
mov eax, dword [esi + 0x88]
and eax, 6
sub eax, 2
je 0x4292c5
sub eax, 2
je 0x4292bd
sub eax, 2
jne 0x4292cb
mov dword [ebx], 1
jmp 0x4292cb
mov dword [ebx], 2
jmp 0x4292cb
mov dword [ebx], 9
mov eax, dword [esi + 0x94]
mov dword [edi + 0x74], eax
mov dword [edi + 0x70], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov eax, dword [esi + 0x8c]
mov dword [edi + 0xb8], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0xb4], eax
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x88], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x98], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0xa8], xmm0
mov eax, dword [esi + 0x28]
mov dword [edi + 0xb0], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0xc0], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0xc4], eax
mov dword [edi + 0x18], 0
mov eax, dword [esi + 0x8c]
cmp eax, 0xc
jne 0x429515
test ecx, ecx
jne 0x42935f
mov dword [edi + 0xc8], 1
mov eax, dword [esi + 0x98]
xor ecx, ecx
mov dword [edi + 0x78], eax
mov eax, dword [esi + 0x9c]
mov dword [edi + 0x7c], eax
mov eax, dword [esi + 0xa0]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0xa4]
mov dword [edi + 0x84], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [esi + 0xd8]
adc ecx, dword [esi + 0xdc]
add eax, 0x1e
mov dword [edi + 0x40], eax
adc ecx, 0
mov dword [edi + 8], 0
mov dword [edi + 0x44], ecx
mov dword [esi + 0xe0], edi
mov edi, dword [ebp + 0x10]
mov dword [esi + 0xe4], 0
test edi, edi
je 0x429502
call fcn.0062f13f
lea ebx, [esi + 0xec]
mov dword [esi + 0xf8], eax
mov dword [ebp - 0x14], eax
mov dword [ebx], 0x12345678
mov dword [ebx + 4], 0x23456789
mov dword [ebx + 8], 0x34567890
mov al, byte [edi]
mov dword [ebp - 0x1c], ebx
test al, al
je 0x42945f
mov ecx, 0x12345678
mov esi, 0x23456789
mov edx, 0x34567890
nop dword [eax + eax]
mov ebx, dword [ebp - 0x14]
lea edi, [edi + 1]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [ebx + eax*4]
mov ebx, dword [ebp - 0x1c]
xor eax, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebx], eax
movzx eax, al
add eax, esi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
mov dword [ebx + 4], esi
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 8], edx
mov al, byte [edi]
test al, al
jne 0x429410
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 0xe0]
push 0
mov edx, dword [ecx + 0xc0]
add edx, dword [ecx + 0x40]
mov eax, dword [ecx + 0xc4]
adc eax, dword [ecx + 0x44]
mov ecx, esi
push eax
push edx
mov edx, dword [esi + 0x30]
call fcn.00426720
add esp, 0xc
test eax, eax
jne 0x429267
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x30]
mov eax, dword [esi + 4]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, 0xc
jb 0x429267
xor edi, edi
nop
mov ecx, dword [esi + 0xf4]
mov edx, dword [esi + 0xf8]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, ebx
shr eax, 8
xor byte [ebp + edi - 0x10], al
movsx eax, byte [ebp + edi - 0x10]
push eax
call fcn.00427170
inc edi
add esp, 4
cmp edi, 0xc
jl 0x4294b0
mov eax, dword [esi + 0xe0]
add dword [eax + 0x40], 0xc
adc dword [eax + 0x44], 0
mov dword [esi + 0xe4], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00629f1d
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x42935f
test ecx, ecx
jne 0x42935f
push 0x38
push str.1.2.11
lea eax, [edi + 4]
mov dword [edi + 0x24], ecx
push 0xfffffffffffffff1
push eax
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
mov dword [eax], ecx
mov dword [edi + 8], ecx
call fcn.0062e88e
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x42955b
mov dword [edi + 0x48], 8
jmp 0x42935f
push edi
call fcn.00684e92
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00629f1d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffff9a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00629f1d
mov esp, ebp
pop ebp
ret