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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
mov eax, dword [0x44e664]
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 0x428bd7
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042a296
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0x2c], 0
je 0x428bf5
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042a296
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi], 0
mov dword [ebp - 0x4b4], 0
je 0x428c14
cmp dword [ebp + 0x10], 4
je 0x428c14
mov dword [ebp - 0x4b4], 0xc
push eax
lea eax, [ebp - 0x13c]
push eax
call dword [0x45158c]
cmp byte [ebp - 0x13c], 0
je 0x42948a
lea eax, [ebp - 0x13c]
cmp byte [eax], 0x5c
jne 0x428c3d
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x428c35
cmp dword [ebp + 0x10], 4
sete bl
mov byte [ebp - 0x4a1], bl
test bl, bl
je 0x428c77
lea ecx, [ebp - 0x13c]
push ecx
call fcn.0042a410
lea edx, [ebp - 0x13c]
add esp, 4
cmp byte [eax + edx - 1], 0x2f
mov byte [ebp - 0x4a0], 1
jne 0x428c7e
mov byte [ebp - 0x4a0], 0
mov dword [ebp - 0x4b0], 8
test bl, bl
jne 0x428ca1
lea edi, [ebp - 0x13c]
call fcn.00427ea0
mov edi, dword [ebp - 0x4a8]
test al, al
je 0x428cab
mov dword [ebp - 0x4b0], 0
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x428cbc
mov eax, edi
call fcn.004284e0
jmp 0x428cf6
cmp eax, 1
jne 0x428cd6
mov eax, dword [ebp + 0xc]
push eax
mov ecx, edi
mov ebx, esi
call fcn.00428560
mov bl, byte [ebp - 0x4a1]
jmp 0x428cf6
cmp eax, 3
jne 0x428ce8
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.004286c0
jmp 0x428cf6
cmp eax, 4
jne 0x42948a
call fcn.004287f0
xor edi, edi
cmp eax, edi
jne 0x42948f
push 0x4475d7
lea edx, [ebp - 0x464]
push edx
mov dword [ebp - 0x140], edi
call dword [0x45158c]
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x354]
push ecx
call dword [0x45158c]
lea edx, [ebp - 0x354]
push edx
call dword [0x4513d8]
cmp byte [ebp - 0x4a0], 0
mov dword [ebp - 0x484], eax
je 0x428d60
push 0x449980
lea eax, [ebp - 0x354]
push eax
call dword [0x4514e0]
inc dword [ebp - 0x484]
push 0x4475d7
lea ecx, [ebp - 0x250]
push ecx
call dword [0x45158c]
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 0x428dd0
test bl, bl
jne 0x428dd0
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 0x428dfd
mov eax, dword [esi + 0x70]
cmp eax, edi
jl 0x428dfd
add eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x48c], eax
jmp 0x428e03
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.0042a4a0
mov edx, dword [ebp - 0x35c]
add esp, 0xc
lea edi, [ebp - 0x49c]
mov byte [edx + 2], 5
call fcn.004273c0
test eax, eax
je 0x428f3b
call fcn.004289b0
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042a296
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 0x428f6f
call fcn.004289b0
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042a296
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 0x428fa0
lea esp, [esp]
mov cl, byte [esi]
test cl, cl
je 0x428fa0
mov edx, edi
call fcn.00427e50
inc esi
jne 0x428f90
cmp byte [0x4516a9], 0
jne 0x428fc2
call dword [0x451338]
mov esi, eax
call dword [0x45154c]
xor esi, eax
push esi
call fcn.0042db9f
add esp, 4
xor esi, esi
call fcn.0042dbb1
sar eax, 7
mov byte [ebp + esi - 0x28], al
inc esi
cmp esi, 0xc
jl 0x428fc4
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 + 0x4477c8]
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 + 0x4477c8]
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 + 0x4477c8]
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 + 0x4477c8]
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 + 0x4477c8]
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 + 0x4477c8]
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 + 0x4477c8]
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 + 0x4477c8]
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 0x428ff8
mov esi, dword [ebp - 0x4b8]
mov bl, byte [ebp - 0x4a1]
xor edi, edi
cmp dword [esi], edi
je 0x429251
test bl, bl
jne 0x429242
push 0xc
lea edx, [ebp - 0x28]
push edx
mov ecx, esi
call fcn.004282d0
add dword [esi + 0x18], 0xc
cmp dword [esi], edi
je 0x429251
test bl, bl
jne 0x429251
mov eax, 1
jmp 0x429253
xor eax, eax
test bl, bl
mov ebx, dword [ebp - 0x4b0]
mov byte [esi + 0x2d], al
jne 0x429286
cmp ebx, 8
jne 0x429277
lea eax, [ebp - 0x49c]
push eax
mov edi, esi
call fcn.00428a10
mov edi, eax
jmp 0x42928c
test ebx, ebx
jne 0x42928c
mov edi, esi
call fcn.00428b20
mov edi, eax
jmp 0x42928c
mov dword [esi + 0x90], edi
cmp byte [esi + 0x80], 0
mov byte [esi + 0x2d], 0
je 0x4292a7
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4292a7
push eax
call dword [0x451378]
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 0x42948f
test edi, edi
jne 0x428f23
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 0x429385
cmp dword [esi], 0
je 0x42930e
cmp byte [ebp - 0x4a1], 0
je 0x429385
test byte [ebp - 0x498], 1
mov word [ebp - 0x496], bx
jne 0x42932a
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.00428430
test al, al
je 0x42936d
lea edi, [ebp - 0x49c]
call fcn.004273c0
test eax, eax
jne 0x428f23
mov edx, dword [esi + 0x18]
mov eax, esi
call fcn.00428430
test al, al
jne 0x4293d3
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042a296
mov esp, ebp
pop ebp
ret 0xc
cmp word [ebp - 0x496], bx
je 0x4293a6
mov eax, 0x4000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042a296
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
jne 0x4293ae
test dl, dl
je 0x42938e
lea edi, [ebp - 0x49c]
call fcn.00427660
test eax, eax
jne 0x428f23
mov ax, word [ebp - 0x470]
add dword [esi + 0x18], 0x10
mov word [ebp - 0x498], ax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x42948f
mov ecx, dword [ebp - 0x47c]
push ecx
call fcn.0042af51
mov edx, dword [ebp - 0x47c]
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x35c]
push edx
push eax
push edi
call fcn.0042a4a0
add esp, 0xc
push 0x360
mov dword [ebp - 0x35c], edi
call fcn.0042af51
add esp, 4
push 0x360
lea ecx, [ebp - 0x49c]
mov edi, eax
push ecx
push edi
call fcn.0042a4a0
mov eax, dword [esi + 0x44]
add esp, 0xc
test eax, eax
jne 0x42944d
mov dword [esi + 0x44], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042a296
mov esp, ebp
pop ebp
ret 0xc
cmp dword [eax + 0x35c], 0
je 0x42946f
jmp 0x429460
mov eax, dword [eax + 0x35c]
cmp dword [eax + 0x35c], 0
jne 0x429460
mov dword [eax + 0x35c], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042a296
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.0042a296
mov esp, ebp
pop ebp
ret 0xc