Function at 0x10005bc0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5b4
mov eax, dword [0x10011080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, edx
xor edi, edi
mov dword [ebp - 0x5b4], ebx
mov dword [ebp - 0x5a4], ecx
cmp dword [ebx + 0x14], edi
je 0x10005c09
mov eax, 0x40000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006817
mov esp, ebp
pop ebp
ret 8
cmp byte [ebx + 0x2c], 0
je 0x10005c27
mov eax, 0x50000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006817
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x5b0], edi
cmp dword [ebx], edi
je 0x10005c40
cmp esi, 4
je 0x10005c40
mov dword [ebp - 0x5b0], 0xc
lea edx, [ebp - 0x238]
sub edx, eax
jmp 0x10005c50
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x10005c50
cmp word [ebp - 0x238], di
je 0x10005d4a
lea eax, [ebp - 0x238]
cmp word [eax], 0x5c
jne 0x10005c80
mov edx, 0x2f
mov word [eax], dx
add eax, 2
cmp word [eax], di
jne 0x10005c72
cmp esi, 4
sete dl
mov byte [ebp - 0x59d], dl
test dl, dl
je 0x10005cc2
lea eax, [ebp - 0x238]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10005ca1
sub eax, esi
sar eax, 1
cmp word [ebp + eax*2 - 0x23a], 0x2f
mov byte [ebp - 0x59c], 1
jne 0x10005cc9
mov byte [ebp - 0x59c], 0
mov dword [ebp - 0x5ac], 8
test dl, dl
jne 0x10005ce6
lea edx, [ebp - 0x238]
call fcn.10004f80
test al, al
je 0x10005cec
mov dword [ebp - 0x5ac], edi
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x10005d03
mov ecx, dword [ebp - 0x5a4]
mov eax, ebx
call fcn.100055f0
jmp 0x10005d6e
cmp eax, 1
jne 0x10005d17
mov ecx, dword [ebp - 0x5a4]
call fcn.10005670
xor edi, edi
jmp 0x10005d6e
cmp eax, 3
jne 0x10005d62
mov eax, dword [ebp - 0x5a4]
mov dword [ebx + 0x7c], edi
mov dword [ebx + 0x84], eax
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x78], edi
mov dword [ebx + 0x90], edi
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x88], edi
mov dword [ebx + 0x8c], edi
mov eax, 0x10000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006817
mov esp, ebp
pop ebp
ret 8
cmp eax, 4
jne 0x10005d4a
mov esi, ebx
call fcn.100057c0
cmp eax, edi
jne 0x10005d4f
push edi
push edi
push 0x104
lea ecx, [ebp - 0x450]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x238]
push edx
push edi
push 0x3a8
mov dword [ebp - 0x23c], edi
mov byte [ebp - 0x560], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x450]
lea edx, [eax + 1]
jmp 0x10005db0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005db0
sub eax, edx
mov dword [ebp - 0x580], eax
cmp byte [ebp - 0x59c], cl
je 0x10005de9
lea edi, [ebp - 0x450]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005dd0
mov ax, word [0x1000f9bc]
mov word [edi], ax
inc dword [ebp - 0x580]
xor edi, edi
xor ecx, ecx
mov word [ebp - 0x56e], cx
mov ecx, dword [ebx + 0x68]
mov eax, 8
mov byte [ebp - 0x34c], 0
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x574], edi
mov dword [ebp - 0x248], 1
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x598], 0x140b17
mov dword [ebp - 0x590], ecx
mov dword [ebp - 0x58c], edi
mov word [ebp - 0x594], ax
cmp dword [ebx], edi
je 0x10005e53
cmp byte [ebp - 0x59d], 0
jne 0x10005e53
mov eax, 9
mov word [ebp - 0x594], ax
mov word [ebp - 0x56c], ax
mov eax, dword [ebp - 0x5ac]
mov word [ebp - 0x592], ax
cmp eax, edi
jne 0x10005e80
mov eax, dword [ebx + 0x70]
cmp eax, edi
jl 0x10005e80
add eax, dword [ebp - 0x5b0]
mov dword [ebp - 0x588], eax
jmp 0x10005e86
mov dword [ebp - 0x588], edi
mov eax, dword [ebx + 0x70]
mov edx, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x58]
mov dword [ebp - 0x584], eax
mov eax, dword [ebx + 0x18]
add eax, dword [ebx + 0x10]
mov dword [ebp - 0x568], edx
mov dword [ebp - 0x564], eax
movzx eax, byte [ebx + 0x58]
xor ecx, ecx
mov byte [ebp - 0x13], al
mov eax, dword [ebx + 0x5c]
mov word [ebp - 0x570], cx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x45c], ecx
lea edx, [ebp - 0x30]
mov dword [ebp - 0x458], edx
mov edx, eax
mov ecx, esi
shrd ecx, edx, 8
sar edx, 8
mov edx, eax
mov byte [ebp - 0x12], cl
mov ecx, esi
shrd ecx, edx, 0x10
sar edx, 0x10
mov dl, byte [ebx + 0x50]
mov byte [ebp - 0xf], dl
mov byte [ebp - 0x11], cl
mov ecx, esi
mov esi, dword [ebx + 0x50]
shrd ecx, eax, 0x18
sar eax, 0x18
mov eax, dword [ebx + 0x54]
mov edi, eax
mov edx, esi
shrd edx, edi, 8
mov byte [ebp - 0xe], dl
sar edi, 8
mov edi, eax
mov edx, esi
shrd edx, edi, 0x10
mov byte [ebp - 0xd], dl
mov edx, esi
mov esi, dword [ebx + 0x60]
shrd edx, eax, 0x18
sar eax, 0x18
movzx eax, byte [ebx + 0x60]
mov byte [ebp - 0xc], dl
sar edi, 0x10
mov byte [ebp - 0xb], al
mov eax, dword [ebx + 0x64]
mov edi, eax
mov edx, esi
shrd edx, edi, 8
mov byte [ebp - 0xa], dl
sar edi, 8
mov edi, eax
mov edx, esi
shrd edx, edi, 0x10
mov byte [ebp - 9], dl
mov edx, esi
shrd edx, eax, 0x18
mov dword [ebp - 0x18], 0xd5455
sar eax, 0x18
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x14], 7
mov byte [ebp - 8], dl
mov edx, dword [ebp - 0x14]
sar edi, 0x10
mov dword [ebp - 0x30], eax
mov esi, ebx
lea edi, [ebp - 0x598]
mov dword [ebp - 0x57c], 0x11
mov dword [ebp - 0x578], 9
mov byte [ebp - 0x10], cl
mov dword [ebp - 0x2c], edx
mov byte [ebp - 0x28], cl
mov byte [ebp - 0x2e], 5
call fcn.100044a0
test eax, eax
je 0x10005fbd
call fcn.10005980
mov eax, 0x400
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006817
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x57c]
mov ecx, dword [ebp - 0x580]
lea edx, [eax + ecx + 0x1e]
add dword [ebx + 0x18], edx
cmp dword [ebx + 0x14], 0
je 0x10005ff1
call fcn.10005980
mov eax, dword [ebx + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006817
mov esp, ebp
pop ebp
ret 8
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 0x10006020
mov edi, edi
mov cl, byte [ebx]
test cl, cl
je 0x10006020
mov edx, esi
call fcn.10004f30
inc ebx
jne 0x10006010
cmp byte [0x10012f0c], 0
jne 0x10006042
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
push edi
call fcn.10007204
add esp, 4
xor edi, edi
call fcn.10007216
sar eax, 7
mov byte [ebp + edi - 0x24], al
inc edi
cmp edi, 0xc
jl 0x10006044
mov eax, dword [ebp - 0x590]
mov edi, dword [esi + 4]
mov ecx, dword [esi]
shr eax, 8
xor edx, edx
mov byte [ebp - 0x19], al
mov eax, dword [esi + 8]
mov dword [ebp - 0x5a4], edx
mov dword [ebp - 0x5a8], edi
mov dl, byte [ebp + edx - 0x24]
movsx edx, dl
xor edx, ecx
and edx, 0xff
mov edi, ecx
mov ecx, dword [edx*4 + 0x1000f410]
shr edi, 8
xor ecx, edi
movzx edi, cl
add edi, dword [ebp - 0x5a8]
mov ebx, eax
imul edi, edi, 0x8088405
and ebx, 0xfffd
or ebx, 2
inc edi
mov edx, edi
shr edx, 0x18
xor edx, eax
shr eax, 8
mov dword [esi], ecx
mov dword [esi + 4], edi
and edx, 0xff
xor eax, dword [edx*4 + 0x1000f410]
mov edx, ebx
xor edx, 1
imul edx, ebx
mov ebx, dword [ebp - 0x5a4]
shr edx, 8
xor dl, byte [ebp + ebx - 0x24]
mov dword [esi + 8], eax
mov byte [ebp + ebx - 0x24], dl
mov edx, ebx
movzx ebx, byte [ebp + edx - 0x23]
mov byte [ebp - 0x59c], bl
mov ebx, eax
and ebx, 0xfffd
or ebx, 2
mov dword [ebp - 0x5a4], ebx
movsx ebx, byte [ebp - 0x59c]
xor ebx, ecx
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x1000f410]
shr ecx, 8
xor ebx, ecx
movzx ecx, bl
add ecx, edi
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi], ebx
mov edi, ecx
shr edi, 0x18
xor edi, eax
shr eax, 8
mov dword [ebp - 0x5a8], ebx
and edi, 0xff
mov dword [esi + 4], ecx
xor eax, dword [edi*4 + 0x1000f410]
mov edi, eax
mov eax, dword [ebp - 0x5a4]
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor bl, byte [ebp - 0x59c]
mov eax, edi
mov byte [ebp + edx - 0x23], bl
mov bl, byte [ebp + edx - 0x22]
and eax, 0xfffd
or eax, 2
mov byte [ebp - 0x59c], bl
mov dword [ebp - 0x5a4], eax
mov eax, dword [ebp - 0x5a8]
movsx ebx, bl
xor ebx, eax
shr eax, 8
and ebx, 0xff
mov dword [ebp - 0x5a8], eax
mov dword [esi + 8], edi
mov eax, dword [ebx*4 + 0x1000f410]
xor eax, dword [ebp - 0x5a8]
mov dword [ebp - 0x5a8], eax
mov dword [esi], eax
movzx eax, al
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
shr ecx, 0x18
xor ecx, edi
mov dword [esi + 4], eax
and ecx, 0xff
shr edi, 8
xor edi, dword [ecx*4 + 0x1000f410]
mov ecx, dword [ebp - 0x5a4]
mov ebx, ecx
xor ebx, 1
imul ebx, ecx
shr ebx, 8
xor bl, byte [ebp - 0x59c]
mov ecx, edi
mov byte [ebp + edx - 0x22], bl
mov bl, byte [ebp + edx - 0x21]
mov byte [ebp - 0x59c], bl
and ecx, 0xfffd
movsx ebx, bl
or ecx, 2
mov dword [ebp - 0x5a4], ecx
mov ecx, dword [ebp - 0x5a8]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
mov dword [esi + 8], edi
mov dword [ebp - 0x5a8], ecx
mov ecx, dword [ebx*4 + 0x1000f410]
xor ecx, dword [ebp - 0x5a8]
add edx, 4
movzx ebx, cl
add eax, ebx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
mov dword [ebp - 0x5a8], eax
shr eax, 0x18
xor eax, edi
and eax, 0xff
shr edi, 8
mov dword [esi], ecx
xor edi, dword [eax*4 + 0x1000f410]
mov eax, edi
mov edi, dword [ebp - 0x5a4]
mov ebx, edi
xor ebx, 1
imul ebx, edi
shr ebx, 8
xor bl, byte [ebp - 0x59c]
mov dword [esi + 8], eax
mov byte [ebp + edx - 0x25], bl
mov dword [ebp - 0x5a4], edx
cmp edx, 0xc
jl 0x10006078
mov ebx, dword [ebp - 0x5b4]
xor esi, esi
cmp dword [ebx], esi
je 0x100062d5
cmp byte [ebp - 0x59d], 0
jne 0x100062c1
push 0xc
lea edx, [ebp - 0x24]
push edx
mov ecx, ebx
call fcn.100053d0
add dword [ebx + 0x18], 0xc
cmp dword [ebx], esi
je 0x100062d5
cmp byte [ebp - 0x59d], 0
jne 0x100062d5
mov eax, 1
jmp 0x100062d7
xor eax, eax
cmp byte [ebp - 0x59d], 0
mov byte [ebx + 0x2d], al
jne 0x1000630f
mov eax, dword [ebp - 0x5ac]
cmp eax, 8
jne 0x10006300
lea eax, [ebp - 0x598]
push eax
mov edi, ebx
call fcn.100059e0
mov esi, eax
jmp 0x10006315
cmp eax, esi
jne 0x10006315
mov esi, ebx
call fcn.10005af0
mov esi, eax
jmp 0x10006315
mov dword [ebx + 0x90], esi
cmp byte [ebx + 0x80], 0
mov byte [ebx + 0x2d], 0
je 0x10006330
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x10006330
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x90]
mov eax, dword [ebx + 0x14]
mov edi, dword [ebx + 0x74]
add dword [ebx + 0x18], ecx
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], edi
test eax, eax
jne 0x10005d4f
test esi, esi
jne 0x10005fa5
mov edx, dword [ebp - 0x5b0]
lea eax, [ecx + edx]
cmp dword [ebp - 0x588], eax
mov edx, dword [ebx + 0x78]
sete cl
cmp byte [ebx + 0x1c], 0
mov dword [ebp - 0x58c], edx
mov dword [ebp - 0x588], eax
mov dword [ebp - 0x584], edi
je 0x1000641b
cmp dword [ebx], esi
je 0x1000639b
cmp byte [ebp - 0x59d], 0
je 0x1000641b
test byte [ebp - 0x594], 1
mov ax, word [ebp - 0x5ac]
mov word [ebp - 0x592], ax
jne 0x100063be
mov ecx, 0xfff7
and word [ebp - 0x594], cx
mov dx, word [ebp - 0x594]
mov word [ebp - 0x56c], dx
mov edx, dword [ebp - 0x564]
sub edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.10005530
test al, al
je 0x10006403
mov esi, ebx
lea edi, [ebp - 0x598]
call fcn.100044a0
test eax, eax
jne 0x10005fa5
mov edx, dword [ebx + 0x18]
mov eax, ebx
call fcn.10005530
test al, al
jne 0x10006471
mov eax, 0x2000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006817
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x5ac]
cmp word [ebp - 0x592], ax
je 0x10006442
mov eax, 0x4000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006817
mov esp, ebp
pop ebp
ret 8
test eax, eax
jne 0x1000644a
test cl, cl
je 0x1000642a
mov esi, ebx
lea edi, [ebp - 0x598]
call fcn.10004740
test eax, eax
jne 0x10005fa5
mov ax, word [ebp - 0x56c]
add dword [ebx + 0x18], 0x10
mov word [ebp - 0x594], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x10005d4f
mov ecx, dword [ebp - 0x578]
push ecx
call fcn.10006e3f
mov edx, dword [ebp - 0x578]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x458]
push edx
push eax
push esi
call fcn.1000b120
add esp, 0xc
push 0x360
mov dword [ebp - 0x458], esi
call fcn.10006e3f
mov ecx, 0xd8
lea esi, [ebp - 0x598]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x44]
add esp, 4
test ecx, ecx
jne 0x100064e5
mov dword [ebx + 0x44], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006817
mov esp, ebp
pop ebp
ret 8
cmp dword [ecx + 0x35c], 0
je 0x100064ff
mov edi, edi
mov ecx, dword [ecx + 0x35c]
cmp dword [ecx + 0x35c], 0
jne 0x100064f0
mov dword [ecx + 0x35c], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10006817
mov esp, ebp
pop ebp
ret 8