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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b0
mov eax, dword [0x44f6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4b0], edi
mov dword [ebp - 0x4a0], ecx
je 0x429494
mov eax, 0x40000
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ab4a
mov esp, ebp
pop ebp
ret 0x10
cmp byte [edi + 0x2c], 0
je 0x4294b0
mov eax, 0x50000
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ab4a
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi], 0
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x4a8], 0
je 0x4294d2
cmp esi, 4
je 0x4294d2
mov dword [ebp - 0x4a8], 0xc
push eax
lea edx, [ebp - 0x134]
push edx
call dword [0x4620ec]
cmp byte [ebp - 0x134], 0
jne 0x429500
pop esi
mov eax, 0x10000
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ab4a
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x134]
cmp byte [eax], 0x5c
jne 0x42950e
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x429506
cmp esi, 4
sete al
mov byte [ebp - 0x499], al
test al, al
je 0x429547
lea eax, [ebp - 0x134]
push eax
call fcn.0042c690
lea ecx, [ebp - 0x134]
add esp, 4
cmp byte [eax + ecx - 1], 0x2f
mov byte [ebp - 0x498], 1
jne 0x42954e
mov byte [ebp - 0x498], 0
cmp byte [ebp - 0x499], 0
push ebx
mov ebx, 8
mov dword [ebp - 0x4ac], ebx
jne 0x429576
lea edx, [ebp - 0x134]
push edx
call fcn.00427150
add esp, 4
test al, al
je 0x42957e
xor ebx, ebx
mov dword [ebp - 0x4ac], ebx
cmp esi, 2
jne 0x429593
mov eax, dword [ebp - 0x4a0]
push eax
mov ecx, edi
call fcn.00428630
jmp 0x4295d5
cmp esi, 1
jne 0x4295ac
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x4a0]
push ecx
push edx
mov ecx, edi
call fcn.00427860
jmp 0x4295d5
cmp esi, 3
jne 0x4295c5
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x4a0]
push eax
push ecx
mov ecx, edi
call fcn.004279c0
jmp 0x4295d5
cmp esi, 4
jne 0x429d8a
mov ecx, edi
call fcn.00427b00
xor esi, esi
cmp eax, esi
jne 0x429d8f
push 0x443c24
lea edx, [ebp - 0x45c]
push edx
mov dword [ebp - 0x138], esi
call dword [0x4620ec]
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x34c]
push ecx
call dword [0x4620ec]
lea edx, [ebp - 0x34c]
push edx
call dword [0x461f38]
cmp byte [ebp - 0x498], 0
mov dword [ebp - 0x47c], eax
je 0x42963f
push 0x445864
lea eax, [ebp - 0x34c]
push eax
call dword [0x462040]
inc dword [ebp - 0x47c]
push 0x443c24
lea ecx, [ebp - 0x248]
push ecx
call dword [0x4620ec]
xor edx, edx
mov word [ebp - 0x46a], dx
mov edx, dword [edi + 0x68]
mov eax, 8
mov dword [ebp - 0x350], esi
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x144], 1
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x494], 0x140b17
mov dword [ebp - 0x48c], edx
mov dword [ebp - 0x488], esi
mov word [ebp - 0x490], ax
cmp dword [edi], esi
je 0x4296b4
cmp byte [ebp - 0x499], 0
jne 0x4296b4
mov eax, 9
mov word [ebp - 0x490], ax
mov word [ebp - 0x468], ax
mov word [ebp - 0x48e], bx
cmp ebx, esi
jne 0x4296db
mov eax, dword [edi + 0x70]
cmp eax, esi
jl 0x4296db
add eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x484], eax
jmp 0x4296e1
mov dword [ebp - 0x484], esi
mov edx, dword [edi + 0x70]
mov ecx, dword [edi + 0x4c]
mov dword [ebp - 0x480], edx
mov edx, dword [edi + 0x18]
add edx, dword [edi + 0x10]
xor eax, eax
mov dword [ebp - 0x460], edx
mov dl, byte [edi + 0x58]
mov word [ebp - 0x46c], ax
mov dword [ebp - 0x464], ecx
mov byte [ebp - 0x13], dl
lea eax, [ebp - 0x18]
mov dword [ebp - 0x358], eax
mov eax, dword [edi + 0x5c]
mov ebx, eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x354], ecx
mov ecx, dword [edi + 0x58]
mov edx, ecx
shrd edx, ebx, 8
sar ebx, 8
mov byte [ebp - 0x12], dl
mov ebx, eax
mov edx, ecx
shrd edx, ebx, 0x10
shrd ecx, eax, 0x18
sar eax, 0x18
movzx eax, byte [edi + 0x50]
sar ebx, 0x10
mov byte [ebp - 0x11], dl
mov byte [ebp - 0xf], al
mov eax, dword [edi + 0x54]
mov byte [ebp - 0x10], cl
mov ecx, dword [edi + 0x50]
mov ebx, eax
mov edx, ecx
shrd edx, ebx, 8
sar ebx, 8
mov byte [ebp - 0xe], dl
mov edx, ecx
shrd ecx, eax, 0x18
mov ebx, eax
shrd edx, ebx, 0x10
sar eax, 0x18
movzx eax, byte [edi + 0x60]
sar ebx, 0x10
mov byte [ebp - 0xc], cl
mov ecx, dword [edi + 0x60]
mov byte [ebp - 0xb], al
mov eax, dword [edi + 0x64]
mov byte [ebp - 0xd], dl
mov edx, ecx
mov ebx, eax
shrd edx, ebx, 8
mov byte [ebp - 0xa], dl
mov edx, ecx
shrd ecx, eax, 0x18
sar ebx, 8
mov ebx, eax
shrd edx, ebx, 0x10
sar eax, 0x18
push 9
lea eax, [ebp - 0x18]
mov byte [ebp - 8], cl
push eax
lea ecx, [ebp - 0x30]
push ecx
mov dword [ebp - 0x478], 0x11
mov dword [ebp - 0x474], 9
mov dword [ebp - 0x18], 0xd5455
mov byte [ebp - 0x14], 7
sar ebx, 0x10
mov byte [ebp - 9], dl
call fcn.0042c0b0
mov edx, dword [ebp - 0x354]
push edi
lea eax, [ebp - 0x494]
push 0x427a10
push eax
mov byte [edx + 2], 5
call fcn.004267a0
add esp, 0x18
test eax, eax
je 0x429822
mov ecx, edi
call fcn.00427cc0
pop ebx
pop esi
mov eax, 0x400
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ab4a
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x478]
mov edx, dword [ebp - 0x47c]
lea eax, [ecx + edx + 0x1e]
add dword [edi + 0x18], eax
cmp dword [edi + 0x14], esi
je 0x429857
mov ecx, edi
call fcn.00427cc0
mov eax, dword [edi + 0x14]
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ab4a
mov esp, ebp
pop ebp
ret 0x10
lea esi, [edi + 0x30]
mov dword [edi + 0x34], 0x23456789
mov dword [edi + 0x38], 0x34567890
mov edi, dword [edi]
mov dword [esi], 0x12345678
test edi, edi
je 0x429888
movzx eax, byte [edi]
test al, al
je 0x429888
push eax
push esi
call fcn.00427100
add esp, 8
inc edi
jne 0x429874
cmp byte [0x462170], 0
jne 0x4298aa
call dword [0x461e98]
mov edi, eax
call dword [0x4620ac]
xor edi, eax
push edi
call fcn.0042e95b
add esp, 4
xor edi, edi
lea esp, [esp]
call fcn.0042e96d
sar eax, 7
mov byte [ebp + edi - 0x24], al
inc edi
cmp edi, 0xc
jl 0x4298b0
mov ecx, dword [ebp - 0x48c]
mov edi, dword [esi + 4]
mov eax, dword [esi + 8]
shr ecx, 8
xor edx, edx
mov byte [ebp - 0x19], cl
mov ecx, dword [esi]
mov dword [ebp - 0x4a0], edx
mov dword [ebp - 0x4a4], edi
mov dl, byte [ebp + edx - 0x24]
movsx edx, dl
xor edx, ecx
and edx, 0xff
mov edi, ecx
mov ecx, dword [edx*4 + str.FALSE]
shr edi, 8
xor ecx, edi
movzx edi, cl
add edi, dword [ebp - 0x4a4]
mov ebx, eax
imul edi, edi, 0x8088405
and ebx, 0xfffd
or ebx, 2
inc edi
mov edx, edi
shr edx, 0x18
xor edx, eax
shr eax, 8
mov dword [esi], ecx
mov dword [esi + 4], edi
and edx, 0xff
xor eax, dword [edx*4 + str.FALSE]
mov edx, ebx
xor edx, 1
imul edx, ebx
mov ebx, dword [ebp - 0x4a0]
shr edx, 8
xor dl, byte [ebp + ebx - 0x24]
mov dword [esi + 8], eax
mov byte [ebp + ebx - 0x24], dl
mov edx, ebx
movzx ebx, byte [ebp + edx - 0x23]
mov byte [ebp - 0x498], bl
mov ebx, eax
and ebx, 0xfffd
or ebx, 2
mov dword [ebp - 0x4a0], ebx
movsx ebx, byte [ebp - 0x498]
xor ebx, ecx
and ebx, 0xff
mov ebx, dword [ebx*4 + str.FALSE]
shr ecx, 8
xor ebx, ecx
movzx ecx, bl
add ecx, edi
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi], ebx
mov edi, ecx
shr edi, 0x18
xor edi, eax
shr eax, 8
mov dword [ebp - 0x4a4], ebx
and edi, 0xff
mov dword [esi + 4], ecx
xor eax, dword [edi*4 + str.FALSE]
mov edi, eax
mov eax, dword [ebp - 0x4a0]
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor bl, byte [ebp - 0x498]
mov eax, edi
mov byte [ebp + edx - 0x23], bl
mov bl, byte [ebp + edx - 0x22]
and eax, 0xfffd
or eax, 2
mov byte [ebp - 0x498], bl
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp - 0x4a4]
movsx ebx, bl
xor ebx, eax
shr eax, 8
and ebx, 0xff
mov dword [ebp - 0x4a4], eax
mov dword [esi + 8], edi
mov eax, dword [ebx*4 + str.FALSE]
xor eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x4a4], eax
mov dword [esi], eax
movzx eax, al
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
shr ecx, 0x18
xor ecx, edi
mov dword [esi + 4], eax
and ecx, 0xff
shr edi, 8
xor edi, dword [ecx*4 + str.FALSE]
mov ecx, dword [ebp - 0x4a0]
mov ebx, ecx
xor ebx, 1
imul ebx, ecx
shr ebx, 8
xor bl, byte [ebp - 0x498]
mov ecx, edi
mov byte [ebp + edx - 0x22], bl
mov bl, byte [ebp + edx - 0x21]
mov byte [ebp - 0x498], bl
and ecx, 0xfffd
movsx ebx, bl
or ecx, 2
mov dword [ebp - 0x4a0], ecx
mov ecx, dword [ebp - 0x4a4]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
mov dword [esi + 8], edi
mov dword [ebp - 0x4a4], ecx
mov ecx, dword [ebx*4 + str.FALSE]
xor ecx, dword [ebp - 0x4a4]
add edx, 4
movzx ebx, cl
add eax, ebx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
mov dword [ebp - 0x4a4], eax
shr eax, 0x18
xor eax, edi
and eax, 0xff
shr edi, 8
mov dword [esi], ecx
xor edi, dword [eax*4 + str.FALSE]
mov eax, edi
mov edi, dword [ebp - 0x4a0]
mov ebx, edi
xor ebx, 1
imul ebx, edi
shr ebx, 8
xor bl, byte [ebp - 0x498]
mov dword [esi + 8], eax
mov byte [ebp + edx - 0x25], bl
mov dword [ebp - 0x4a0], edx
cmp edx, 0xc
jl 0x4298e4
mov esi, dword [ebp - 0x4b0]
mov bl, byte [ebp - 0x499]
xor edi, edi
cmp dword [esi], edi
je 0x429b3d
test bl, bl
jne 0x429b2e
push 0xc
lea edx, [ebp - 0x24]
push edx
mov ecx, esi
call fcn.00427690
add dword [esi + 0x18], 0xc
cmp dword [esi], edi
je 0x429b3d
test bl, bl
jne 0x429b3d
mov eax, 1
jmp 0x429b3f
xor eax, eax
test bl, bl
mov ebx, dword [ebp - 0x4ac]
mov byte [esi + 0x2d], al
jne 0x429b72
cmp ebx, 8
jne 0x429b63
lea eax, [ebp - 0x494]
push eax
mov ecx, esi
call fcn.00429330
mov edi, eax
jmp 0x429b78
test ebx, ebx
jne 0x429b78
mov ecx, esi
call fcn.00427d20
mov edi, eax
jmp 0x429b78
mov dword [esi + 0x90], edi
cmp byte [esi + 0x80], 0
mov byte [esi + 0x2d], 0
je 0x429b93
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x429b93
push eax
call dword [0x461ed8]
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 0x429d8f
test edi, edi
jne 0x42980a
mov eax, dword [ebp - 0x4a8]
mov edi, dword [esi + 0x78]
add eax, edx
cmp dword [ebp - 0x484], eax
mov dword [ebp - 0x488], edi
sete dl
cmp byte [esi + 0x1c], 0
mov dword [ebp - 0x484], eax
mov dword [ebp - 0x480], ecx
je 0x429c81
cmp dword [esi], 0
je 0x429bfe
cmp byte [ebp - 0x499], 0
je 0x429c81
test byte [ebp - 0x490], 1
mov word [ebp - 0x48e], bx
jne 0x429c1a
mov ecx, 0xfff7
and word [ebp - 0x490], cx
mov eax, dword [ebp - 0x460]
sub eax, dword [esi + 0x10]
mov dx, word [ebp - 0x490]
push eax
mov ecx, esi
mov word [ebp - 0x468], dx
call fcn.004277f0
test al, al
je 0x429c69
push esi
lea ecx, [ebp - 0x494]
push 0x427a10
push ecx
call fcn.004267a0
add esp, 0xc
test eax, eax
jne 0x42980a
mov edx, dword [esi + 0x18]
push edx
mov ecx, esi
call fcn.004277f0
test al, al
jne 0x429cd9
pop ebx
pop esi
mov eax, 0x2000000
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ab4a
mov esp, ebp
pop ebp
ret 0x10
cmp word [ebp - 0x48e], bx
jne 0x429c92
test ebx, ebx
jne 0x429caa
test dl, dl
jne 0x429caa
pop ebx
pop esi
mov eax, 0x4000000
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ab4a
mov esp, ebp
pop ebp
ret 0x10
push esi
lea eax, [ebp - 0x494]
push 0x427a10
push eax
call fcn.004269e0
add esp, 0xc
test eax, eax
jne 0x42980a
mov cx, word [ebp - 0x468]
add dword [esi + 0x18], 0x10
mov word [ebp - 0x490], cx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x429d8f
mov edx, dword [ebp - 0x474]
push edx
call fcn.0042cc21
mov ecx, dword [ebp - 0x354]
mov edi, eax
mov eax, dword [ebp - 0x474]
push eax
push ecx
push edi
call fcn.0042c0b0
push 0x360
mov dword [ebp - 0x354], edi
call fcn.0042cc21
push 0x360
lea edx, [ebp - 0x494]
mov edi, eax
push edx
push edi
call fcn.0042c0b0
mov eax, dword [esi + 0x44]
add esp, 0x20
test eax, eax
jne 0x429d4a
pop ebx
mov dword [esi + 0x44], edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ab4a
mov esp, ebp
pop ebp
ret 0x10
cmp dword [eax + 0x35c], 0
je 0x429d6f
jmp 0x429d60
mov eax, dword [eax + 0x35c]
cmp dword [eax + 0x35c], 0
jne 0x429d60
pop ebx
mov dword [eax + 0x35c], edi
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ab4a
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x10000
mov ecx, dword [ebp - 4]
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.0042ab4a
mov esp, ebp
pop ebp
ret 0x10