Function at 0x414440
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 [0x511080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x5a0], eax
mov ecx, dword [ebp + 8]
push esi
push edi
cmp dword [ebx + 0x14], 0
je 0x414482
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebx + 0x2c], 0
je 0x4144a0
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx]
neg eax
push 0x104
sbb eax, eax
and eax, 0xc
push ecx
mov dword [ebp - 0x5a8], eax
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.004df510
xor eax, eax
add esp, 0x10
mov word [ebp - 0x32], ax
mov ax, word [ebp - 0x238]
test ax, ax
jne 0x4144f3
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x238]
movzx edx, ax
mov esi, 0x2f
cmp dx, 0x5c
jne 0x41450a
mov word [ecx], si
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x414501
mov edi, 8
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x5a4], edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414530
sub ecx, edx
lea esi, [ebp - 0x238]
sar ecx, 1
lea eax, [ebp - 0x238]
lea esi, [esi + ecx*2]
cmp esi, eax
jbe 0x414565
cmp word [esi], 0x2e
je 0x414579
sub esi, 2
lea eax, [ebp - 0x238]
cmp esi, eax
ja 0x414552
lea eax, [ebp - 0x238]
cmp esi, eax
jne 0x414579
cmp word [esi], 0x2e
jne 0x414601
mov edx, 0x5058b0
mov ecx, esi
call fcn.00413ca0
test eax, eax
je 0x4145f9
mov edx, str..zip
mov ecx, esi
call fcn.00413ca0
test eax, eax
je 0x4145f9
mov edx, str..zoo
mov ecx, esi
call fcn.00413ca0
test eax, eax
je 0x4145f9
mov edx, str..arc
mov ecx, esi
call fcn.00413ca0
test eax, eax
je 0x4145f9
mov edx, str..lzh
mov ecx, esi
call fcn.00413ca0
test eax, eax
je 0x4145f9
mov edx, str..arj
mov ecx, esi
call fcn.00413ca0
test eax, eax
je 0x4145f9
mov edx, 0x5058f4
mov ecx, esi
call fcn.00413ca0
test eax, eax
je 0x4145f9
mov edx, str..tgz
mov ecx, esi
call fcn.00413ca0
test eax, eax
jne 0x414601
xor edi, edi
mov dword [ebp - 0x5a4], edi
mov eax, dword [ebp - 0x5a0]
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x78], 0
mov byte [ebx + 0x74], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x68], 0
test eax, eax
jne 0x414656
mov esi, 0x10000
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x5a0], eax
cmp eax, 0xffffffff
jne 0x414691
mov esi, 0x200
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10
push ecx
push eax
mov ecx, ebx
call fcn.00413f00
mov esi, eax
test esi, esi
je 0x4146c1
push dword [ebp - 0x5a0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10
push 0x504da5
lea eax, [ebp - 0x560]
mov byte [ebx + 0x74], 1
push 0x104
push eax
mov dword [ebp - 0x23c], 0
call fcn.004df3d7
add esp, 0xc
lea eax, [ebp - 0x450]
push 0
push 0
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x238]
push eax
push 0
push 0xfde9
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 0x414717
push 0x504da5
lea eax, [ebp - 0x34c]
sub ecx, edx
push 0x104
push eax
mov dword [ebp - 0x580], ecx
call fcn.004df3d7
xor eax, eax
mov dword [ebp - 0x454], 0
mov word [ebp - 0x56e], ax
add esp, 0xc
cmp dword [ebx], 0
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x590], eax
mov eax, 8
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 0x4147aa
mov eax, 9
mov word [ebp - 0x594], ax
mov word [ebp - 0x56c], ax
mov word [ebp - 0x592], di
test edi, edi
jne 0x4147d3
mov ecx, dword [ebx + 0x64]
test ecx, ecx
js 0x4147d3
mov eax, dword [ebp - 0x5a8]
add eax, ecx
mov dword [ebp - 0x588], eax
jmp 0x4147dd
mov dword [ebp - 0x588], 0
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x584], eax
xor eax, eax
mov word [ebp - 0x570], ax
mov eax, dword [ebx + 0x4c]
mov edx, dword [ebx + 0x54]
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 ecx, dword [ebx + 0x50]
mov dword [ebp - 0x458], eax
mov al, byte [ebx + 0x54]
mov byte [ebp - 0x13], al
mov eax, edx
sar eax, 8
mov byte [ebp - 0x12], al
mov eax, edx
sar eax, 0x10
mov byte [ebp - 0x11], al
mov al, byte [ebx + 0x50]
mov byte [ebp - 0xf], al
mov eax, ecx
sar eax, 8
mov byte [ebp - 0xe], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0xd], al
mov al, byte [ebx + 0x58]
sar ecx, 0x18
mov byte [ebp - 0xc], cl
mov ecx, dword [ebx + 0x58]
mov byte [ebp - 0xb], al
mov eax, ecx
sar eax, 8
mov byte [ebp - 0xa], al
mov eax, ecx
sar ecx, 0x18
mov dword [ebp - 0x18], 0xd5455
mov byte [ebp - 0x14], 7
movq xmm0, qword [ebp - 0x18]
sar edx, 0x18
sar eax, 0x10
mov byte [ebp - 8], cl
lea ecx, [ebp - 0x598]
movq qword [ebp - 0x24], xmm0
push ebx
mov dword [ebp - 0x57c], 0x11
mov dword [ebp - 0x578], 9
mov byte [ebp - 0x10], dl
mov byte [ebp - 9], al
mov byte [ebp - 0x1c], dl
mov byte [ebp - 0x22], 5
call fcn.00413130
add esp, 4
test eax, eax
je 0x4148ef
cmp byte [ebx + 0x74], 0
je 0x4148ca
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x4148ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x64], eax
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x580]
add eax, 0x1e
add eax, dword [ebp - 0x57c]
add dword [ebx + 0x18], eax
cmp dword [ebx + 0x14], 0
je 0x41493e
cmp byte [ebx + 0x74], 0
je 0x41491b
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x41491b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x64], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebx + 0x30], 0x12345678
mov dword [ebx + 0x34], 0x23456789
mov dword [ebx + 0x38], 0x34567890
mov edx, dword [ebx]
test edx, edx
je 0x4149ab
nop dword [eax]
mov al, byte [edx]
test al, al
je 0x4149ab
mov ecx, dword [ebx + 0x30]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fedf8]
movzx eax, cl
add eax, dword [ebx + 0x34]
imul eax, eax, 0x8088405
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebx + 0x38]
inc eax
mov dword [ebx + 0x34], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fedf8]
mov dword [ebx + 0x38], ecx
add edx, 1
jne 0x414960
cmp byte [0x514c10], 0
jne 0x4149cd
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
xor eax, esi
push eax
call fcn.004df1c1
add esp, 4
xor esi, esi
nop
call fcn.004df1a0
sar eax, 7
mov byte [ebp + esi - 0x30], al
inc esi
cmp esi, 0xc
jl 0x4149d0
mov eax, dword [ebp - 0x590]
shr eax, 8
xor edi, edi
mov byte [ebp - 0x25], al
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x5a0], eax
nop dword [eax]
mov al, byte [ebp + edi - 0x30]
mov ecx, dword [ebx + 0x30]
mov byte [ebp - 0x599], al
movsx eax, al
xor eax, ecx
mov edx, dword [ebx + 0x38]
movzx eax, al
mov esi, edx
shr ecx, 8
and esi, 0xfffd
or esi, 2
xor ecx, dword [eax*4 + 0x4fedf8]
movzx eax, cl
add eax, dword [ebp - 0x5a0]
mov dword [ebx + 0x30], ecx
imul ecx, eax, 0x8088405
inc ecx
mov eax, ecx
mov dword [ebp - 0x5a0], ecx
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x4fedf8]
mov eax, esi
xor eax, 1
mov dword [ebx + 0x38], edx
imul eax, esi
shr eax, 8
xor al, byte [ebp - 0x599]
mov byte [ebp + edi - 0x30], al
inc edi
cmp edi, 0xc
jl 0x414a00
mov dword [ebx + 0x34], ecx
cmp dword [ebx], 0
je 0x414a91
push 0xc
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.00413d20
add dword [ebx + 0x18], 0xc
mov esi, dword [ebp - 0x5a4]
xor edi, edi
cmp dword [ebx], edi
setne al
mov byte [ebx + 0x2d], al
cmp esi, 8
jne 0x414ab8
lea eax, [ebp - 0x598]
mov ecx, ebx
push eax
call fcn.00414100
mov edi, eax
jmp 0x414b23
test esi, esi
jne 0x414b23
mov dword [ebp - 0x5a0], edi
mov ecx, ebx
push 0x4000
lea edi, [ebx + 0x88]
push edi
call fcn.00414020
mov esi, eax
test esi, esi
je 0x414b0f
nop dword [eax + eax]
cmp esi, 0xffffffff
je 0x414b0f
push esi
push edi
mov ecx, ebx
call fcn.00413d20
cmp eax, esi
jne 0x414c18
add dword [ebp - 0x5a0], esi
mov ecx, ebx
push 0x4000
push edi
call fcn.00414020
mov esi, eax
test esi, esi
jne 0x414ae0
mov eax, dword [ebp - 0x5a0]
xor edi, edi
mov dword [ebx + 0x84], eax
mov esi, dword [ebp - 0x5a4]
cmp byte [ebx + 0x74], 0
mov byte [ebx + 0x2d], 0
je 0x414b3b
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x414b3b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x84]
add dword [ebx + 0x18], ecx
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x68]
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x64], edx
test eax, eax
jne 0x4148dc
test edi, edi
jne 0x4148d7
add ecx, dword [ebp - 0x5a8]
cmp dword [ebp - 0x588], ecx
mov eax, dword [ebx + 0x6c]
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 0x414c22
cmp dword [ebx], edi
jne 0x414c22
mov ax, word [ebp - 0x594]
mov word [ebp - 0x592], si
test al, 1
jne 0x414bbf
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.00413e90
test al, al
je 0x414c00
push ebx
lea ecx, [ebp - 0x598]
call fcn.00413130
add esp, 4
test eax, eax
jne 0x4148d7
push dword [ebx + 0x18]
mov ecx, ebx
call fcn.00413e90
test al, al
jne 0x414c69
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10
mov edi, 0x60000
jmp 0x414b1d
cmp word [ebp - 0x592], si
jne 0x414d0d
test esi, esi
jne 0x414c40
cmp byte [ebp - 0x599], 0
je 0x414d0d
push ebx
lea ecx, [ebp - 0x598]
call fcn.00413420
add esp, 4
test eax, eax
jne 0x4148d7
mov ax, word [ebp - 0x56c]
add dword [ebx + 0x18], 0x10
mov word [ebp - 0x594], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x4148dc
push dword [ebp - 0x578]
call fcn.004d31b2
add esp, 4
mov esi, eax
push dword [ebp - 0x578]
push dword [ebp - 0x458]
push esi
call fcn.004d4640
add esp, 0xc
mov dword [ebp - 0x458], esi
push 0x360
call fcn.004d2efb
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, 4
test ecx, ecx
jne 0x414cdc
mov dword [ebx + 0x44], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 0x35c]
test eax, eax
je 0x414cf2
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x414ce6
mov dword [ecx + 0x35c], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x4000000
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 0x10