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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
mov eax, dword [0x456664]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
push edi
mov edi, edx
mov dword [ebp - 0x4b8], esi
mov dword [ebp - 0x4a8], edi
je 0x42e397
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042fa56
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0x2c], 0
je 0x42e3b5
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042fa56
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi], 0
mov dword [ebp - 0x4b4], 0
je 0x42e3d4
cmp dword [ebp + 0x10], 4
je 0x42e3d4
mov dword [ebp - 0x4b4], 0xc
push eax
lea eax, [ebp - 0x13c]
push eax
call dword [0x4595cc]
cmp byte [ebp - 0x13c], 0
je 0x42ec4a
lea eax, [ebp - 0x13c]
cmp byte [eax], 0x5c
jne 0x42e3fd
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x42e3f5
cmp dword [ebp + 0x10], 4
sete bl
mov byte [ebp - 0x4a1], bl
test bl, bl
je 0x42e437
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00431430
lea edx, [ebp - 0x13c]
add esp, 4
cmp byte [eax + edx - 1], 0x2f
mov byte [ebp - 0x4a0], 1
jne 0x42e43e
mov byte [ebp - 0x4a0], 0
mov dword [ebp - 0x4b0], 8
test bl, bl
jne 0x42e461
lea edi, [ebp - 0x13c]
call fcn.0042d660
mov edi, dword [ebp - 0x4a8]
test al, al
je 0x42e46b
mov dword [ebp - 0x4b0], 0
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x42e47c
mov eax, edi
call fcn.0042dca0
jmp 0x42e4b6
cmp eax, 1
jne 0x42e496
mov eax, dword [ebp + 0xc]
push eax
mov ecx, edi
mov ebx, esi
call fcn.0042dd20
mov bl, byte [ebp - 0x4a1]
jmp 0x42e4b6
cmp eax, 3
jne 0x42e4a8
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.0042de80
jmp 0x42e4b6
cmp eax, 4
jne 0x42ec4a
call fcn.0042dfb0
xor edi, edi
cmp eax, edi
jne 0x42ec4f
push 0x44e656
lea edx, [ebp - 0x464]
push edx
mov dword [ebp - 0x140], edi
call dword [0x4595cc]
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x354]
push ecx
call dword [0x4595cc]
lea edx, [ebp - 0x354]
push edx
call dword [0x459418]
cmp byte [ebp - 0x4a0], 0
mov dword [ebp - 0x484], eax
je 0x42e520
push 0x450c30
lea eax, [ebp - 0x354]
push eax
call dword [0x459520]
inc dword [ebp - 0x484]
push 0x44e656
lea ecx, [ebp - 0x250]
push ecx
call dword [0x4595cc]
xor edx, edx
mov word [ebp - 0x472], dx
mov edx, dword [esi + 0x68]
mov eax, 8
mov dword [ebp - 0x358], edi
mov dword [ebp - 0x478], edi
mov dword [ebp - 0x14c], 1
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x49c], 0x140b17
mov dword [ebp - 0x494], edx
mov dword [ebp - 0x490], edi
mov word [ebp - 0x498], ax
cmp dword [esi], edi
je 0x42e590
test bl, bl
jne 0x42e590
mov eax, 9
mov word [ebp - 0x498], ax
mov word [ebp - 0x470], ax
mov eax, dword [ebp - 0x4b0]
mov word [ebp - 0x496], ax
cmp eax, edi
jne 0x42e5bd
mov eax, dword [esi + 0x70]
cmp eax, edi
jl 0x42e5bd
add eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x48c], eax
jmp 0x42e5c3
mov dword [ebp - 0x48c], edi
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0x4c]
mov dword [ebp - 0x488], edx
mov edx, dword [esi + 0x18]
add edx, dword [esi + 0x10]
xor eax, eax
mov dword [ebp - 0x468], edx
mov dl, byte [esi + 0x58]
mov word [ebp - 0x474], ax
mov dword [ebp - 0x46c], ecx
mov byte [ebp - 0x17], dl
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x360], eax
mov eax, dword [esi + 0x5c]
mov edi, eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x35c], ecx
mov ecx, dword [esi + 0x58]
mov edx, ecx
shrd edx, edi, 8
sar edi, 8
mov byte [ebp - 0x16], dl
mov edi, eax
mov edx, ecx
shrd edx, edi, 0x10
shrd ecx, eax, 0x18
sar eax, 0x18
movzx eax, byte [esi + 0x50]
sar edi, 0x10
mov byte [ebp - 0x15], dl
mov byte [ebp - 0x13], al
mov eax, dword [esi + 0x54]
mov byte [ebp - 0x14], cl
mov ecx, dword [esi + 0x50]
mov edi, eax
mov edx, ecx
shrd edx, edi, 8
sar edi, 8
mov byte [ebp - 0x12], dl
mov edx, ecx
shrd ecx, eax, 0x18
mov edi, eax
shrd edx, edi, 0x10
sar eax, 0x18
movzx eax, byte [esi + 0x60]
sar edi, 0x10
mov byte [ebp - 0x10], cl
mov ecx, dword [esi + 0x60]
mov byte [ebp - 0xf], al
mov eax, dword [esi + 0x64]
mov byte [ebp - 0x11], dl
mov edx, ecx
mov edi, eax
shrd edx, edi, 8
mov byte [ebp - 0xe], dl
mov edx, ecx
shrd ecx, eax, 0x18
sar edi, 8
mov edi, eax
shrd edx, edi, 0x10
sar eax, 0x18
push 9
lea eax, [ebp - 0x1c]
mov byte [ebp - 0xc], cl
push eax
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x480], 0x11
mov dword [ebp - 0x47c], 9
mov dword [ebp - 0x1c], 0xd5455
mov byte [ebp - 0x18], 7
sar edi, 0x10
mov byte [ebp - 0xd], dl
call fcn.0042fa70
mov edx, dword [ebp - 0x35c]
add esp, 0xc
lea edi, [ebp - 0x49c]
mov byte [edx + 2], 5
call fcn.0042cb80
test eax, eax
je 0x42e6fb
call fcn.0042e170
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042fa56
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x484]
mov ecx, dword [ebp - 0x480]
lea edx, [ecx + eax + 0x1e]
add dword [esi + 0x18], edx
cmp dword [esi + 0x14], 0
je 0x42e72f
call fcn.0042e170
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042fa56
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0x30]
mov dword [esi + 0x34], 0x23456789
mov dword [esi + 0x38], 0x34567890
mov esi, dword [esi]
mov dword [edi], 0x12345678
test esi, esi
je 0x42e760
lea esp, [esp]
mov cl, byte [esi]
test cl, cl
je 0x42e760
mov edx, edi
call fcn.0042d610
inc esi
jne 0x42e750
cmp byte [0x4596e9], 0
jne 0x42e782
call dword [0x459378]
mov esi, eax
call dword [0x45958c]
xor esi, eax
push esi
call fcn.004333b4
add esp, 4
xor esi, esi
call fcn.004333c6
sar eax, 7
mov byte [ebp + esi - 0x28], al
inc esi
cmp esi, 0xc
jl 0x42e784
mov eax, dword [ebp - 0x494]
mov esi, dword [edi + 4]
mov ecx, dword [edi]
shr eax, 8
xor edx, edx
mov byte [ebp - 0x1d], al
mov eax, dword [edi + 8]
mov dword [ebp - 0x4ac], edx
mov dword [ebp - 0x4a8], esi
mov dl, byte [ebp + edx - 0x28]
movsx edx, dl
xor edx, ecx
and edx, 0xff
mov esi, ecx
mov ecx, dword [edx*4 + 0x44e9f0]
shr esi, 8
xor ecx, esi
movzx esi, cl
add esi, dword [ebp - 0x4a8]
mov ebx, eax
imul esi, esi, 0x8088405
and ebx, 0xfffd
or ebx, 2
inc esi
mov edx, esi
shr edx, 0x18
xor edx, eax
shr eax, 8
mov dword [edi], ecx
mov dword [edi + 4], esi
and edx, 0xff
xor eax, dword [edx*4 + 0x44e9f0]
mov edx, ebx
xor edx, 1
imul edx, ebx
mov ebx, dword [ebp - 0x4ac]
shr edx, 8
xor dl, byte [ebp + ebx - 0x28]
mov dword [edi + 8], eax
mov byte [ebp + ebx - 0x28], dl
mov edx, ebx
movzx ebx, byte [ebp + edx - 0x27]
mov byte [ebp - 0x4a0], bl
mov ebx, eax
and ebx, 0xfffd
or ebx, 2
mov dword [ebp - 0x4ac], ebx
movsx ebx, byte [ebp - 0x4a0]
xor ebx, ecx
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x44e9f0]
shr ecx, 8
xor ebx, ecx
movzx ecx, bl
add ecx, esi
imul ecx, ecx, 0x8088405
inc ecx
mov dword [edi], ebx
mov esi, ecx
shr esi, 0x18
xor esi, eax
shr eax, 8
mov dword [ebp - 0x4a8], ebx
and esi, 0xff
mov dword [edi + 4], ecx
xor eax, dword [esi*4 + 0x44e9f0]
mov esi, eax
mov eax, dword [ebp - 0x4ac]
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor bl, byte [ebp - 0x4a0]
mov eax, esi
mov byte [ebp + edx - 0x27], bl
mov bl, byte [ebp + edx - 0x26]
and eax, 0xfffd
or eax, 2
mov byte [ebp - 0x4a0], bl
mov dword [ebp - 0x4ac], eax
mov eax, dword [ebp - 0x4a8]
movsx ebx, bl
xor ebx, eax
shr eax, 8
and ebx, 0xff
mov dword [ebp - 0x4a8], eax
mov dword [edi + 8], esi
mov eax, dword [ebx*4 + 0x44e9f0]
xor eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x4a8], eax
mov dword [edi], eax
movzx eax, al
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
shr ecx, 0x18
xor ecx, esi
mov dword [edi + 4], eax
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x44e9f0]
mov ecx, dword [ebp - 0x4ac]
mov ebx, ecx
xor ebx, 1
imul ebx, ecx
shr ebx, 8
xor bl, byte [ebp - 0x4a0]
mov ecx, esi
mov byte [ebp + edx - 0x26], bl
mov bl, byte [ebp + edx - 0x25]
mov byte [ebp - 0x4a0], bl
and ecx, 0xfffd
movsx ebx, bl
or ecx, 2
mov dword [ebp - 0x4ac], ecx
mov ecx, dword [ebp - 0x4a8]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
mov dword [edi + 8], esi
mov dword [ebp - 0x4a8], ecx
mov ecx, dword [ebx*4 + 0x44e9f0]
xor ecx, dword [ebp - 0x4a8]
add edx, 4
movzx ebx, cl
add eax, ebx
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
mov dword [ebp - 0x4a8], eax
shr eax, 0x18
xor eax, esi
and eax, 0xff
shr esi, 8
mov dword [edi], ecx
xor esi, dword [eax*4 + 0x44e9f0]
mov eax, esi
mov esi, dword [ebp - 0x4ac]
mov ebx, esi
xor ebx, 1
imul ebx, esi
shr ebx, 8
xor bl, byte [ebp - 0x4a0]
mov dword [edi + 8], eax
mov byte [ebp + edx - 0x29], bl
mov dword [ebp - 0x4ac], edx
cmp edx, 0xc
jl 0x42e7b8
mov esi, dword [ebp - 0x4b8]
mov bl, byte [ebp - 0x4a1]
xor edi, edi
cmp dword [esi], edi
je 0x42ea11
test bl, bl
jne 0x42ea02
push 0xc
lea edx, [ebp - 0x28]
push edx
mov ecx, esi
call fcn.0042da90
add dword [esi + 0x18], 0xc
cmp dword [esi], edi
je 0x42ea11
test bl, bl
jne 0x42ea11
mov eax, 1
jmp 0x42ea13
xor eax, eax
test bl, bl
mov ebx, dword [ebp - 0x4b0]
mov byte [esi + 0x2d], al
jne 0x42ea46
cmp ebx, 8
jne 0x42ea37
lea eax, [ebp - 0x49c]
push eax
mov edi, esi
call fcn.0042e1d0
mov edi, eax
jmp 0x42ea4c
test ebx, ebx
jne 0x42ea4c
mov edi, esi
call fcn.0042e2e0
mov edi, eax
jmp 0x42ea4c
mov dword [esi + 0x90], edi
cmp byte [esi + 0x80], 0
mov byte [esi + 0x2d], 0
je 0x42ea67
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x42ea67
push eax
call dword [0x4593b8]
mov edx, dword [esi + 0x90]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x74]
add dword [esi + 0x18], edx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x70], ecx
test eax, eax
jne 0x42ec4f
test edi, edi
jne 0x42e6e3
mov eax, dword [ebp - 0x4b4]
mov edi, dword [esi + 0x78]
add eax, edx
cmp dword [ebp - 0x48c], eax
mov dword [ebp - 0x490], edi
sete dl
cmp byte [esi + 0x1c], 0
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x488], ecx
je 0x42eb45
cmp dword [esi], 0
je 0x42eace
cmp byte [ebp - 0x4a1], 0
je 0x42eb45
test byte [ebp - 0x498], 1
mov word [ebp - 0x496], bx
jne 0x42eaea
mov ecx, 0xfff7
and word [ebp - 0x498], cx
mov dx, word [ebp - 0x498]
mov word [ebp - 0x470], dx
mov edx, dword [ebp - 0x468]
sub edx, dword [esi + 0x10]
mov eax, esi
call fcn.0042dbf0
test al, al
je 0x42eb2d
lea edi, [ebp - 0x49c]
call fcn.0042cb80
test eax, eax
jne 0x42e6e3
mov edx, dword [esi + 0x18]
mov eax, esi
call fcn.0042dbf0
test al, al
jne 0x42eb93
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042fa56
mov esp, ebp
pop ebp
ret 0xc
cmp word [ebp - 0x496], bx
je 0x42eb66
mov eax, 0x4000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042fa56
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
jne 0x42eb6e
test dl, dl
je 0x42eb4e
lea edi, [ebp - 0x49c]
call fcn.0042ce20
test eax, eax
jne 0x42e6e3
mov ax, word [ebp - 0x470]
add dword [esi + 0x18], 0x10
mov word [ebp - 0x498], ax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x42ec4f
mov ecx, dword [ebp - 0x47c]
push ecx
call fcn.00431c3e
mov edx, dword [ebp - 0x47c]
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x35c]
push edx
push eax
push edi
call fcn.0042fa70
add esp, 0xc
push 0x360
mov dword [ebp - 0x35c], edi
call fcn.00431c3e
add esp, 4
push 0x360
lea ecx, [ebp - 0x49c]
mov edi, eax
push ecx
push edi
call fcn.0042fa70
mov eax, dword [esi + 0x44]
add esp, 0xc
test eax, eax
jne 0x42ec0d
mov dword [esi + 0x44], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042fa56
mov esp, ebp
pop ebp
ret 0xc
cmp dword [eax + 0x35c], 0
je 0x42ec2f
jmp 0x42ec20
mov eax, dword [eax + 0x35c]
cmp dword [eax + 0x35c], 0
jne 0x42ec20
mov dword [eax + 0x35c], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042fa56
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x10000
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fa56
mov esp, ebp
pop ebp
ret 0xc