Function at 0x10054ce0
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 [0x10189710]
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 0x10054d2b
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x2c], 0
je 0x10054d4d
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x10], esi
cmp dword [ebx], esi
je 0x10054d5d
mov dword [esp + 0x10], 0xc
push 0x104
push eax
lea eax, [esp + 0x3b0]
push eax
call fcn.10129e6f
add esp, 0xc
cmp byte [esp + 0x3a8], 0
mov byte [esp + 0x4ab], 0
jne 0x10054da1
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x3a8]
cmp byte [eax], 0x5c
jne 0x10054db0
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x10054da8
lea ecx, [esp + 0x3a8]
call fcn.10054690
mov eax, edi
mov ecx, ebx
call fcn.10054a30
cmp eax, esi
jne 0x10055487
push 0x35e
lea edx, [esp + 0x1e]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x24], cx
call fcn.1012e060
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.101287f0
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 0x10054e28
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 0x10054e97
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 0x10054eb7
mov ecx, dword [esp + 0x10]
lea edx, [eax + ecx]
mov dword [esp + 0x28], edx
jmp 0x10054ebb
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.10053a80
test eax, eax
je 0x10055019
call fcn.10054c20
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.10127db1
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 0x1005504d
call fcn.10054c20
mov eax, dword [ebx + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.10127db1
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 0x10055082
lea ebx, [ebx]
mov cl, byte [ebx]
test cl, cl
je 0x10055082
mov edx, esi
call fcn.100545f0
add ebx, 1
jne 0x10055070
cmp byte [0x101aaced], 0
jne 0x100550a4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
push edi
call fcn.1012b727
add esp, 4
xor edi, edi
call fcn.1012b739
sar eax, 7
mov byte [esp + edi + 0x390], al
inc edi
cmp edi, 0xc
jl 0x100550a6
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 + 0x10151a70]
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 + 0x10151a70]
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 + 0x10151a70]
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 + 0x10151a70]
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 + 0x10151a70]
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 + 0x10151a70]
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 + 0x10151a70]
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 + 0x10151a70]
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 0x100550d1
mov ebx, dword [esp + 0x14]
cmp dword [ebx], 0
je 0x100552d2
push 0xc
lea ecx, [esp + 0x394]
push ecx
mov ecx, ebx
call fcn.10054830
add dword [ebx + 0x18], 0xc
cmp dword [ebx], 0
je 0x100552d2
mov eax, 1
jmp 0x100552d4
xor eax, eax
mov byte [ebx + 0x2d], al
mov eax, ebx
call fcn.10054c80
cmp byte [ebx + 0x78], 0
mov edi, eax
mov byte [ebx + 0x2d], 0
je 0x100552f8
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x100552f8
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 0x10055487
test edi, edi
jne 0x10054ffd
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 0x100553b9
cmp dword [ebx], edi
jne 0x100553b9
xor eax, eax
test byte [esp + 0x1c], 1
mov word [esp + 0x1e], ax
jne 0x10055360
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.10054980
test al, al
je 0x1005539d
mov esi, ebx
lea edi, [esp + 0x18]
call fcn.10053a80
test eax, eax
jne 0x10054ffd
mov edx, dword [ebx + 0x18]
mov eax, ebx
call fcn.10054980
test al, al
jne 0x10055402
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret 4
cmp word [esp + 0x1e], 0
je 0x100553dd
mov eax, 0x4000000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret 4
test cl, cl
je 0x100553c1
mov esi, ebx
lea edi, [esp + 0x18]
call fcn.10053d50
test eax, eax
jne 0x10054ffd
mov ax, word [esp + 0x44]
add dword [ebx + 0x18], 0x10
mov word [esp + 0x1c], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x10055487
mov ecx, dword [esp + 0x38]
inc dword [ebx + 0x1008c]
push ecx
call fcn.101264a0
mov edx, dword [esp + 0x3c]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x158]
push edx
push eax
push esi
call fcn.10130710
add esp, 0xc
push 0x360
mov dword [esp + 0x15c], esi
call fcn.1012911a
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 0x10055461
mov dword [ebx + 0x48], eax
jmp 0x10055485
cmp dword [ecx + 0x35c], 0
je 0x1005547f
lea ebx, [ebx]
mov ecx, dword [ecx + 0x35c]
cmp dword [ecx + 0x35c], 0
jne 0x10055470
mov dword [ecx + 0x35c], eax
xor eax, eax
mov ecx, dword [esp + 0x4b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret 4