Function at 0x1002c4b0
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, 0x4ac
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x4a8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov dword [esp + 0x14], ebx
mov edi, edx
cmp dword [ebx + 0x14], esi
je 0x1002c4fb
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x2c], 0
je 0x1002c51d
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x10], esi
cmp dword [ebx], esi
je 0x1002c52d
mov dword [esp + 0x10], 0xc
push 0x104
push eax
lea eax, [esp + 0x3b0]
push eax
call fcn.1010ffa3
add esp, 0xc
cmp byte [esp + 0x3a8], 0
mov byte [esp + 0x4ab], 0
jne 0x1002c571
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x3a8]
cmp byte [eax], 0x5c
jne 0x1002c580
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x1002c578
lea ecx, [esp + 0x3a8]
call fcn.1002be60
mov eax, edi
mov ecx, ebx
call fcn.1002c200
cmp eax, esi
jne 0x1002cc57
push 0x35e
lea edx, [esp + 0x1e]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x24], cx
call fcn.10116880
add esp, 0xc
push 0x104
lea eax, [esp + 0x3ac]
push eax
lea ecx, [esp + 0x168]
push ecx
mov dword [esp + 0x380], esi
mov byte [esp + 0x5c], 0
call fcn.1010e100
lea eax, [esp + 0x16c]
add esp, 0xc
mov byte [esp + 0x263], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c5f8
sub eax, edx
mov dword [esp + 0x30], eax
xor edx, edx
mov eax, 0xb17
mov byte [esp + 0x264], cl
mov word [esp + 0x42], dx
mov edx, dword [ebx + 0x60]
mov word [esp + 0x18], ax
mov ecx, 0x14
mov eax, 8
mov dword [esp + 0x15c], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x368], 1
mov dword [esp + 0x370], esi
mov word [esp + 0x1a], cx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov word [esp + 0x1c], ax
cmp dword [ebx], esi
je 0x1002c667
mov eax, 9
mov word [esp + 0x1c], ax
mov word [esp + 0x44], ax
xor eax, eax
mov word [esp + 0x1e], ax
mov eax, dword [ebx + 0x68]
cmp eax, esi
jl 0x1002c687
mov ecx, dword [esp + 0x10]
lea edx, [eax + ecx]
mov dword [esp + 0x28], edx
jmp 0x1002c68b
mov dword [esp + 0x28], esi
mov edx, dword [ebx + 0x18]
add edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x50]
mov esi, dword [ebx + 0x54]
mov dword [esp + 0x4c], edx
mov dl, byte [ebx + 0x58]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], eax
xor eax, eax
mov byte [esp + 0x381], dl
mov word [esp + 0x40], ax
lea eax, [esp + 0x37c]
mov dword [esp + 0x154], eax
mov eax, dword [ebx + 0x58]
lea ecx, [esp + 0x39c]
mov dword [esp + 0x158], ecx
mov ecx, eax
sar ecx, 8
mov byte [esp + 0x382], cl
movzx ecx, byte [ebx + 0x54]
mov edx, eax
sar edx, 0x10
mov byte [esp + 0x383], dl
mov byte [esp + 0x385], cl
mov edx, esi
sar edx, 8
mov byte [esp + 0x386], dl
mov ecx, esi
sar ecx, 0x10
mov edx, esi
mov esi, dword [ebx + 0x5c]
sar edx, 0x18
mov byte [esp + 0x387], cl
movzx ecx, byte [ebx + 0x5c]
mov byte [esp + 0x388], dl
mov edx, esi
sar edx, 8
mov byte [esp + 0x389], cl
mov byte [esp + 0x38a], dl
mov ecx, esi
sar ecx, 0x10
mov edx, esi
sar edx, 0x18
mov byte [esp + 0x37c], 0x55
mov byte [esp + 0x37d], 0x54
mov byte [esp + 0x37e], 0xd
mov byte [esp + 0x37f], 0
mov byte [esp + 0x38b], cl
mov ecx, dword [esp + 0x37c]
mov byte [esp + 0x380], 7
sar eax, 0x18
mov byte [esp + 0x38c], dl
mov edx, dword [esp + 0x380]
mov dword [esp + 0x39c], ecx
mov esi, ebx
lea edi, [esp + 0x18]
mov dword [esp + 0x34], 0x11
mov dword [esp + 0x38], 9
mov byte [esp + 0x384], al
mov dword [esp + 0x3a0], edx
mov byte [esp + 0x3a4], al
mov byte [esp + 0x39e], 5
call fcn.1002b2a0
test eax, eax
je 0x1002c7e9
call fcn.1002c3f0
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
lea edx, [eax + ecx + 0x1e]
add dword [ebx + 0x18], edx
cmp dword [ebx + 0x14], 0
je 0x1002c81d
call fcn.1002c3f0
mov eax, dword [ebx + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 4
lea esi, [ebx + 0x30]
mov dword [ebx + 0x34], 0x23456789
mov dword [ebx + 0x38], 0x34567890
mov ebx, dword [ebx]
mov dword [esi], 0x12345678
test ebx, ebx
je 0x1002c852
lea ebx, [ebx]
mov cl, byte [ebx]
test cl, cl
je 0x1002c852
mov edx, esi
call fcn.1002e820
add ebx, 1
jne 0x1002c840
cmp byte [0x1018f84b], 0
jne 0x1002c874
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
push edi
call fcn.101127e2
add esp, 4
xor edi, edi
call fcn.101127f4
sar eax, 7
mov byte [esp + edi + 0x390], al
inc edi
cmp edi, 0xc
jl 0x1002c876
mov eax, dword [esp + 0x20]
shr eax, 8
mov byte [esp + 0x39b], al
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
mov bl, byte [esp + ecx + 0x390]
mov edi, dword [esi]
mov eax, dword [esi + 8]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x101446c8]
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
movzx ecx, cl
add ecx, dword [esi + 4]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x101446c8]
and edx, 0xfffd
mov dword [esi + 8], eax
mov edi, dword [esi]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov ebx, dword [esp + 0xc]
mov cl, byte [esp + ebx + 0x391]
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x101446c8]
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
movzx ecx, cl
add ecx, dword [esi + 4]
mov edi, dword [esi]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
mov byte [esp + ebx + 0x390], al
mov eax, dword [esi + 8]
xor ecx, eax
and ecx, 0xff
mov edx, eax
shr eax, 8
xor eax, dword [ecx*4 + 0x101446c8]
mov cl, byte [esp + ebx + 0x392]
movsx ecx, cl
xor ecx, edi
and edx, 0xfffd
or edx, 2
mov dword [esi + 8], eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x101446c8]
mov eax, edx
xor eax, 1
imul eax, edx
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
movzx ecx, cl
add ecx, dword [esi + 4]
shr eax, 8
xor al, byte [esp + ebx + 0x391]
imul ecx, ecx, 0x8088405
mov byte [esp + ebx + 0x391], al
mov eax, dword [esi + 8]
mov edx, eax
and edx, 0xfffd
inc ecx
or edx, 2
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, eax
mov edi, dword [esi]
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x101446c8]
mov cl, byte [esp + ebx + 0x393]
movsx ecx, cl
mov dword [esi + 8], eax
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x101446c8]
shr edi, 8
xor ecx, edi
mov dword [esi], ecx
movzx ecx, cl
add ecx, dword [esi + 4]
mov eax, edx
xor eax, 1
imul ecx, ecx, 0x8088405
imul eax, edx
shr eax, 8
xor al, byte [esp + ebx + 0x392]
inc ecx
mov byte [esp + ebx + 0x392], al
mov eax, dword [esi + 8]
mov edx, eax
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x101446c8]
and edx, 0xfffd
mov dword [esi + 8], eax
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [esp + ebx + 0x393]
add ebx, 4
cmp ebx, 0xc
mov byte [esp + ebx + 0x38f], al
mov dword [esp + 0xc], ebx
jl 0x1002c8a1
mov ebx, dword [esp + 0x14]
cmp dword [ebx], 0
je 0x1002caa2
push 0xc
lea ecx, [esp + 0x394]
push ecx
mov ecx, ebx
call fcn.1002c000
add dword [ebx + 0x18], 0xc
cmp dword [ebx], 0
je 0x1002caa2
mov eax, 1
jmp 0x1002caa4
xor eax, eax
mov byte [ebx + 0x2d], al
mov eax, ebx
call fcn.1002c450
cmp byte [ebx + 0x78], 0
mov edi, eax
mov byte [ebx + 0x2d], 0
je 0x1002cac8
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x1002cac8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebx + 0x14]
mov esi, dword [ebx + 0x6c]
add dword [ebx + 0x18], ecx
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x68], esi
test eax, eax
jne 0x1002cc57
test edi, edi
jne 0x1002c7cd
mov edx, dword [esp + 0x10]
lea eax, [ecx + edx]
cmp dword [esp + 0x28], eax
mov edx, dword [ebx + 0x70]
sete cl
cmp byte [ebx + 0x1c], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
je 0x1002cb89
cmp dword [ebx], edi
jne 0x1002cb89
xor eax, eax
test byte [esp + 0x1c], 1
mov word [esp + 0x1e], ax
jne 0x1002cb30
mov ecx, 0xfff7
and word [esp + 0x1c], cx
mov dx, word [esp + 0x1c]
mov word [esp + 0x44], dx
mov edx, dword [esp + 0x4c]
sub edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.1002c150
test al, al
je 0x1002cb6d
mov esi, ebx
lea edi, [esp + 0x18]
call fcn.1002b2a0
test eax, eax
jne 0x1002c7cd
mov edx, dword [ebx + 0x18]
mov eax, ebx
call fcn.1002c150
test al, al
jne 0x1002cbd2
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 4
cmp word [esp + 0x1e], 0
je 0x1002cbad
mov eax, 0x4000000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 4
test cl, cl
je 0x1002cb91
mov esi, ebx
lea edi, [esp + 0x18]
call fcn.1002b570
test eax, eax
jne 0x1002c7cd
mov ax, word [esp + 0x44]
add dword [ebx + 0x18], 0x10
mov word [esp + 0x1c], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x1002cc57
mov ecx, dword [esp + 0x38]
inc dword [ebx + 0x1008c]
push ecx
call fcn.1010ccc2
mov edx, dword [esp + 0x3c]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x158]
push edx
push eax
push esi
call fcn.101162d0
add esp, 0xc
push 0x360
mov dword [esp + 0x15c], esi
call fcn.1010ea1a
mov ecx, 0xd8
lea esi, [esp + 0x1c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x48]
add esp, 4
test ecx, ecx
jne 0x1002cc31
mov dword [ebx + 0x48], eax
jmp 0x1002cc55
cmp dword [ecx + 0x35c], 0
je 0x1002cc4f
lea ebx, [ebx]
mov ecx, dword [ecx + 0x35c]
cmp dword [ecx + 0x35c], 0
jne 0x1002cc40
mov dword [ecx + 0x35c], eax
xor eax, eax
mov ecx, dword [esp + 0x4b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 4