Function at 0x106561e
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
lea ebx, [ebp + 4]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], edi
mov edi, dword [ebx + 4]
sub ebx, 4
mov eax, edi
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], edi
mov eax, 0x586c700c
mov eax, 0xfffffff
mov esi, dword [edi]
mov edi, dword [edi + 8]
mov edx, dword [0x100771c]
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 0x10656e3
and dword [ebp - 4], 0
test esi, esi
jbe 0x1065919
mov ebx, 0x1ecc7d9e
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mov edx, 0xe1338262
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 0x1065693
jmp 0x1065916
lea ecx, [esi + edi]
mov edx, edi
sub edx, eax
mov ebx, edx
and ebx, 0xfffff000
mov dword [ebp - 4], ebx
add esi, edx
mov ebx, edx
sub ebx, dword [ebp - 4]
mov edx, esi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x100003c]
and edx, 0xfffff000
sub esi, edx
mov dword [ebp - 0x34], esi
mov esi, dword [ecx + 0x10000a0]
add esi, eax
mov eax, dword [ecx + 0x10000a4]
add eax, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], eax
jmp 0x1065734
mov ecx, dword [ebp - 4]
cmp dword [esi], ecx
jae 0x1065738
add esi, dword [esi + 4]
cmp esi, eax
jne 0x106572a
and dword [ebp - 0x28], 0
cmp esi, eax
je 0x1065779
mov ecx, dword [ebp - 4]
cmp dword [esi], ecx
jne 0x1065779
mov ecx, dword [esi + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x10], ecx
je 0x1065779
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 0x1065779
inc dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 4], 2
cmp dword [ebp - 0x28], ecx
jne 0x106575a
mov ebx, 0x1ecc7d9e
mov ecx, 0x7fffffff
jmp 0x106578b
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
cmp esi, eax
je 0x10658c4
cmp dword [esi], edx
ja 0x10658c4
mov eax, dword [esi + 4]
lea edx, [eax - 8]
shr edx, 1
mov eax, dword [ebp - 0x28]
cmp eax, edx
jne 0x10657c7
add esi, dword [esi + 4]
cmp esi, dword [ebp - 0x30]
je 0x10658c4
mov eax, dword [ebp - 0x38]
cmp dword [esi], eax
ja 0x10658c4
and dword [ebp - 0x28], 0
jmp 0x106579b
mov edx, dword [ebp - 0x38]
cmp dword [esi], edx
jne 0x10657e1
movzx eax, word [esi + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x10658c4
mov edx, 0xf000
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
test word [esi + eax*2 + 8], dx
je 0x1065785
movzx eax, word [esi + eax*2 + 8]
mov edx, dword [esi]
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 0x1065868
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
sub eax, ebx
add dword [ebp - 0x24], eax
mov edx, 0xe1338262
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 0x1065815
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
cmp edi, 4
mov dword [ebp - 0x20], edx
jb 0x1065872
mov edi, dword [ebp - 0x10]
add edi, 4
jmp 0x1065785
xor esi, esi
mov eax, dword [ebp - 0x1c]
sub eax, edi
mov dword [ebp - 0x1c], eax
je 0x1065916
movzx eax, byte [edi + esi]
mov edx, 0xe1338262
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 0x10658d0
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]
mov ecx, dword [ecx + 0x1000004]
xor eax, dword [ebp - 0x24]
xor ecx, dword [ebp - 0x20]
or eax, ecx
je 0x10659f2
call fcn.01035dac
lea ecx, [ebx + 0xc]
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
mov edx, 0xfffff000
and eax, edx
mov dword [ebp - 0x1c], eax
mov dword [ebx + 8], 0x1021023
and esi, edx
mov edx, 0xffff
xor eax, eax
mov edi, dword [0x10893f8]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x10893f8], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x106596e
mov edi, 0xffff
div edi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, ecx
inc edx
cmp ecx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x1c], 0
jae 0x10659bf
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
add eax, 4
cmp eax, esi
jb 0x10659b3
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], 0x1021023
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x3c]
and eax, 0xfffffff
mov dword [ebp - 0x48], ecx
mov edx, ecx
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x1089048]
xor edx, ecx
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], edx
mov eax, 0xa4e24e26
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x40]
mov esp, ebp
pop ebp
popfd
ret