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

Disassembly:
sub esp, 0x4ac
push ebx
push ebp
mov ebp, dword [esp + 0x4b8]
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov edi, edx
cmp dword [ebp + 0x14], ebx
je 0x4aca0e
mov eax, 0x40000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret 8
cmp byte [ebp + 0x2c], bl
je 0x4aca25
mov eax, 0x50000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret 8
mov dword [esp + 0x40], ebx
cmp dword [ebp], ebx
je 0x4aca3b
cmp esi, 4
je 0x4aca3b
mov dword [esp + 0x40], 0xc
lea edx, [esp + 0x3b0]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4aca44
cmp byte [esp + 0x3b0], bl
je 0x4ad1d4
lea eax, [esp + 0x3b0]
cmp byte [eax], 0x5c
jne 0x4aca6a
mov byte [eax], 0x2f
inc eax
cmp byte [eax], bl
jne 0x4aca62
cmp esi, 4
sete al
mov byte [esp + 0x12], al
cmp al, bl
je 0x4aca9f
lea eax, [esp + 0x3b0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4aca87
sub eax, edx
cmp byte [esp + eax + 0x3af], 0x2f
mov byte [esp + 0x13], 1
jne 0x4acaa3
mov byte [esp + 0x13], bl
mov dword [esp + 0x18], 8
cmp byte [esp + 0x12], bl
jne 0x4acac1
lea ecx, [esp + 0x3b0]
call fcn.004abcf0
test al, al
je 0x4acac5
mov dword [esp + 0x18], ebx
cmp esi, 2
jne 0x4acad5
mov eax, edi
mov ecx, ebp
call fcn.004ac3f0
jmp 0x4acb12
cmp esi, 1
jne 0x4acaeb
mov eax, dword [esp + 0x4c4]
push eax
mov esi, ebp
call fcn.004ac480
jmp 0x4acb12
cmp esi, 3
jne 0x4acb02
mov eax, dword [esp + 0x4c4]
mov ecx, edi
mov esi, ebp
call fcn.004ac5c0
jmp 0x4acb12
cmp esi, 4
jne 0x4ad1d4
mov esi, ebp
call fcn.004ac6a0
cmp eax, ebx
jne 0x4ad1d9
mov dword [esp + 0x3ac], ebx
mov byte [esp + 0x88], bl
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x3b0]
mov byte [esp + eax + 0x198], cl
inc eax
cmp cl, bl
jne 0x4acb30
lea eax, [esp + 0x198]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4acb50
sub eax, edx
mov dword [esp + 0x68], eax
cmp byte [esp + 0x13], bl
je 0x4acb86
lea edi, [esp + 0x198]
dec edi
jmp 0x4acb70
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4acb70
mov cx, word [0x4e3cbc]
mov word [edi], cx
inc dword [esp + 0x68]
xor edx, edx
mov word [esp + 0x7a], dx
mov edx, dword [ebp + 0x68]
mov eax, 8
mov byte [esp + 0x29c], bl
mov dword [esp + 0x194], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x3a0], 1
mov dword [esp + 0x3a8], ebx
mov dword [esp + 0x50], 0x140b17
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebx
mov word [esp + 0x54], ax
cmp dword [ebp], ebx
je 0x4acbe3
cmp byte [esp + 0x12], bl
jne 0x4acbe3
mov eax, 9
mov word [esp + 0x54], ax
mov word [esp + 0x7c], ax
mov eax, dword [esp + 0x18]
mov word [esp + 0x56], ax
cmp eax, ebx
jne 0x4acc06
mov eax, dword [ebp + 0x70]
cmp eax, ebx
jl 0x4acc06
add eax, dword [esp + 0x40]
mov dword [esp + 0x60], eax
jmp 0x4acc0a
mov dword [esp + 0x60], ebx
mov edx, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x4c]
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 0x18]
add edx, dword [ebp + 0x10]
xor eax, eax
mov word [esp + 0x78], ax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov dl, byte [ebp + 0x58]
mov byte [esp + 0x21], dl
lea eax, [esp + 0x1c]
mov dword [esp + 0x18c], eax
mov eax, dword [ebp + 0x5c]
mov esi, eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x190], ecx
mov ecx, dword [ebp + 0x58]
mov edx, ecx
shrd edx, esi, 8
sar esi, 8
mov esi, eax
mov byte [esp + 0x22], dl
mov edx, ecx
shrd edx, esi, 0x10
shrd ecx, eax, 0x18
sar esi, 0x10
sar eax, 0x18
mov al, byte [ebp + 0x50]
mov byte [esp + 0x25], al
mov eax, dword [ebp + 0x54]
mov byte [esp + 0x23], dl
mov dl, cl
mov ecx, dword [ebp + 0x50]
mov ebx, ecx
mov esi, eax
shrd ebx, esi, 8
mov byte [esp + 0x26], bl
sar esi, 8
mov ebx, ecx
shrd ecx, eax, 0x18
mov esi, eax
shrd ebx, esi, 0x10
mov byte [esp + 0x28], cl
mov cl, byte [ebp + 0x60]
sar esi, 0x10
sar eax, 0x18
mov eax, dword [ebp + 0x64]
mov byte [esp + 0x29], cl
mov ecx, dword [ebp + 0x60]
mov byte [esp + 0x27], bl
mov ebx, ecx
mov esi, eax
shrd ebx, esi, 8
sar esi, 8
mov byte [esp + 0x2a], bl
mov ebx, ecx
mov esi, eax
shrd ecx, eax, 0x18
shrd ebx, esi, 0x10
mov dword [esp + 0x1c], 0xd5455
sar eax, 0x18
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x20], 7
mov byte [esp + 0x2c], cl
mov ecx, dword [esp + 0x20]
sar esi, 0x10
mov dword [esp + 0x44], eax
mov esi, ebp
lea edi, [esp + 0x50]
mov dword [esp + 0x6c], 0x11
mov dword [esp + 0x70], 9
mov byte [esp + 0x24], dl
mov byte [esp + 0x2b], bl
mov dword [esp + 0x48], ecx
mov byte [esp + 0x4c], dl
mov byte [esp + 0x46], 5
call fcn.004ab140
test eax, eax
je 0x4acd45
call fcn.004ac810
mov eax, 0x400
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret 8
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
lea ecx, [eax + edx + 0x1e]
add dword [ebp + 0x18], ecx
cmp dword [ebp + 0x14], 0
je 0x4acd6f
call fcn.004ac810
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret 8
lea esi, [ebp + 0x30]
mov dword [ebp + 0x34], 0x23456789
mov dword [ebp + 0x38], 0x34567890
mov ebp, dword [ebp]
mov dword [esi], 0x12345678
test ebp, ebp
je 0x4acda1
lea ecx, [ecx]
mov cl, byte [ebp]
test cl, cl
je 0x4acda1
mov edx, esi
call fcn.004abca0
inc ebp
jne 0x4acd90
cmp byte [0x4f1c6a], 0
jne 0x4acdc3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
push edi
call fcn.004bdafb
add esp, 4
xor edi, edi
call fcn.004bdb0d
sar eax, 7
mov byte [esp + edi + 0x30], al
inc edi
cmp edi, 0xc
jl 0x4acdc5
mov edx, dword [esp + 0x58]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
shr edx, 8
mov byte [esp + 0x3b], dl
mov edx, dword [esi]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x3c]
mov bl, byte [esp + ecx + 0x30]
movsx ecx, bl
xor ecx, edx
shr edx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4e0058]
xor ecx, edx
movzx edi, cl
add edi, dword [esp + 0x14]
mov ebp, eax
imul edi, edi, 0x8088405
inc edi
mov dword [esi], ecx
mov edx, edi
shr edx, 0x18
xor edx, eax
shr eax, 8
and edx, 0xff
mov dword [esi + 4], edi
xor eax, dword [edx*4 + 0x4e0058]
and ebp, 0xfffd
or ebp, 2
mov edx, ebp
xor edx, 1
imul edx, ebp
mov ebp, dword [esp + 0x3c]
mov dword [esi + 8], eax
shr edx, 8
xor dl, bl
mov byte [esp + ebp + 0x30], dl
movsx edx, byte [esp + ebp + 0x31]
xor edx, ecx
shr ecx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x4e0058]
xor edx, ecx
movzx ecx, dl
add ecx, edi
imul ecx, ecx, 0x8088405
mov ebx, eax
inc ecx
mov edi, ecx
shr edi, 0x18
xor edi, eax
shr eax, 8
mov dword [esi + 4], ecx
mov dword [esi], edx
and edi, 0xff
xor eax, dword [edi*4 + 0x4e0058]
and ebx, 0xfffd
mov edi, eax
or ebx, 2
mov eax, ebx
xor eax, 1
imul eax, ebx
shr eax, 8
xor al, byte [esp + ebp + 0x31]
mov dword [esi + 8], edi
mov byte [esp + ebp + 0x31], al
mov eax, edi
and eax, 0xfffd
or eax, 2
mov dword [esp + 0x14], eax
movsx eax, byte [esp + ebp + 0x32]
xor eax, edx
and eax, 0xff
mov ebx, dword [eax*4 + 0x4e0058]
shr edx, 8
xor ebx, edx
movzx eax, bl
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
shr ecx, 0x18
xor ecx, edi
and ecx, 0xff
mov dword [esi], ebx
mov dword [esi + 4], eax
shr edi, 8
xor edi, dword [ecx*4 + 0x4e0058]
mov ecx, dword [esp + 0x14]
mov edx, ecx
xor edx, 1
imul edx, ecx
shr edx, 8
xor dl, byte [esp + ebp + 0x32]
mov dword [esi + 8], edi
mov byte [esp + ebp + 0x32], dl
movsx edx, byte [esp + ebp + 0x33]
xor edx, ebx
shr ebx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x4e0058]
xor edx, ebx
mov ecx, edi
movzx ebx, dl
add eax, ebx
imul eax, eax, 0x8088405
and ecx, 0xfffd
or ecx, 2
mov ebx, ecx
xor ebx, 1
imul ebx, ecx
inc eax
mov dword [esi + 4], eax
mov dword [esp + 0x14], eax
shr eax, 0x18
xor eax, edi
shr ebx, 8
xor bl, byte [esp + ebp + 0x33]
and eax, 0xff
shr edi, 8
mov dword [esi], edx
xor edi, dword [eax*4 + 0x4e0058]
mov byte [esp + ebp + 0x33], bl
add ebp, 4
mov eax, edi
mov dword [esi + 8], eax
mov dword [esp + 0x3c], ebp
cmp ebp, 0xc
jl 0x4acdf6
mov ebp, dword [esp + 0x4c0]
mov bl, byte [esp + 0x12]
xor esi, esi
cmp dword [ebp], esi
je 0x4acfdb
test bl, bl
jne 0x4acfcb
push 0xc
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.004ac1f0
add dword [ebp + 0x18], 0xc
cmp dword [ebp], esi
je 0x4acfdb
test bl, bl
jne 0x4acfdb
mov eax, 1
jmp 0x4acfdd
xor eax, eax
test bl, bl
mov ebx, dword [esp + 0x18]
mov byte [ebp + 0x2d], al
jne 0x4ad00c
cmp ebx, 8
jne 0x4acffd
lea ecx, [esp + 0x50]
push ecx
mov edi, ebp
call fcn.004ac870
mov esi, eax
jmp 0x4ad012
cmp ebx, esi
jne 0x4ad012
mov eax, ebp
call fcn.004ac980
mov esi, eax
jmp 0x4ad012
mov dword [ebp + 0x90], esi
cmp byte [ebp + 0x80], 0
mov byte [ebp + 0x2d], 0
je 0x4ad02d
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x4ad02d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x90]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x74]
add dword [ebp + 0x18], edx
mov dword [ebp + 0x7c], 0
mov dword [ebp + 0x70], ecx
test eax, eax
jne 0x4ad1d9
test esi, esi
jne 0x4acd33
mov eax, dword [esp + 0x40]
mov esi, dword [ebp + 0x78]
add eax, edx
cmp dword [esp + 0x60], eax
mov dword [esp + 0x5c], esi
sete dl
cmp byte [ebp + 0x1c], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
je 0x4ad0ed
cmp dword [ebp], 0
je 0x4ad085
cmp byte [esp + 0x12], 0
je 0x4ad0ed
test byte [esp + 0x54], 1
mov word [esp + 0x56], bx
jne 0x4ad09b
mov ecx, 0xfff7
and word [esp + 0x54], cx
mov dx, word [esp + 0x54]
mov word [esp + 0x7c], dx
mov edx, dword [esp + 0x84]
sub edx, dword [ebp + 0x10]
mov eax, ebp
call fcn.004ac340
test al, al
je 0x4ad0db
mov esi, ebp
lea edi, [esp + 0x50]
call fcn.004ab140
test eax, eax
jne 0x4acd33
mov edx, dword [ebp + 0x18]
mov eax, ebp
call fcn.004ac340
test al, al
jne 0x4ad12f
mov eax, 0x2000000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret 8
cmp word [esp + 0x56], bx
je 0x4ad106
mov eax, 0x4000000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret 8
test ebx, ebx
jne 0x4ad10e
test dl, dl
je 0x4ad0f4
mov esi, ebp
lea edi, [esp + 0x50]
call fcn.004ab410
test eax, eax
jne 0x4acd33
mov ax, word [esp + 0x7c]
add dword [ebp + 0x18], 0x10
mov word [esp + 0x54], ax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x4ad1d9
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004bb279
mov edx, dword [esp + 0x74]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x190]
push edx
push eax
push esi
call fcn.004c3030
add esp, 0xc
push 0x360
mov dword [esp + 0x194], esi
call fcn.004bbddb
mov ecx, 0xd8
lea esi, [esp + 0x54]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x44]
add esp, 4
test ecx, ecx
jne 0x4ad199
mov dword [ebp + 0x44], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret 8
cmp dword [ecx + 0x35c], 0
je 0x4ad1bf
jmp 0x4ad1b0
mov ecx, dword [ecx + 0x35c]
cmp dword [ecx + 0x35c], 0
jne 0x4ad1b0
mov dword [ecx + 0x35c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret 8
mov eax, 0x10000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4ac
ret 8