Function at 0x1001cd6
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], esi
lea ebx, [ebp + 4]
mov dword [ebp - 0x48], edi
mov edi, dword [ebx + 4]
mov eax, edi
push edi
sub ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], edi
mov eax, 0xea79568f
mov eax, 0xfffffff
mov esi, dword [edi]
mov edx, dword [0x1033b04]
mov edi, dword [edi + 8]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
pop ecx
shr esi, 1
and edi, eax
and esi, eax
mov eax, 0x1000000
add edi, eax
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x18], ecx
jne 0x1001d9a
and dword [ebp - 4], 0
test esi, esi
jbe 0x1001fd0
mov ebx, 0x1ecc7d9e
mov ecx, 0x7fffffff
mov edx, 0xe1338262
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
mov edx, eax
imul edx, edx, 0xa468
rol edx, 2
ror eax, 2
xor edx, eax
add dword [ebp - 0x24], edx
inc dword [ebp - 4]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 4], esi
jb 0x1001d4a
jmp 0x1001fcd
mov edx, edi
sub edx, eax
mov ebx, edx
and ebx, 0xfffff000
mov dword [ebp - 4], ebx
mov ebx, edx
lea ecx, [esi + edi]
add esi, edx
mov edx, esi
sub ebx, dword [ebp - 4]
and edx, 0xfffff000
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x100003c]
sub esi, edx
mov dword [ebp - 0x34], esi
mov esi, dword [ecx + 0x10000a0]
add esi, eax
mov eax, dword [ecx + 0x10000a4]
mov dword [ebp - 0x38], edx
add eax, esi
mov dword [ebp - 0x30], eax
jmp 0x1001deb
mov ecx, dword [ebp - 4]
cmp dword [esi], ecx
jae 0x1001def
add esi, dword [esi + 4]
cmp esi, eax
jne 0x1001de1
and dword [ebp - 0x28], 0
cmp esi, eax
je 0x1001e30
mov ecx, dword [ebp - 4]
cmp dword [esi], ecx
jne 0x1001e30
mov ecx, dword [esi + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x10], ecx
je 0x1001e30
lea ecx, [esi + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx]
and ecx, 0xfff
cmp ecx, ebx
jae 0x1001e30
inc dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 4], 2
cmp dword [ebp - 0x28], ecx
jne 0x1001e11
mov ecx, 0x7fffffff
mov ebx, 0x1ecc7d9e
jmp 0x1001e42
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
cmp esi, eax
je 0x1001f7b
cmp dword [esi], edx
ja 0x1001f7b
mov eax, dword [esi + 4]
lea edx, [eax - 8]
mov eax, dword [ebp - 0x28]
shr edx, 1
cmp eax, edx
jne 0x1001e7e
add esi, dword [esi + 4]
cmp esi, dword [ebp - 0x30]
je 0x1001f7b
mov eax, dword [ebp - 0x38]
cmp dword [esi], eax
ja 0x1001f7b
and dword [ebp - 0x28], 0
jmp 0x1001e52
mov edx, dword [ebp - 0x38]
cmp dword [esi], edx
jne 0x1001e98
movzx eax, word [esi + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x1001f7b
mov edx, 0xf000
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
test word [esi + eax*2 + 8], dx
je 0x1001e3c
mov edx, dword [esi]
movzx eax, word [esi + 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], edi
mov dword [ebp - 0x10], eax
je 0x1001f1f
mov eax, dword [ebp - 4]
mov edx, 0xe1338262
movzx eax, byte [eax + edi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
mov edx, eax
imul edx, edx, 0xa468
rol edx, 2
ror eax, 2
xor edx, eax
mov eax, edx
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], edx
cmp eax, dword [ebp - 8]
jb 0x1001ecc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
xor edi, edi
mov edx, 0xe1338262
movzx eax, byte [ebp + edi - 8]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
mov edx, eax
imul edx, edx, 0xa468
rol edx, 2
ror eax, 2
xor edx, eax
add dword [ebp - 0x24], edx
inc edi
mov dword [ebp - 0x20], edx
cmp edi, 4
jb 0x1001f29
mov edi, dword [ebp - 0x10]
add edi, 4
jmp 0x1001e3c
mov eax, dword [ebp - 0x1c]
xor esi, esi
sub eax, edi
mov dword [ebp - 0x1c], eax
je 0x1001fcd
mov edx, 0xe1338262
movzx eax, byte [edi + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov eax, edx
sar eax, 0x1f
and eax, ecx
add eax, edx
mov edx, eax
imul edx, edx, 0xa468
rol edx, 2
ror eax, 2
xor edx, eax
add dword [ebp - 0x24], edx
inc esi
mov dword [ebp - 0x20], edx
cmp esi, dword [ebp - 0x1c]
jb 0x1001f87
mov ebx, dword [ebp - 0xc]
add dword [ebx + 8], 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
and ecx, 0xfffffff
mov eax, dword [ecx + 0x1000000]
xor eax, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x1000004]
xor ecx, dword [ebp - 0x20]
or eax, ecx
je 0x10020a9
call fcn.0100ddeb
mov edx, 0xfffff000
lea ecx, [ebx + 0xc]
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
and eax, edx
and esi, edx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov edx, 0xffff
mov dword [ebx + 8], 0x1040348
mov edi, dword [0x104c148]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x104c148], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x1002025
mov edi, 0xffff
div edi
inc edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, ecx
cmp ecx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x1c], 0
jae 0x1002076
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
add eax, 4
cmp eax, esi
jb 0x100206a
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], 0x1040348
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x48], ecx
and eax, 0xfffffff
mov edx, ecx
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x104d39c]
xor edx, ecx
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], edx
mov eax, 0x363fde07
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov esp, ebp
pop ebp
popfd
ret