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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ac
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x5a0], eax
mov dword [ebp - 0x5ac], ebx
cmp dword [ebx + 0x14], 0
je 0x420871
mov eax, 0x40000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebx + 0x2c], 0
je 0x42088d
mov eax, 0x50000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x5a4], eax
cmp dword [ebx], eax
je 0x4208ae
cmp edi, 4
mov ecx, 0xc
cmovne eax, ecx
mov dword [ebp - 0x5a4], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x238]
sub edx, ecx
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4208c0
cmp word [ebp - 0x238], ax
jne 0x4208f0
pop edi
mov eax, 0x10000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x238]
mov ecx, 0x2f
jmp 0x420900
cmp word [eax], 0x5c
jne 0x420909
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x420900
cmp edi, 4
push esi
sete dl
mov byte [ebp - 0x59a], dl
test dl, dl
je 0x420951
lea ecx, [ebp - 0x238]
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420930
sub ecx, esi
mov byte [ebp - 0x599], 1
sar ecx, 1
cmp word [ebp + ecx*2 - 0x23a], 0x2f
jne 0x420958
mov byte [ebp - 0x599], 0
mov esi, 8
mov dword [ebp - 0x5a8], esi
test dl, dl
jne 0x42097a
lea eax, [ebp - 0x238]
push eax
call fcn.0041f930
add esp, 4
test al, al
je 0x420982
xor esi, esi
mov dword [ebp - 0x5a8], esi
cmp edi, 2
jne 0x420996
push dword [ebp - 0x5a0]
mov ecx, ebx
call fcn.00420100
jmp 0x4209d4
cmp edi, 1
jne 0x4209ad
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x5a0]
call fcn.004201b0
jmp 0x4209d4
cmp edi, 3
jne 0x4209c4
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x5a0]
call fcn.00420330
jmp 0x4209d4
cmp edi, 4
jne 0x420fec
mov ecx, ebx
call fcn.00420440
test eax, eax
jne 0x420ff1
push eax
push eax
push 0x104
mov dword [ebp - 0x23c], eax
mov byte [ebp - 0x560], al
lea eax, [ebp - 0x450]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x238]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x450]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420a12
sub ecx, edx
mov dword [ebp - 0x580], ecx
cmp byte [ebp - 0x599], al
je 0x420a49
lea edi, [ebp - 0x450]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x420a30
mov ax, word [0x523d2c]
mov word [edi], ax
inc dword [ebp - 0x580]
xor eax, eax
mov byte [ebp - 0x34c], 0
cmp dword [ebx], 0
mov word [ebp - 0x56e], ax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x590], eax
mov eax, 8
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x574], 0
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x598], 0x140b17
mov dword [ebp - 0x58c], 0
mov word [ebp - 0x594], ax
je 0x420ac4
cmp byte [ebp - 0x59a], 0
jne 0x420ac4
mov eax, 9
mov word [ebp - 0x594], ax
mov word [ebp - 0x56c], ax
mov word [ebp - 0x592], si
test esi, esi
jne 0x420aed
mov ecx, dword [ebx + 0x70]
test ecx, ecx
js 0x420aed
mov eax, dword [ebp - 0x5a4]
add eax, ecx
mov dword [ebp - 0x588], eax
jmp 0x420af7
mov dword [ebp - 0x588], 0
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x584], eax
xor eax, eax
mov word [ebp - 0x570], ax
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x568], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x18]
mov dword [ebp - 0x564], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebx + 0x5c]
mov dword [ebp - 0x458], eax
mov al, byte [ebx + 0x58]
mov ecx, dword [ebx + 0x58]
mov byte [ebp - 0x13], al
mov eax, edx
shrd ecx, eax, 8
mov esi, dword [ebx + 0x50]
sar eax, 8
mov byte [ebp - 0x12], cl
mov eax, edx
mov ecx, dword [ebx + 0x58]
shrd ecx, eax, 0x10
push ebx
sar eax, 0x10
mov eax, dword [ebx + 0x58]
shrd eax, edx, 0x18
mov byte [ebp - 0x11], cl
mov ecx, esi
mov dword [ebp - 0x5a0], eax
mov byte [ebp - 0x10], al
mov al, byte [ebx + 0x50]
mov byte [ebp - 0xf], al
sar edx, 0x18
mov edx, dword [ebx + 0x54]
mov eax, edx
shrd ecx, eax, 8
mov dword [ebp - 0x18], 0xd5455
sar eax, 8
mov byte [ebp - 0xe], cl
mov eax, edx
mov ecx, esi
mov byte [ebp - 0x14], 7
shrd ecx, eax, 0x10
movq xmm0, qword [ebp - 0x18]
sar eax, 0x10
mov eax, esi
mov byte [ebp - 0xd], cl
mov esi, dword [ebx + 0x60]
mov ecx, esi
shrd eax, edx, 0x18
push 0x41fe70
mov byte [ebp - 0xc], al
mov al, byte [ebx + 0x60]
mov byte [ebp - 0xb], al
sar edx, 0x18
mov edx, dword [ebx + 0x64]
mov eax, edx
shrd ecx, eax, 8
movq qword [ebp - 0x24], xmm0
sar eax, 8
mov byte [ebp - 0xa], cl
mov eax, edx
mov ecx, esi
mov dword [ebp - 0x57c], 0x11
shrd ecx, eax, 0x10
mov dword [ebp - 0x578], 9
sar eax, 0x10
mov eax, esi
mov byte [ebp - 9], cl
shrd eax, edx, 0x18
mov byte [ebp - 0x22], 5
mov byte [ebp - 8], al
mov eax, dword [ebp - 0x5a0]
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x598]
sar edx, 0x18
push eax
call fcn.0041eed0
add esp, 0xc
test eax, eax
je 0x420c40
mov ecx, ebx
call fcn.00420630
pop esi
pop edi
mov eax, 0x400
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x57c]
add eax, 0x1e
add eax, dword [ebp - 0x580]
add dword [ebx + 0x18], eax
cmp dword [ebx + 0x14], 0
je 0x420c75
mov ecx, ebx
call fcn.00420630
mov eax, dword [ebx + 0x14]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret 0x10
lea edi, [ebx + 0x30]
mov dword [ebx + 0x34], 0x23456789
mov dword [edi], 0x12345678
mov dword [ebx + 0x38], 0x34567890
mov esi, dword [ebx]
test esi, esi
je 0x420ca5
mov al, byte [esi]
test al, al
je 0x420ca5
push eax
push edi
call fcn.0041f850
add esp, 8
inc esi
jne 0x420c92
cmp byte [0x5601ec], 0
jne 0x420cc7
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
push esi
call fcn.00455713
add esp, 4
xor esi, esi
lea esp, [esp]
call fcn.004556f2
sar eax, 7
mov byte [ebp + esi - 0x30], al
inc esi
cmp esi, 0xc
jl 0x420cd0
mov eax, dword [ebp - 0x590]
shr eax, 8
xor ebx, ebx
mov byte [ebp - 0x25], al
mov al, byte [ebp + ebx - 0x30]
mov ecx, dword [edi]
mov byte [ebp - 0x599], al
movsx eax, al
xor eax, ecx
mov edx, dword [edi + 8]
and eax, 0xff
shr ecx, 8
mov esi, edx
and esi, 0xfffd
or esi, 2
mov eax, dword [eax*4 + 0x5240a0]
xor eax, ecx
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x5240a0]
mov eax, esi
xor eax, 1
mov dword [edi + 8], edx
imul eax, esi
shr eax, 8
xor al, byte [ebp - 0x599]
mov byte [ebp + ebx - 0x30], al
inc ebx
cmp ebx, 0xc
jl 0x420cf0
mov ebx, dword [ebp - 0x5ac]
mov al, byte [ebp - 0x59a]
cmp dword [ebx], 0
je 0x420d90
test al, al
jne 0x420d90
push 0xc
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.0041fe90
add dword [ebx + 0x18], 0xc
mov al, byte [ebp - 0x59a]
xor edi, edi
cmp dword [ebx], edi
je 0x420d9f
test al, al
jne 0x420d9f
lea ecx, [edi + 1]
jmp 0x420da1
xor ecx, ecx
mov esi, dword [ebp - 0x5a8]
mov byte [ebx + 0x2d], cl
test al, al
jne 0x420dd4
cmp esi, 8
jne 0x420dc5
lea eax, [ebp - 0x598]
mov ecx, ebx
push eax
call fcn.00420690
mov edi, eax
jmp 0x420dda
test esi, esi
jne 0x420dda
mov ecx, ebx
call fcn.004207c0
mov edi, eax
jmp 0x420dda
mov dword [ebx + 0x90], edi
cmp byte [ebx + 0x80], 0
mov byte [ebx + 0x2d], 0
je 0x420df5
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x420df5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x90]
add dword [ebx + 0x18], ecx
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x74]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], edx
test eax, eax
jne 0x420ff1
test edi, edi
jne 0x420c28
add ecx, dword [ebp - 0x5a4]
cmp dword [ebp - 0x588], ecx
mov eax, dword [ebx + 0x78]
sete byte [ebp - 0x599]
mov dword [ebp - 0x58c], eax
cmp byte [ebx + 0x1c], 0
mov dword [ebp - 0x588], ecx
mov dword [ebp - 0x584], edx
je 0x420ee1
cmp dword [ebx], edi
je 0x420e61
cmp byte [ebp - 0x59a], 0
je 0x420ee1
mov ax, word [ebp - 0x594]
mov word [ebp - 0x592], si
test al, 1
jne 0x420e82
mov ecx, 0xfff7
and ax, cx
mov word [ebp - 0x594], ax
mov word [ebp - 0x56c], ax
mov ecx, ebx
mov eax, dword [ebp - 0x564]
sub eax, dword [ebx + 0x10]
push eax
call fcn.0041ffe0
test al, al
je 0x420ec9
push ebx
lea eax, [ebp - 0x598]
push 0x41fe70
push eax
call fcn.0041eed0
add esp, 0xc
test eax, eax
jne 0x420c28
push dword [ebx + 0x18]
mov ecx, ebx
call fcn.0041ffe0
test al, al
jne 0x420f3e
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret 0x10
cmp word [ebp - 0x592], si
jne 0x420ef7
test esi, esi
jne 0x420f0f
cmp byte [ebp - 0x599], 0
jne 0x420f0f
pop esi
pop edi
mov eax, 0x4000000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret 0x10
push ebx
lea eax, [ebp - 0x598]
push 0x41fe70
push eax
call fcn.0041f120
add esp, 0xc
test eax, eax
jne 0x420c28
mov ax, word [ebp - 0x56c]
add dword [ebx + 0x18], 0x10
mov word [ebp - 0x594], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x420ff1
push dword [ebp - 0x578]
call fcn.004531b9
push dword [ebp - 0x578]
mov esi, eax
push dword [ebp - 0x458]
push esi
call fcn.004540d0
push 0x360
mov dword [ebp - 0x458], esi
call fcn.004531b9
mov edx, eax
lea esi, [ebp - 0x598]
mov ecx, 0xd8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x44]
add esp, 0x14
test ecx, ecx
jne 0x420fab
pop esi
pop edi
mov dword [ebx + 0x44], edx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ecx + 0x35c], 0
lea eax, [ecx + 0x35c]
je 0x420fd1
lea ebx, [ebx]
mov ecx, dword [eax]
cmp dword [ecx + 0x35c], 0
lea eax, [ecx + 0x35c]
jne 0x420fc0
pop esi
pop edi
mov dword [ecx + 0x35c], edx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x10000
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00453c72
mov esp, ebp
pop ebp
ret 0x10