Function at 0x67e650
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, 0x34
mov esi, dword [ebp + 8]
mov eax, dword [0x742040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
dec edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov ebx, 0xffffff9a
test esi, esi
je 0x67e6be
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
je 0x67e6be
cmp dword [esi + 0xe0], 0
jne 0x67e6d2
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [esi + 0x48]
add eax, dword [esi + 0xd8]
mov ecx, dword [esi + 0x4c]
adc ecx, dword [esi + 0xdc]
push 0
push ecx
push eax
push dword [esi + 0x30]
push esi
call fcn.00694640
add esp, 0x14
test eax, eax
je 0x67e6ed
mov ebx, 0xffffff99
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call fcn.0067d870
add esp, 4
jmp 0x67e68c
push edi
call fcn.004f72a0
add esp, 4
mov ebx, 0xffffff98
jmp 0x67e6be
mov edx, dword [esi + 0x30]
lea ebx, [ebp - 0x24]
mov ecx, esi
push ebx
call fcn.0067f110
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x40], eax
cmp eax, 0x4034b50
mov eax, 0xffffff99
mov dword [ebp - 0x2c], 0
cmove eax, ecx
mov dword [ebp - 0x30], eax
mov ebx, dword [esi + 0x30]
lea eax, [ebp - 0x1e]
mov word [eax], 0xffff
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x3c], eax
call dword [0x73c768]
push 2
lea eax, [ebp - 0x1e]
push eax
mov dword [ebp - 0x34], ebx
push ebx
push dword [ebp - 0x3c]
call ecx
add esp, 0x10
cmp eax, 2
je 0x67e76e
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
call dword [0x73c768]
push dword [ebp - 0x34]
push ebx
call ecx
add esp, 8
xor ecx, ecx
neg eax
sbb ecx, ecx
mov dword [ebp - 0x2c], ecx
mov ebx, dword [esi + 0x30]
mov word [ebp - 0x1e], 0xffff
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x3c], eax
call dword [0x73c768]
push 2
lea eax, [ebp - 0x1e]
push eax
mov dword [ebp - 0x34], ebx
push ebx
push dword [ebp - 0x3c]
call ecx
add esp, 0x10
cmp eax, 2
je 0x67e7c4
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
call dword [0x73c768]
push dword [ebp - 0x34]
push ebx
call ecx
add esp, 8
mov dword [ebp - 0x34], 0
neg eax
mov eax, 0
sbb eax, eax
jmp 0x67e7cd
movzx eax, word [ebp - 0x1e]
mov dword [ebp - 0x34], eax
xor eax, eax
or eax, dword [ebp - 0x2c]
or eax, dword [ebp - 0x38]
sete byte [ebp - 0x38]
mov eax, dword [ebp - 0x30]
cmovne eax, edi
mov dword [ebp - 0x30], eax
mov ebx, dword [esi + 0x30]
mov word [ebp - 0x1e], 0xffff
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x2c], eax
call dword [0x73c768]
push 2
lea eax, [ebp - 0x1e]
push eax
mov dword [ebp - 0x3c], ebx
push ebx
push dword [ebp - 0x2c]
call ecx
add esp, 0x10
cmp eax, 2
jne 0x67e852
movzx ecx, word [ebp - 0x1e]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x40], 0x4034b50
sete al
mov dl, byte [ebp - 0x38]
and dl, al
mov ebx, dword [ebp - 0x30]
cmp dl, 1
jne 0x67e876
mov ebx, 0xffffff99
cmp ecx, dword [esi + 0x8c]
jne 0x67e876
cmp ecx, 0xc
ja 0x67e84b
xor ebx, ebx
mov eax, 0x1101
bt eax, ecx
jb 0x67e876
mov ebx, 0xffffff99
jmp 0x67e876
mov dword [ebp - 0x28], 0
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
call dword [0x73c768]
push dword [ebp - 0x3c]
push ebx
call ecx
add esp, 8
xor ecx, ecx
mov ebx, edi
test eax, eax
je 0x67e816
mov dword [ebp - 0x30], ebx
mov edx, dword [esi + 0x30]
lea ebx, [ebp - 0x28]
mov ecx, esi
push ebx
call fcn.0067f110
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 0x30]
mov ecx, esi
push ebx
call fcn.0067f110
add esp, 4
mov ebx, edi
test eax, eax
jne 0x67e8cb
xor ebx, ebx
neg dword [ebp - 0x2c]
sbb ebx, ebx
or ebx, dword [ebp - 0x30]
jne 0x67e8cb
mov eax, dword [ebp - 0x28]
mov ebx, 0
cmp eax, dword [esi + 0x94]
je 0x67e8cb
xor eax, eax
test byte [ebp - 0x34], 8
mov ebx, 0xffffff99
cmovne ebx, eax
mov edx, dword [esi + 0x30]
mov ecx, esi
lea eax, [ebp - 0x28]
push eax
call fcn.0067f110
add esp, 4
mov ecx, edi
test eax, eax
jne 0x67e914
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
sete cl
test ebx, ebx
setne dl
or dl, cl
mov ecx, ebx
jne 0x67e914
xor eax, dword [esi + 0x98]
xor ecx, ecx
or eax, dword [esi + 0x9c]
je 0x67e914
xor eax, eax
test byte [ebp - 0x34], 8
mov ecx, 0xffffff99
cmovne ecx, eax
mov ebx, ecx
mov edx, dword [esi + 0x30]
mov ecx, esi
lea eax, [ebp - 0x28]
push eax
call fcn.0067f110
add esp, 4
test eax, eax
je 0x67e981
mov ebx, dword [esi + 0x30]
mov word [ebp - 0x1e], 0xffff
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x30], eax
call dword [0x73c768]
push 2
lea eax, [ebp - 0x1e]
push eax
mov dword [ebp - 0x2c], ebx
push ebx
push dword [ebp - 0x30]
call ecx
add esp, 0x10
cmp eax, 2
je 0x67e9c6
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
call dword [0x73c768]
push dword [ebp - 0x2c]
push ebx
call ecx
add esp, 8
mov dword [ebp - 0x30], 0
mov ecx, 0
test eax, eax
jne 0x67e9d3
jmp 0x67e9cd
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
sete cl
mov edi, ebx
test ebx, ebx
setne dl
or dl, cl
jne 0x67e92b
xor eax, dword [esi + 0xa0]
xor edi, edi
or eax, dword [esi + 0xa4]
je 0x67e92b
xor eax, eax
test byte [ebp - 0x34], 8
mov edi, 0xffffff99
cmovne edi, eax
jmp 0x67e92b
mov eax, dword [ebp - 0x30]
cmp eax, dword [esi + 0xa8]
sete cl
jmp 0x67e9d3
movzx eax, word [ebp - 0x1e]
mov dword [ebp - 0x30], eax
test edi, edi
je 0x67e9b8
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov edi, dword [esi + 0x30]
mov word [ebp - 0x1e], 0xffff
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x1c]
call dword [0x73c768]
push 2
lea eax, [ebp - 0x1e]
push eax
push edi
push ebx
call ecx
add esp, 0x10
cmp eax, 2
je 0x67ea1c
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
call dword [0x73c768]
push edi
push ebx
call ecx
add esp, 8
test eax, eax
jne 0x67e6b9
xor eax, eax
jmp 0x67ea20
movzx eax, word [ebp - 0x1e]
mov ecx, dword [esi + 0xdc]
mov edi, dword [esi + 0xd8]
add edi, dword [ebp - 0x30]
adc ecx, 0
add edi, 0x1e
adc ecx, 0
mov ebx, 0xffffff99
cmp byte [ebp - 0x2c], 0
je 0x67e6be
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], eax
push 0xd0
call fcn.004f72d0
add esp, 4
test eax, eax
je 0x67e6e6
mov ebx, eax
push 0x4000
call fcn.004f72d0
add esp, 4
mov dword [ebx], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x50], edi
mov ecx, dword [ebp - 0x2c]
mov dword [ebx + 0x58], ecx
xor ecx, ecx
mov dword [ebx + 0x64], ecx
mov dword [ebx + 0x60], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 0xc8], ecx
test eax, eax
mov edi, ebx
je 0x67e6dd
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x48], 0
test ecx, ecx
je 0x67eab6
mov edx, dword [esi + 0x8c]
mov dword [ecx], edx
test eax, eax
mov ebx, dword [ebp + 0x14]
je 0x67eaee
mov dword [eax], 6
mov ecx, dword [esi + 0x88]
and ecx, 6
cmp ecx, 2
je 0x67eae2
cmp ecx, 6
je 0x67eae9
cmp ecx, 4
jne 0x67eaee
mov ecx, 2
jmp 0x67eaec
mov ecx, 9
jmp 0x67eaec
xor ecx, ecx
inc ecx
mov dword [eax], ecx
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
mov ecx, eax
xor ecx, 0xc
or ecx, ebx
je 0x67eba9
xor eax, 8
or ebx, eax
mov ecx, dword [ebp - 0x2c]
jne 0x67ebb6
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 0x6c6fb8
push 0xfffffffffffffff1
push eax
call fcn.0047e810
add esp, 0x10
test eax, eax
je 0x67eba0
mov ebx, eax
push dword [edi]
call fcn.004f72a0
add esp, 4
push edi
call fcn.004f72a0
add esp, 4
jmp 0x67e6be
mov dword [edi + 0x48], 8
jmp 0x67ebb3
mov dword [edi + 0xc8], 1
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x30]
movsd xmm0, qword [esi + 0x98]
movsd qword [edi + 0x78], xmm0
movsd xmm0, qword [esi + 0xa0]
movsd qword [edi + 0x80], xmm0
mov eax, dword [esi + 0xdc]
xor ebx, ebx
add ecx, dword [esi + 0xd8]
adc eax, 0
add ecx, 0x1e
mov dword [edi + 0x40], ecx
adc eax, 0
mov dword [edi + 0x44], eax
mov dword [edi + 8], ebx
mov dword [esi + 0xe0], edi
mov eax, dword [ebp + 0x18]
mov dword [esi + 0xe4], ebx
test eax, eax
je 0x67e6be
mov edi, eax
call fcn.005d9690
mov dword [ebp - 0x30], eax
mov dword [esi + 0xf8], eax
mov dword [esi + 0xec], 0x12345678
mov dword [esi + 0xf0], 0x23456789
mov dword [esi + 0xf4], 0x34567890
mov al, byte [edi]
test al, al
je 0x67ecb0
mov edx, edi
inc edx
mov ecx, 0x12345678
mov ebx, 0x23456789
mov edi, 0x34567890
mov dword [ebp - 0x2c], edx
mov ah, cl
xor ah, al
movzx eax, ah
shr ecx, 8
mov edx, dword [ebp - 0x30]
xor ecx, dword [edx + eax*4]
mov eax, ecx
mov edx, 0xff
and eax, edx
add eax, ebx
imul ebx, eax, 0x8088405
inc ebx
mov eax, ebx
shr eax, 0x18
mov edx, edi
mov esi, 0xff
and edx, esi
mov esi, dword [ebp + 8]
xor edx, eax
mov dword [esi + 0xec], ecx
mov dword [esi + 0xf0], ebx
shr edi, 8
mov eax, dword [ebp - 0x30]
xor edi, dword [eax + edx*4]
mov edx, dword [ebp - 0x2c]
mov dword [esi + 0xf4], edi
mov al, byte [edx]
inc edx
test al, al
jne 0x67ec53
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.00694640
add esp, 0x14
test eax, eax
jne 0x67e6e6
mov edi, dword [esi + 0x30]
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x1c]
call dword [0x73c768]
lea eax, [ebp - 0x1c]
push 0xc
push eax
push edi
push ebx
call ecx
add esp, 0x10
mov ebx, 0xffffff98
cmp eax, 0xc
jb 0x67e6be
mov eax, dword [esi + 0xf8]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0xf4]
mov edx, dword [esi + 0xec]
mov edi, dword [esi + 0xf0]
mov dword [ebp - 0x30], 0
mov ecx, eax
and ecx, 0xfffd
mov ebx, eax
or ebx, 2
xor ecx, 3
imul ecx, ebx
mov ebx, dword [ebp - 0x30]
xor ch, byte [ebp + ebx - 0x1c]
mov byte [ebp + ebx - 0x1c], ch
mov ebx, edx
xor bl, ch
movzx ecx, bl
shr edx, 8
mov ebx, dword [ebp - 0x2c]
xor edx, dword [ebx + ecx*4]
mov ecx, edx
mov ebx, 0xff
and ecx, ebx
add ecx, edi
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
shr ecx, 0x18
mov dword [ebp - 0x38], ecx
mov ebx, eax
mov ecx, 0xff
and ebx, ecx
xor ebx, dword [ebp - 0x38]
mov dword [esi + 0xec], edx
mov dword [esi + 0xf0], edi
shr eax, 8
mov ecx, dword [ebp - 0x2c]
xor eax, dword [ecx + ebx*4]
mov dword [esi + 0xf4], eax
mov ecx, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, 0xc
jne 0x67ed2c
mov eax, dword [esi + 0xe0]
add dword [eax + 0x40], 0xc
adc dword [eax + 0x44], 0
mov eax, dword [esi + 0xe0]
add dword [eax + 0x78], 0xfffffff4
adc dword [eax + 0x7c], 0xffffffff
mov dword [esi + 0xe4], 1
xor ebx, ebx
jmp 0x67e6be