Function at 0x1001b660
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, 0x4b0
mov eax, dword [0x1003f050]
xor eax, esp
mov dword [esp + 0x4ac], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], eax
cmp dword [ebx + 0x14], esi
je 0x1001b6a5
mov eax, 0x40000
pop edi
pop esi
mov ecx, dword [esp + 0x4ac]
xor ecx, esp
call fcn.1001c89c
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x2c], 0
je 0x1001b6c6
mov eax, 0x50000
pop edi
pop esi
mov ecx, dword [esp + 0x4ac]
xor ecx, esp
call fcn.1001c89c
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x14], esi
cmp dword [ebx], esi
je 0x1001b6d6
mov dword [esp + 0x14], 0xc
xor eax, eax
jmp 0x1001b6e0
mov cl, byte [eax + str.skin.png]
mov byte [esp + eax + 0x3a8], cl
inc eax
test cl, cl
jne 0x1001b6e0
cmp byte [esp + 0x3a8], cl
jne 0x1001b716
mov eax, 0x10000
pop edi
pop esi
mov ecx, dword [esp + 0x4ac]
xor ecx, esp
call fcn.1001c89c
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x3a8]
lea ecx, [ecx]
cmp byte [eax], 0x5c
jne 0x1001b728
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x1001b720
mov edi, 8
lea ecx, [esp + 0x3a8]
mov dword [esp + 0x10], edi
call fcn.1001ac30
test al, al
je 0x1001b74d
mov dword [esp + 0x10], esi
mov edi, esi
mov eax, dword [esp + 0xc]
mov ecx, ebx
call fcn.1001b220
cmp eax, esi
jne 0x1001be97
mov dword [esp + 0x374], esi
mov byte [esp + 0x50], 0
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x3a8]
mov byte [esp + eax + 0x160], cl
inc eax
test cl, cl
jne 0x1001b770
lea eax, [esp + 0x160]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001b790
sub eax, edx
mov dword [esp + 0x30], eax
mov byte [esp + 0x264], cl
xor ecx, ecx
mov eax, 0x14
mov word [esp + 0x42], cx
mov ecx, dword [ebx + 0x68]
mov word [esp + 0x1a], ax
mov edx, 0xb17
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 + 0x18], dx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov word [esp + 0x1c], ax
cmp dword [ebx], esi
je 0x1001b7ff
mov eax, 9
mov word [esp + 0x1c], ax
mov word [esp + 0x44], ax
mov word [esp + 0x1e], di
cmp edi, esi
jne 0x1001b820
mov eax, dword [ebx + 0x70]
cmp eax, esi
jl 0x1001b820
mov edx, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x28], eax
jmp 0x1001b824
mov dword [esp + 0x28], esi
mov eax, dword [ebx + 0x70]
mov edx, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x58]
mov edi, dword [ebx + 0x5c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x18]
add eax, dword [ebx + 0x10]
xor ecx, ecx
mov word [esp + 0x40], cx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov al, byte [ebx + 0x58]
lea ecx, [esp + 0x388]
lea edx, [esp + 0x39c]
mov dword [esp + 0x154], ecx
mov dword [esp + 0x158], edx
mov byte [esp + 0x38d], al
mov eax, esi
mov edx, edi
mov cl, 8
mov dword [esp + 0x34], 0x11
mov dword [esp + 0x38], 9
mov byte [esp + 0x388], 0x55
mov byte [esp + 0x389], 0x54
mov byte [esp + 0x38a], 0xd
mov byte [esp + 0x38b], 0
mov byte [esp + 0x38c], 7
call fcn.100302c0
mov byte [esp + 0x38e], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.100302c0
mov byte [esp + 0x38f], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.100302c0
mov cl, byte [ebx + 0x50]
mov esi, dword [ebx + 0x50]
mov edi, dword [ebx + 0x54]
mov byte [esp + 0x390], al
mov byte [esp + 0x391], cl
mov eax, esi
mov edx, edi
mov cl, 8
call fcn.100302c0
mov byte [esp + 0x392], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.100302c0
mov byte [esp + 0x393], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.100302c0
movzx edx, byte [ebx + 0x60]
mov esi, dword [ebx + 0x60]
mov edi, dword [ebx + 0x64]
mov byte [esp + 0x394], al
mov byte [esp + 0x395], dl
mov eax, esi
mov edx, edi
mov cl, 8
call fcn.100302c0
mov byte [esp + 0x396], al
mov eax, esi
mov edx, edi
mov cl, 0x10
call fcn.100302c0
mov byte [esp + 0x397], al
mov eax, esi
mov edx, edi
mov cl, 0x18
call fcn.100302c0
mov ecx, dword [esp + 0x38c]
mov byte [esp + 0x398], al
mov eax, dword [esp + 0x388]
mov dword [esp + 0x39c], eax
mov dword [esp + 0x3a0], ecx
movzx edx, byte [esp + 0x390]
mov esi, ebx
lea edi, [esp + 0x18]
mov byte [esp + 0x3a4], dl
mov byte [esp + 0x39e], 5
call fcn.1001a070
test eax, eax
je 0x1001b9cc
call fcn.1001b490
mov eax, 0x400
pop edi
pop esi
mov ecx, dword [esp + 0x4ac]
xor ecx, esp
call fcn.1001c89c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
lea edx, [ecx + eax + 0x1e]
add dword [ebx + 0x18], edx
cmp dword [ebx + 0x14], 0
je 0x1001b9ff
call fcn.1001b490
mov eax, dword [ebx + 0x14]
pop edi
pop esi
mov ecx, dword [esp + 0x4ac]
xor ecx, esp
call fcn.1001c89c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebx]
lea esi, [ebx + 0x30]
mov dword [esi], 0x12345678
mov dword [ebx + 0x34], 0x23456789
mov dword [ebx + 0x38], 0x34567890
test edi, edi
je 0x1001ba2e
mov cl, byte [edi]
test cl, cl
je 0x1001ba2e
mov edx, esi
call fcn.1001abe0
add edi, 1
jne 0x1001ba1c
cmp byte [0x10043420], 0
jne 0x1001ba50
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
push edi
call fcn.1001e22d
add esp, 4
xor edi, edi
call fcn.1001e23f
sar eax, 7
mov byte [esp + edi + 0x37c], al
inc edi
cmp edi, 0xc
jl 0x1001ba52
mov eax, dword [esp + 0x20]
shr eax, 8
mov byte [esp + 0x387], al
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
mov cl, byte [esp + ecx + 0x37c]
movsx ecx, cl
mov edi, dword [esi]
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100361d0]
mov dword [esp + 8], ecx
mov eax, dword [esi + 8]
shr edi, 8
xor dword [esp + 8], edi
mov ecx, dword [esp + 8]
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
and edx, 0xfffd
or edx, 2
shr eax, 8
xor eax, dword [ecx*4 + 0x100361d0]
mov edi, dword [esi]
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
xor cl, byte [esp + eax + 0x37c]
mov byte [esp + eax + 0x37c], cl
mov cl, byte [esp + eax + 0x37d]
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100361d0]
mov dword [esp + 8], ecx
mov eax, dword [esi + 8]
shr edi, 8
xor dword [esp + 8], edi
mov ecx, dword [esp + 8]
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
and edx, 0xfffd
mov edi, dword [esi]
or edx, 2
shr eax, 8
xor eax, dword [ecx*4 + 0x100361d0]
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
xor cl, byte [esp + eax + 0x37d]
mov byte [esp + eax + 0x37d], cl
mov cl, byte [esp + eax + 0x37e]
mov eax, dword [esi + 8]
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100361d0]
mov edx, eax
and edx, 0xfffd
mov dword [esp + 8], ecx
shr edi, 8
or edx, 2
xor dword [esp + 8], edi
mov ecx, dword [esp + 8]
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
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x100361d0]
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
xor cl, byte [esp + eax + 0x37e]
mov byte [esp + eax + 0x37e], cl
mov cl, byte [esp + eax + 0x37f]
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x100361d0]
mov dword [esp + 8], ecx
mov eax, dword [esi + 8]
shr edi, 8
xor dword [esp + 8], edi
mov ecx, dword [esp + 8]
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 + 0x100361d0]
and edx, 0xfffd
or edx, 2
mov ecx, edx
xor ecx, 1
imul ecx, edx
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
shr ecx, 8
xor cl, byte [esp + eax + 0x37f]
add eax, 4
cmp eax, 0xc
mov byte [esp + eax + 0x37b], cl
mov dword [esp + 0xc], eax
jl 0x1001ba7d
cmp dword [ebx], 0
je 0x1001bca7
push 0xc
lea edx, [esp + 0x380]
push edx
mov ecx, ebx
call fcn.1001b020
add dword [ebx + 0x18], 0xc
xor eax, eax
xor esi, esi
cmp dword [ebx], esi
setne al
mov byte [ebx + 0x2d], al
mov eax, dword [esp + 0x10]
cmp eax, 8
jne 0x1001bcca
lea eax, [esp + 0x18]
push eax
mov edi, ebx
call fcn.1001b4f0
jmp 0x1001bcd5
test eax, eax
jne 0x1001bcd7
mov eax, ebx
call fcn.1001b600
mov esi, eax
cmp byte [ebx + 0x80], 0
mov byte [ebx + 0x2d], 0
je 0x1001bcf2
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x1001bcf2
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 0x1001be97
test esi, esi
jne 0x1001b9b1
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx]
cmp dword [esp + 0x28], eax
mov edx, dword [ebx + 0x78]
sete cl
cmp byte [ebx + 0x1c], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
je 0x1001bdb5
cmp dword [ebx], esi
jne 0x1001bdb5
test byte [esp + 0x1c], 1
mov ax, word [esp + 0x10]
mov word [esp + 0x1e], ax
jne 0x1001bd5d
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.1001b170
test al, al
je 0x1001bd9a
mov esi, ebx
lea edi, [esp + 0x18]
call fcn.1001a070
test eax, eax
jne 0x1001b9b1
mov edx, dword [ebx + 0x18]
mov eax, ebx
call fcn.1001b170
test al, al
jne 0x1001be04
mov eax, 0x2000000
pop edi
pop esi
mov ecx, dword [esp + 0x4ac]
xor ecx, esp
call fcn.1001c89c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp word [esp + 0x1e], ax
je 0x1001bddb
mov eax, 0x4000000
pop edi
pop esi
mov ecx, dword [esp + 0x4ac]
xor ecx, esp
call fcn.1001c89c
mov esp, ebp
pop ebp
ret 4
test eax, eax
jne 0x1001bde3
test cl, cl
je 0x1001bdc0
mov esi, ebx
lea edi, [esp + 0x18]
call fcn.1001a340
test eax, eax
jne 0x1001b9b1
mov ax, word [esp + 0x44]
add dword [ebx + 0x18], 0x10
mov word [esp + 0x1c], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x1001be97
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1001d3bb
mov edx, dword [esp + 0x3c]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x158]
push edx
push eax
push esi
call fcn.10021c90
add esp, 0xc
push 0x360
mov dword [esp + 0x15c], esi
call fcn.1001d3bb
mov ecx, 0xd8
lea esi, [esp + 0x1c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x44]
add esp, 4
test ecx, ecx
jne 0x1001be77
mov dword [ebx + 0x44], eax
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x4ac]
xor ecx, esp
call fcn.1001c89c
mov esp, ebp
pop ebp
ret 4
cmp dword [ecx + 0x35c], 0
je 0x1001be8f
mov ecx, dword [ecx + 0x35c]
cmp dword [ecx + 0x35c], 0
jne 0x1001be80
mov dword [ecx + 0x35c], eax
xor eax, eax
mov ecx, dword [esp + 0x4b4]
pop edi
pop esi
xor ecx, esp
call fcn.1001c89c
mov esp, ebp
pop ebp
ret 4