Function at 0x618ca0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5cc
mov eax, dword [0x831184]
xor eax, esp
mov dword [esp + 0x5c8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [ebp + 0x14]
push edi
cmp dword [ebx + 0x14], 0
je 0x618ceb
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebx + 0x2c], 0
je 0x618d0d
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [ebx], eax
je 0x618d26
cmp esi, 4
mov ecx, 0xc
cmovne eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x3c8]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x618d32
mov ax, word [esp + 0x3c8]
test ax, ax
je 0x619807
lea ecx, [esp + 0x3c8]
movzx edx, ax
mov edi, 0x2f
cmp dx, 0x5c
jne 0x618d6b
mov word [ecx], di
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x618d62
cmp esi, 4
jne 0x618dae
lea ecx, [esp + 0x3c8]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x618d90
sub ecx, edx
mov byte [esp + 0xf], 1
sar ecx, 1
cmp word [esp + ecx*2 + 0x3c6], di
jne 0x618db3
mov byte [esp + 0xf], 0
mov dword [esp + 0x18], 8
cmp esi, 4
je 0x618e9b
lea ecx, [esp + 0x3c8]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x618dd0
sub ecx, edx
lea esi, [esp + 0x3c8]
sar ecx, 1
lea eax, [esp + 0x3c8]
lea esi, [esi + ecx*2]
cmp esi, eax
jbe 0x618e08
cmp word [esi], 0x2e
je 0x618e08
sub esi, 2
lea eax, [esp + 0x3c8]
cmp esi, eax
ja 0x618df4
lea eax, [esp + 0x3c8]
cmp esi, eax
jne 0x618e1d
cmp word [esi], 0x2e
jne 0x618ea1
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push 0x7dbdc4
push esi
call edi
add esp, 8
test eax, eax
je 0x618e9b
push str..zip
push esi
call edi
add esp, 8
test eax, eax
je 0x618e9b
push str..zoo
push esi
call edi
add esp, 8
test eax, eax
je 0x618e9b
push str..arc
push esi
call edi
add esp, 8
test eax, eax
je 0x618e9b
push str..lzh
push esi
call edi
add esp, 8
test eax, eax
je 0x618e9b
push str..arj
push esi
call edi
add esp, 8
test eax, eax
je 0x618e9b
push 0x7dbd80
push esi
call edi
add esp, 8
test eax, eax
je 0x618e9b
push str..tgz
push esi
call edi
add esp, 8
test eax, eax
jne 0x618ea1
xor eax, eax
mov dword [esp + 0x18], eax
mov esi, dword [ebp + 0x14]
cmp esi, 2
jne 0x61906b
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x84], 0
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x74], 0
test eax, eax
je 0x61919d
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x618f2b
mov esi, 0x200
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x10
push 0
push edi
mov ecx, ebx
call fcn.00618660
mov esi, eax
test esi, esi
je 0x618f47
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x619080
mov byte [ebx + 0x80], 1
mov esi, dword [ebp + 0x14]
push 0
push 0
push 0x104
lea eax, [esp + 0x174]
mov dword [esp + 0x388], 0
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x3dc]
mov byte [esp + 0x6c], 0
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x168]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x618f93
sub ecx, edx
mov dword [esp + 0x38], ecx
cmp byte [esp + 0xf], al
je 0x618fc7
lea edi, [esp + 0x168]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x618fb0
mov ax, word [0x7db2b4]
mov word [edi], ax
inc dword [esp + 0x38]
xor eax, eax
mov byte [esp + 0x26c], 0
cmp dword [ebx], 0
mov word [esp + 0x4a], ax
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x28], eax
mov eax, 8
mov dword [esp + 0x164], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x370], 1
mov dword [esp + 0x378], 0
mov dword [esp + 0x20], 0x140b17
mov dword [esp + 0x2c], 0
mov word [esp + 0x24], ax
je 0x619034
cmp esi, 4
je 0x619034
mov eax, 9
mov word [esp + 0x24], ax
mov word [esp + 0x4c], ax
mov eax, dword [esp + 0x18]
movzx ecx, ax
mov dword [esp + 0x14], ecx
mov word [esp + 0x26], cx
mov ecx, dword [ebx + 0x70]
test eax, eax
jne 0x619298
test ecx, ecx
js 0x619298
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x30], eax
jmp 0x6192a0
cmp esi, 1
jne 0x6190a1
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esp + 0x14]
call fcn.00618660
mov esi, eax
test esi, esi
je 0x618f4e
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 3
jne 0x6191bb
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x84], eax
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x88], ecx
mov dword [ebx + 0x8c], 0
test eax, eax
je 0x61919d
test ecx, ecx
je 0x61919d
lea eax, [esp + 0x38c]
mov dword [ebx + 0x4c], SysStringLen
push eax
mov dword [ebx + 0x70], ecx
mov byte [ebx + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x384]
push eax
lea eax, [esp + 0x390]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push dword [esp + 0x388]
lea edx, [esp + 0x14]
push dword [esp + 0x388]
lea ecx, [esp + 0x1c]
call fcn.00618180
mov ecx, dword [esp + 0x38c]
add esp, 8
mov eax, dword [esp + 0x388]
sub ecx, 0xd53e8000
sbb eax, 0x19db1de
push 0
push 0x989680
push eax
push ecx
call fcn.0076eb90
movzx ecx, word [esp + 0x14]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x60], eax
movzx eax, word [esp + 0x10]
shl ecx, 0x10
or ecx, eax
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], ecx
jmp 0x618f51
mov esi, 0x10000
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 4
jne 0x619807
lea eax, [esp + 0x38c]
mov dword [ebx + 0x7c], 0
push eax
mov dword [ebx + 0x84], 0
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x4c], 0x41c00010
mov dword [ebx + 0x70], 0
mov byte [ebx + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x384]
push eax
lea eax, [esp + 0x390]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push dword [esp + 0x388]
lea edx, [esp + 0x18]
push dword [esp + 0x388]
lea ecx, [esp + 0x18]
call fcn.00618180
mov ecx, dword [esp + 0x38c]
add esp, 8
mov eax, dword [esp + 0x388]
sub ecx, 0xd53e8000
sbb eax, 0x19db1de
push 0
push 0x989680
push eax
push ecx
call fcn.0076eb90
movzx ecx, word [esp + 0x10]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x60], eax
movzx eax, word [esp + 0x14]
shl ecx, 0x10
or ecx, eax
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], ecx
jmp 0x618f51
mov dword [esp + 0x30], 0
xor eax, eax
mov edx, dword [ebx + 0x5c]
mov word [esp + 0x48], ax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x18]
add eax, dword [ebx + 0x10]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x39c]
mov dword [esp + 0x15c], eax
lea eax, [esp + 0x3b0]
mov dword [esp + 0x160], eax
mov al, byte [ebx + 0x58]
mov byte [esp + 0x3a1], al
mov eax, edx
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx + 0x58]
shrd ecx, eax, 8
mov dword [esp + 0x39c], 0xd5455
mov byte [esp + 0x3a2], cl
mov ecx, dword [ebx + 0x58]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x58]
shrd eax, edx, 0x18
mov edx, dword [ebx + 0x54]
mov dword [esp + 0x10], eax
mov byte [esp + 0x3a4], al
mov al, byte [ebx + 0x50]
mov byte [esp + 0x3a5], al
mov eax, edx
mov byte [esp + 0x3a3], cl
mov ecx, dword [ebx + 0x50]
shrd ecx, eax, 8
mov byte [esp + 0x3a0], 7
mov byte [esp + 0x3a6], cl
mov ecx, dword [ebx + 0x50]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x50]
movq xmm0, qword [esp + 0x39c]
shrd eax, edx, 0x18
mov edx, dword [ebx + 0x64]
mov byte [esp + 0x3a8], al
mov al, byte [ebx + 0x60]
mov byte [esp + 0x3a9], al
mov eax, edx
mov byte [esp + 0x3a7], cl
mov ecx, dword [ebx + 0x60]
shrd ecx, eax, 8
movq qword [esp + 0x3b0], xmm0
mov byte [esp + 0x3aa], cl
mov ecx, dword [ebx + 0x60]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x60]
shrd eax, edx, 0x18
mov byte [esp + 0x3ab], cl
lea ecx, [esp + 0x20]
mov byte [esp + 0x3ac], al
mov eax, dword [esp + 0x10]
push ebx
mov dword [esp + 0x40], 0x11
mov dword [esp + 0x44], 9
mov byte [esp + 0x3bc], al
mov byte [esp + 0x3b6], 5
call fcn.00617680
add esp, 4
test eax, eax
je 0x619403
mov ecx, ebx
call fcn.006188e0
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x3c]
add eax, 0x1e
add eax, dword [esp + 0x38]
add dword [ebx + 0x18], eax
cmp dword [ebx + 0x14], 0
je 0x619438
mov ecx, ebx
call fcn.006188e0
mov eax, dword [ebx + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076eb7e
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 0x6194a0
mov al, byte [edx]
test al, al
je 0x6194a0
mov ecx, dword [ebx + 0x30]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x7d0c00]
xor eax, ecx
mov ecx, dword [ebx + 0x38]
mov dword [ebx + 0x30], eax
movzx eax, al
add eax, dword [ebx + 0x34]
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 0x34], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7d0c00]
mov dword [ebx + 0x38], ecx
add edx, 1
jne 0x619453
cmp byte [0x83fab0], 0
jne 0x6194c3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
push esi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
xor esi, esi
nop dword [eax + eax]
call edi
sar eax, 7
mov byte [esp + esi + 0x3bc], al
inc esi
cmp esi, 0xc
jl 0x6194d0
mov eax, dword [esp + 0x28]
shr eax, 8
xor edi, edi
mov byte [esp + 0x3c7], al
mov al, byte [esp + edi + 0x3bc]
mov ecx, dword [ebx + 0x30]
mov byte [esp + 0xf], 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
mov eax, dword [eax*4 + 0x7d0c00]
xor eax, ecx
mov dword [ebx + 0x30], eax
movzx eax, al
add eax, dword [ebx + 0x34]
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 0x34], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x7d0c00]
mov eax, esi
xor eax, 1
mov dword [ebx + 0x38], edx
imul eax, esi
shr eax, 8
xor al, byte [esp + 0xf]
mov byte [esp + edi + 0x3bc], al
inc edi
cmp edi, 0xc
jl 0x6194f2
mov eax, dword [ebx]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x61958b
cmp esi, 4
je 0x61958b
push 0xc
lea eax, [esp + 0x3c0]
mov ecx, ebx
push eax
call fcn.00618470
add dword [ebx + 0x18], 0xc
mov eax, dword [ebx]
xor edi, edi
test eax, eax
je 0x61959a
cmp esi, 4
je 0x61959a
mov al, 1
jmp 0x61959c
xor al, al
mov byte [ebx + 0x2d], al
cmp esi, 4
je 0x619626
mov eax, dword [esp + 0x18]
cmp eax, 8
jne 0x6195c1
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.00618940
mov edi, eax
jmp 0x61962c
test eax, eax
jne 0x61962c
mov dword [esp + 0x10], edi
mov ecx, ebx
push 0x4000
lea edi, [ebx + 0x94]
push edi
call fcn.00618800
mov esi, eax
test esi, esi
je 0x61960b
cmp esi, 0xffffffff
je 0x61960b
push esi
push edi
mov ecx, ebx
call fcn.00618470
cmp eax, esi
jne 0x61961c
add dword [esp + 0x10], esi
mov ecx, ebx
push 0x4000
push edi
call fcn.00618800
mov esi, eax
test esi, esi
jne 0x6195e2
mov eax, dword [esp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
mov dword [ebx + 0x90], eax
jmp 0x61962c
mov esi, dword [ebp + 0x14]
mov edi, 0x60000
jmp 0x61962c
mov dword [ebx + 0x90], edi
mov ecx, ebx
mov byte [ebx + 0x2d], 0
call fcn.006188e0
mov ecx, dword [ebx + 0x90]
add dword [ebx + 0x18], ecx
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x61980c
test edi, edi
jne 0x6193e7
add ecx, dword [esp + 0x1c]
cmp dword [esp + 0x30], ecx
mov eax, dword [ebx + 0x78]
sete dl
mov dword [esp + 0x2c], eax
cmp byte [ebx + 0x1c], 0
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
je 0x6196f9
cmp dword [ebx], edi
je 0x619683
cmp esi, 4
jne 0x6196f9
mov eax, dword [esp + 0x14]
mov word [esp + 0x26], ax
mov ax, word [esp + 0x24]
test al, 1
jne 0x6196a2
mov ecx, 0xfff7
and ax, cx
mov word [esp + 0x24], ax
mov word [esp + 0x4c], ax
mov ecx, ebx
mov eax, dword [esp + 0x54]
sub eax, dword [ebx + 0x10]
push eax
call fcn.006185f0
test al, al
je 0x6196dd
push ebx
lea ecx, [esp + 0x24]
call fcn.00617680
add esp, 4
test eax, eax
jne 0x6193e7
push dword [ebx + 0x18]
mov ecx, ebx
call fcn.006185f0
test al, al
jne 0x61973a
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x14]
cmp word [esp + 0x26], ax
jne 0x6197eb
cmp dword [esp + 0x18], 0
jne 0x619717
test dl, dl
je 0x6197eb
push ebx
lea ecx, [esp + 0x24]
call fcn.00617940
add esp, 4
test eax, eax
jne 0x6193e7
mov ax, word [esp + 0x4c]
add dword [ebx + 0x18], 0x10
mov word [esp + 0x24], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x61980c
push dword [esp + 0x40]
call fcn.007906ca
add esp, 4
mov esi, eax
push dword [esp + 0x40]
push dword [esp + 0x164]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x160], esi
push 0x360
call fcn.0076e8c3
mov edx, eax
lea esi, [esp + 0x24]
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 0x6197ad
mov dword [ebx + 0x44], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 0x35c]
test eax, eax
je 0x6197cc
nop word [eax + eax]
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x6197c0
mov dword [ecx + 0x35c], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x4000000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x10000
mov ecx, dword [esp + 0x5d4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x10