Function at 0x617c10
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 [0x82f184]
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 0x617c5b
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebx + 0x2c], 0
je 0x617c7d
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov dword [esp + 0x1c], eax
cmp dword [ebx], eax
je 0x617c96
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 0x617ca2
mov ax, word [esp + 0x3c8]
test ax, ax
je 0x618777
lea ecx, [esp + 0x3c8]
movzx edx, ax
mov edi, 0x2f
cmp dx, 0x5c
jne 0x617cdb
mov word [ecx], di
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x617cd2
cmp esi, 4
jne 0x617d1e
lea ecx, [esp + 0x3c8]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x617d00
sub ecx, edx
mov byte [esp + 0xf], 1
sar ecx, 1
cmp word [esp + ecx*2 + 0x3c6], di
jne 0x617d23
mov byte [esp + 0xf], 0
mov dword [esp + 0x18], 8
cmp esi, 4
je 0x617e0b
lea ecx, [esp + 0x3c8]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x617d40
sub ecx, edx
lea esi, [esp + 0x3c8]
sar ecx, 1
lea eax, [esp + 0x3c8]
lea esi, [esi + ecx*2]
cmp esi, eax
jbe 0x617d78
cmp word [esi], 0x2e
je 0x617d78
sub esi, 2
lea eax, [esp + 0x3c8]
cmp esi, eax
ja 0x617d64
lea eax, [esp + 0x3c8]
cmp esi, eax
jne 0x617d8d
cmp word [esi], 0x2e
jne 0x617e11
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push 0x7d9cf4
push esi
call edi
add esp, 8
test eax, eax
je 0x617e0b
push str..zip
push esi
call edi
add esp, 8
test eax, eax
je 0x617e0b
push str..zoo
push esi
call edi
add esp, 8
test eax, eax
je 0x617e0b
push str..arc
push esi
call edi
add esp, 8
test eax, eax
je 0x617e0b
push str..lzh
push esi
call edi
add esp, 8
test eax, eax
je 0x617e0b
push str..arj
push esi
call edi
add esp, 8
test eax, eax
je 0x617e0b
push 0x7d9d44
push esi
call edi
add esp, 8
test eax, eax
je 0x617e0b
push str..tgz
push esi
call edi
add esp, 8
test eax, eax
jne 0x617e11
xor eax, eax
mov dword [esp + 0x18], eax
mov esi, dword [ebp + 0x14]
cmp esi, 2
jne 0x617fdb
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 0x61810d
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 0x617e9b
mov esi, 0x200
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0x10
push 0
push edi
mov ecx, ebx
call fcn.006175d0
mov esi, eax
test esi, esi
je 0x617eb7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x617ff0
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 0x617f03
sub ecx, edx
mov dword [esp + 0x38], ecx
cmp byte [esp + 0xf], al
je 0x617f37
lea edi, [esp + 0x168]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x617f20
mov ax, word [0x7d926c]
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 0x617fa4
cmp esi, 4
je 0x617fa4
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 0x618208
test ecx, ecx
js 0x618208
mov eax, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x30], eax
jmp 0x618210
cmp esi, 1
jne 0x618011
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esp + 0x14]
call fcn.006175d0
mov esi, eax
test esi, esi
je 0x617ebe
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 3
jne 0x61812b
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 0x61810d
test ecx, ecx
je 0x61810d
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.006170f0
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.0076d5b0
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 0x617ec1
mov esi, 0x10000
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 4
jne 0x618777
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.006170f0
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.0076d5b0
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 0x617ec1
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.006165f0
add esp, 4
test eax, eax
je 0x618373
mov ecx, ebx
call fcn.00617850
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076d59e
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 0x6183a8
mov ecx, ebx
call fcn.00617850
mov eax, dword [ebx + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076d59e
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 0x618410
mov al, byte [edx]
test al, al
je 0x618410
mov ecx, dword [ebx + 0x30]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x7cebf0]
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 + 0x7cebf0]
mov dword [ebx + 0x38], ecx
add edx, 1
jne 0x6183c3
cmp byte [0x83dabc], 0
jne 0x618433
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 0x618440
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 + 0x7cebf0]
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 + 0x7cebf0]
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 0x618462
mov eax, dword [ebx]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x6184fb
cmp esi, 4
je 0x6184fb
push 0xc
lea eax, [esp + 0x3c0]
mov ecx, ebx
push eax
call fcn.006173e0
add dword [ebx + 0x18], 0xc
mov eax, dword [ebx]
xor edi, edi
test eax, eax
je 0x61850a
cmp esi, 4
je 0x61850a
mov al, 1
jmp 0x61850c
xor al, al
mov byte [ebx + 0x2d], al
cmp esi, 4
je 0x618596
mov eax, dword [esp + 0x18]
cmp eax, 8
jne 0x618531
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.006178b0
mov edi, eax
jmp 0x61859c
test eax, eax
jne 0x61859c
mov dword [esp + 0x10], edi
mov ecx, ebx
push 0x4000
lea edi, [ebx + 0x94]
push edi
call fcn.00617770
mov esi, eax
test esi, esi
je 0x61857b
cmp esi, 0xffffffff
je 0x61857b
push esi
push edi
mov ecx, ebx
call fcn.006173e0
cmp eax, esi
jne 0x61858c
add dword [esp + 0x10], esi
mov ecx, ebx
push 0x4000
push edi
call fcn.00617770
mov esi, eax
test esi, esi
jne 0x618552
mov eax, dword [esp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
mov dword [ebx + 0x90], eax
jmp 0x61859c
mov esi, dword [ebp + 0x14]
mov edi, 0x60000
jmp 0x61859c
mov dword [ebx + 0x90], edi
mov ecx, ebx
mov byte [ebx + 0x2d], 0
call fcn.00617850
mov ecx, dword [ebx + 0x90]
add dword [ebx + 0x18], ecx
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x61877c
test edi, edi
jne 0x618357
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 0x618669
cmp dword [ebx], edi
je 0x6185f3
cmp esi, 4
jne 0x618669
mov eax, dword [esp + 0x14]
mov word [esp + 0x26], ax
mov ax, word [esp + 0x24]
test al, 1
jne 0x618612
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.00617560
test al, al
je 0x61864d
push ebx
lea ecx, [esp + 0x24]
call fcn.006165f0
add esp, 4
test eax, eax
jne 0x618357
push dword [ebx + 0x18]
mov ecx, ebx
call fcn.00617560
test al, al
jne 0x6186aa
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x14]
cmp word [esp + 0x26], ax
jne 0x61875b
cmp dword [esp + 0x18], 0
jne 0x618687
test dl, dl
je 0x61875b
push ebx
lea ecx, [esp + 0x24]
call fcn.006168b0
add esp, 4
test eax, eax
jne 0x618357
mov ax, word [esp + 0x4c]
add dword [ebx + 0x18], 0x10
mov word [esp + 0x24], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x61877c
push dword [esp + 0x40]
call fcn.0078f0da
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.0076d2e3
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 0x61871d
mov dword [ebx + 0x44], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 0x35c]
test eax, eax
je 0x61873c
nop word [eax + eax]
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x618730
mov dword [ecx + 0x35c], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c8]
xor ecx, esp
call fcn.0076d59e
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.0076d59e
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.0076d59e
mov esp, ebp
pop ebp
ret 0x10