Function at 0x70e790
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 [0x808040]
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 0x70e7fe
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
je 0x70e7fe
cmp dword [esi + 0xe0], 0
jne 0x70e812
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.00731fd0
add esp, 0x14
test eax, eax
je 0x70e82d
mov ebx, 0xffffff99
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
call fcn.0070d9b0
add esp, 4
jmp 0x70e7cc
push edi
call fcn.004bfb50
add esp, 4
mov ebx, 0xffffff98
jmp 0x70e7fe
mov edx, dword [esi + 0x30]
lea ebx, [ebp - 0x24]
mov ecx, esi
push ebx
call fcn.0070f240
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 [0x8010bc]
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 0x70e8ae
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
call dword [0x8010bc]
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 [0x8010bc]
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 0x70e904
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
call dword [0x8010bc]
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 0x70e90d
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 [0x8010bc]
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 0x70e992
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 0x70e9b6
mov ebx, 0xffffff99
cmp ecx, dword [esi + 0x8c]
jne 0x70e9b6
cmp ecx, 0xc
ja 0x70e98b
xor ebx, ebx
mov eax, 0x1101
bt eax, ecx
jb 0x70e9b6
mov ebx, 0xffffff99
jmp 0x70e9b6
mov dword [ebp - 0x28], 0
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
call dword [0x8010bc]
push dword [ebp - 0x3c]
push ebx
call ecx
add esp, 8
xor ecx, ecx
mov ebx, edi
test eax, eax
je 0x70e956
mov dword [ebp - 0x30], ebx
mov edx, dword [esi + 0x30]
lea ebx, [ebp - 0x28]
mov ecx, esi
push ebx
call fcn.0070f240
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 0x30]
mov ecx, esi
push ebx
call fcn.0070f240
add esp, 4
mov ebx, edi
test eax, eax
jne 0x70ea0b
xor ebx, ebx
neg dword [ebp - 0x2c]
sbb ebx, ebx
or ebx, dword [ebp - 0x30]
jne 0x70ea0b
mov eax, dword [ebp - 0x28]
mov ebx, 0
cmp eax, dword [esi + 0x94]
je 0x70ea0b
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.0070f240
add esp, 4
mov ecx, edi
test eax, eax
jne 0x70ea54
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
sete cl
test ebx, ebx
setne dl
or dl, cl
mov ecx, ebx
jne 0x70ea54
xor eax, dword [esi + 0x98]
xor ecx, ecx
or eax, dword [esi + 0x9c]
je 0x70ea54
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.0070f240
add esp, 4
test eax, eax
je 0x70eac1
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 [0x8010bc]
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 0x70eb06
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
call dword [0x8010bc]
push dword [ebp - 0x2c]
push ebx
call ecx
add esp, 8
mov dword [ebp - 0x30], 0
mov ecx, 0
test eax, eax
jne 0x70eb13
jmp 0x70eb0d
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
sete cl
mov edi, ebx
test ebx, ebx
setne dl
or dl, cl
jne 0x70ea6b
xor eax, dword [esi + 0xa0]
xor edi, edi
or eax, dword [esi + 0xa4]
je 0x70ea6b
xor eax, eax
test byte [ebp - 0x34], 8
mov edi, 0xffffff99
cmovne edi, eax
jmp 0x70ea6b
mov eax, dword [ebp - 0x30]
cmp eax, dword [esi + 0xa8]
sete cl
jmp 0x70eb13
movzx eax, word [ebp - 0x1e]
mov dword [ebp - 0x30], eax
test edi, edi
je 0x70eaf8
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 [0x8010bc]
push 2
lea eax, [ebp - 0x1e]
push eax
push edi
push ebx
call ecx
add esp, 0x10
cmp eax, 2
je 0x70eb5c
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
call dword [0x8010bc]
push edi
push ebx
call ecx
add esp, 8
test eax, eax
jne 0x70e7f9
xor eax, eax
jmp 0x70eb60
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 0x70e7fe
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], eax
push 0xd0
call fcn.004bfc20
add esp, 4
test eax, eax
je 0x70e826
mov ebx, eax
push 0x4000
call fcn.004bfc20
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 0x70e81d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x48], 0
test ecx, ecx
je 0x70ebf6
mov edx, dword [esi + 0x8c]
mov dword [ecx], edx
test eax, eax
mov ebx, dword [ebp + 0x14]
je 0x70ec24
mov dword [eax], 6
mov edx, dword [esi + 0x88]
and edx, 6
xor ecx, ecx
inc ecx
jmp dword [edx*4 + 0x7a1358]
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 0x70ecc9
xor eax, 8
or ebx, eax
mov ecx, dword [ebp - 0x2c]
jne 0x70ecd6
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.3.0.1_motley
push 0xfffffffffffffff1
push eax
call fcn.0049fae0
add esp, 0x10
test eax, eax
jne 0x70eef4
mov dword [edi + 0x48], 8
jmp 0x70ecd3
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 0x70e7fe
mov edi, eax
call fcn.00660090
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 0x70edd0
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 0x70ed73
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.00731fd0
add esp, 0x14
test eax, eax
jne 0x70e826
mov edi, dword [esi + 0x30]
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x1c]
call dword [0x8010bc]
lea eax, [ebp - 0x1c]
push 0xc
push eax
push edi
push ebx
call ecx
add esp, 0x10
mov ebx, 0xffffff98
cmp eax, 0xc
jb 0x70e7fe
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 0x70ee4c
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 0x70e7fe
mov ebx, eax
push dword [edi]
call fcn.004bfb50
add esp, 4
push edi
call fcn.004bfb50
add esp, 4
jmp 0x70e7fe