Function at 0x427ed0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

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 0x427f17
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004295d6
mov esp, ebp
pop ebp
ret 0xc
cmp byte [esi + 0x2c], 0
je 0x427f35
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004295d6
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi], 0
mov dword [ebp - 0x4b4], 0
je 0x427f54
cmp dword [ebp + 0x10], 4
je 0x427f54
mov dword [ebp - 0x4b4], 0xc
push eax
lea eax, [ebp - 0x13c]
push eax
call dword [0x45158c]
cmp byte [ebp - 0x13c], 0
je 0x4287ca
lea eax, [ebp - 0x13c]
cmp byte [eax], 0x5c
jne 0x427f7d
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x427f75
cmp dword [ebp + 0x10], 4
sete bl
mov byte [ebp - 0x4a1], bl
test bl, bl
je 0x427fb7
lea ecx, [ebp - 0x13c]
push ecx
call fcn.0042a170
lea edx, [ebp - 0x13c]
add esp, 4
cmp byte [eax + edx - 1], 0x2f
mov byte [ebp - 0x4a0], 1
jne 0x427fbe
mov byte [ebp - 0x4a0], 0
mov dword [ebp - 0x4b0], 8
test bl, bl
jne 0x427fe1
lea edi, [ebp - 0x13c]
call fcn.004271e0
mov edi, dword [ebp - 0x4a8]
test al, al
je 0x427feb
mov dword [ebp - 0x4b0], 0
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x427ffc
mov eax, edi
call fcn.00427820
jmp 0x428036
cmp eax, 1
jne 0x428016
mov eax, dword [ebp + 0xc]
push eax
mov ecx, edi
mov ebx, esi
call fcn.004278a0
mov bl, byte [ebp - 0x4a1]
jmp 0x428036
cmp eax, 3
jne 0x428028
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.00427a00
jmp 0x428036
cmp eax, 4
jne 0x4287ca
call fcn.00427b30
xor edi, edi
cmp eax, edi
jne 0x4287cf
push 0x447631
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 0x4280a0
push 0x4499d4
lea eax, [ebp - 0x354]
push eax
call dword [0x4514e0]
inc dword [ebp - 0x484]
push 0x447631
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 0x428110
test bl, bl
jne 0x428110
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 0x42813d
mov eax, dword [esi + 0x70]
cmp eax, edi
jl 0x42813d
add eax, dword [ebp - 0x4b4]
mov dword [ebp - 0x48c], eax
jmp 0x428143
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.00429850
mov edx, dword [ebp - 0x35c]
add esp, 0xc
lea edi, [ebp - 0x49c]
mov byte [edx + 2], 5
call fcn.00426700
test eax, eax
je 0x42827b
call fcn.00427cf0
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004295d6
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 0x4282af
call fcn.00427cf0
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004295d6
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 0x4282e0
lea esp, [esp]
mov cl, byte [esi]
test cl, cl
je 0x4282e0
mov edx, edi
call fcn.00427190
inc esi
jne 0x4282d0
cmp byte [0x4516a9], 0
jne 0x428302
call dword [0x451338]
mov esi, eax
call dword [0x45154c]
xor esi, eax
push esi
call fcn.0042ceef
add esp, 4
xor esi, esi
call fcn.0042cf01
sar eax, 7
mov byte [ebp + esi - 0x28], al
inc esi
cmp esi, 0xc
jl 0x428304
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 + 0x447820]
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 + 0x447820]
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 + 0x447820]
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 + 0x447820]
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 + 0x447820]
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 + 0x447820]
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 + 0x447820]
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 + 0x447820]
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 0x428338
mov esi, dword [ebp - 0x4b8]
mov bl, byte [ebp - 0x4a1]
xor edi, edi
cmp dword [esi], edi
je 0x428591
test bl, bl
jne 0x428582
push 0xc
lea edx, [ebp - 0x28]
push edx
mov ecx, esi
call fcn.00427610
add dword [esi + 0x18], 0xc
cmp dword [esi], edi
je 0x428591
test bl, bl
jne 0x428591
mov eax, 1
jmp 0x428593
xor eax, eax
test bl, bl
mov ebx, dword [ebp - 0x4b0]
mov byte [esi + 0x2d], al
jne 0x4285c6
cmp ebx, 8
jne 0x4285b7
lea eax, [ebp - 0x49c]
push eax
mov edi, esi
call fcn.00427d50
mov edi, eax
jmp 0x4285cc
test ebx, ebx
jne 0x4285cc
mov edi, esi
call fcn.00427e60
mov edi, eax
jmp 0x4285cc
mov dword [esi + 0x90], edi
cmp byte [esi + 0x80], 0
mov byte [esi + 0x2d], 0
je 0x4285e7
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4285e7
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 0x4287cf
test edi, edi
jne 0x428263
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 0x4286c5
cmp dword [esi], 0
je 0x42864e
cmp byte [ebp - 0x4a1], 0
je 0x4286c5
test byte [ebp - 0x498], 1
mov word [ebp - 0x496], bx
jne 0x42866a
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.00427770
test al, al
je 0x4286ad
lea edi, [ebp - 0x49c]
call fcn.00426700
test eax, eax
jne 0x428263
mov edx, dword [esi + 0x18]
mov eax, esi
call fcn.00427770
test al, al
jne 0x428713
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004295d6
mov esp, ebp
pop ebp
ret 0xc
cmp word [ebp - 0x496], bx
je 0x4286e6
mov eax, 0x4000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004295d6
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
jne 0x4286ee
test dl, dl
je 0x4286ce
lea edi, [ebp - 0x49c]
call fcn.004269a0
test eax, eax
jne 0x428263
mov ax, word [ebp - 0x470]
add dword [esi + 0x18], 0x10
mov word [ebp - 0x498], ax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4287cf
mov ecx, dword [ebp - 0x47c]
push ecx
call fcn.0042a39b
mov edx, dword [ebp - 0x47c]
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x35c]
push edx
push eax
push edi
call fcn.00429850
add esp, 0xc
push 0x360
mov dword [ebp - 0x35c], edi
call fcn.0042a39b
add esp, 4
push 0x360
lea ecx, [ebp - 0x49c]
mov edi, eax
push ecx
push edi
call fcn.00429850
mov eax, dword [esi + 0x44]
add esp, 0xc
test eax, eax
jne 0x42878d
mov dword [esi + 0x44], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004295d6
mov esp, ebp
pop ebp
ret 0xc
cmp dword [eax + 0x35c], 0
je 0x4287af
jmp 0x4287a0
mov eax, dword [eax + 0x35c]
cmp dword [eax + 0x35c], 0
jne 0x4287a0
mov dword [eax + 0x35c], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004295d6
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.004295d6
mov esp, ebp
pop ebp
ret 0xc