Function at 0x1027109
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
lea ebx, [ebp + 4]
mov esi, dword [ebx + 4]
push esi
mov eax, esi
sub ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], esi
mov eax, 0x4541ec06
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov edx, 0x1000000
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
mov eax, 0xfffffff
and esi, eax
pop ecx
and edi, eax
add esi, edx
mov eax, edx
mov ecx, dword [0x10051bc]
sub eax, ecx
mov dword [ebp - 0x18], eax
jne 0x10271b3
and dword [ebp - 4], 0
test edi, edi
jbe 0x1027397
mov ebx, 0x48a64d2c
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + esi]
sub ecx, ebx
add dword [ebp - 0x24], ecx
add ecx, dword [ebp - 0x20]
mov eax, ecx
imul eax, eax, 0xac21
rol eax, 4
ror ecx, 4
xor eax, ecx
mov ecx, 0xb759b2d4
mul ecx
add eax, edx
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], edi
jb 0x1027178
jmp 0x1027394
lea eax, [esi + edi]
mov ecx, esi
sub ecx, edx
mov edx, ecx
and edx, 0xfffff000
mov dword [ebp - 4], edx
mov edx, ecx
sub edx, dword [ebp - 4]
add ecx, edi
mov edi, ecx
and edi, 0xfffff000
sub ecx, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100003c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x10000a0]
add ecx, 0x1000000
mov dword [ebp - 0x38], edi
mov edi, dword [eax + 0x10000a4]
add edi, ecx
jmp 0x1027204
mov eax, dword [ebp - 4]
cmp dword [ecx], eax
jae 0x1027208
add ecx, dword [ecx + 4]
cmp ecx, edi
jne 0x10271fa
and dword [ebp - 0x28], 0
cmp ecx, edi
je 0x1027243
mov eax, dword [ebp - 4]
cmp dword [ecx], eax
jne 0x1027243
mov eax, dword [ecx + 4]
sub eax, 8
shr eax, 1
je 0x1027243
lea ebx, [ecx + 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
movzx ebx, word [ebx]
and ebx, 0xfff
cmp ebx, edx
jae 0x1027243
inc dword [ebp - 0x28]
add dword [ebp - 4], 2
cmp dword [ebp - 0x28], eax
jne 0x1027227
mov ebx, 0x48a64d2c
cmp ecx, edi
je 0x1027357
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x1027357
mov eax, dword [ecx + 4]
lea edx, [eax - 8]
shr edx, 1
mov eax, dword [ebp - 0x28]
cmp eax, edx
jne 0x1027286
add ecx, dword [ecx + 4]
cmp ecx, edi
je 0x1027357
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x1027357
and dword [ebp - 0x28], 0
jmp 0x102725b
mov edx, dword [ebp - 0x38]
cmp dword [ecx], edx
jne 0x10272a0
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x1027357
mov eax, dword [ebp - 0x28]
mov edx, 0xf000
inc dword [ebp - 0x28]
test word [ecx + eax*2 + 8], dx
je 0x1027248
mov edx, dword [ecx]
movzx eax, word [ecx + eax*2 + 8]
and dword [ebp - 4], 0
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 8], eax
sub dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
je 0x1027310
mov eax, dword [ebp - 4]
movzx edx, byte [eax + esi]
sub edx, ebx
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0xac21
rol eax, 4
ror edx, 4
xor eax, edx
mov edx, 0xb759b2d4
mul edx
add eax, edx
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x10272d4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 8], eax
movzx edx, byte [ebp + esi - 8]
sub edx, ebx
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0xac21
rol eax, 4
ror edx, 4
xor eax, edx
mov edx, 0xb759b2d4
mul edx
add eax, edx
add dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
inc esi
cmp esi, 4
jb 0x102731a
mov esi, dword [ebp - 0x10]
add esi, 4
jmp 0x1027248
mov eax, dword [ebp - 0x1c]
xor edi, edi
sub eax, esi
mov dword [ebp - 0x1c], eax
je 0x1027394
movzx ecx, byte [edi + esi]
sub ecx, ebx
add dword [ebp - 0x24], ecx
add ecx, dword [ebp - 0x20]
mov eax, ecx
imul eax, eax, 0xac21
rol eax, 4
ror ecx, 4
xor eax, ecx
mov ecx, 0xb759b2d4
mul ecx
add eax, edx
add dword [ebp - 0x24], eax
inc edi
mov dword [ebp - 0x20], eax
cmp edi, dword [ebp - 0x1c]
jb 0x1027363
mov ebx, dword [ebp - 0xc]
add dword [ebx + 8], 0x10
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 4]
and eax, 0xfffffff
sub ecx, dword [eax + 0x1000000]
sbb edx, dword [eax + 0x1000004]
mov eax, ecx
or eax, edx
je 0x102746c
call fcn.0100d9b4
mov edx, 0xfffff000
lea ecx, [ebx + 0xc]
and ecx, 0xfffffffc
and eax, edx
mov dword [ebp - 0x1c], eax
mov dword [ebx + 8], 0x1016d68
lea esi, [ecx + 0xfff]
and esi, edx
mov edx, 0xffff
xor eax, eax
mov edi, dword [0x1042fc4]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x1042fc4], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x10273ed
mov edi, 0xffff
div edi
inc edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x1c], 0
jmp 0x1027436
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x102742e
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], 0x1016d68
mov ecx, dword [ebp - 0x50]
mov eax, dword [eax]
and eax, 0xfffffff
mov edx, ecx
mov dword [ebp - 0x40], ecx
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x1042ed0]
xor edx, ecx
and dword [ebp - 0x50], 0
mov dword [ebp - 0x44], edx
mov eax, 0x3aa84617
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x48]
mov esp, ebp
pop ebp
popfd
ret