Function at 0x1001471
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], edi
lea ebx, [ebp + 4]
mov esi, dword [ebx + 4]
mov eax, esi
push esi
sub ebx, 4
mov dword [ebp - 0x10], esi
mov eax, 0x9860dbb0
mov edi, 0x1000000
mov edx, dword [esi]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
mov eax, 0xfffffff
pop ecx
mov ecx, dword [esi + 0xc]
and ecx, eax
and edx, eax
mov esi, dword [0x1034d40]
add ecx, edi
mov eax, edi
sub eax, esi
mov dword [ebp - 0x14], eax
jne 0x1001520
and dword [ebp - 4], 0
test edx, edx
jbe 0x100172e
mov edi, 0x14666e29
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ecx]
sub eax, edi
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
imul eax, eax, 0xeb9991d7
ror eax, 0x12
imul eax, eax, 0xeb9991d7
ror eax, 0x12
mov esi, eax
imul eax, eax, 0xd0f2
rol eax, 7
ror esi, 7
xor eax, esi
add dword [ebp - 0x20], eax
inc dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 4], edx
jb 0x10014dc
jmp 0x100172e
mov esi, dword [0x100003c]
lea eax, [ecx + edx]
mov dword [ebp - 0x18], eax
mov eax, ecx
sub eax, edi
mov edi, eax
and edi, 0xfffff000
mov dword [ebp - 4], edi
mov edi, eax
sub edi, dword [ebp - 4]
add eax, edx
mov edx, eax
and edx, 0xfffff000
sub eax, edx
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x10000a0]
mov esi, dword [esi + 0x10000a4]
mov dword [ebp - 0x34], edx
add eax, 0x1000000
add esi, eax
mov dword [ebp - 0x2c], esi
jmp 0x1001574
mov edx, dword [eax]
cmp edx, dword [ebp - 4]
jae 0x1001578
add eax, dword [eax + 4]
cmp eax, esi
jne 0x100156a
and dword [ebp - 0x24], 0
cmp eax, esi
je 0x10015b9
mov edx, dword [ebp - 4]
cmp dword [eax], edx
jne 0x10015b9
mov edx, dword [eax + 4]
sub edx, 8
shr edx, 1
mov dword [ebp - 0xc], edx
je 0x10015b9
lea edx, [eax + 8]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
movzx edx, word [edx]
and edx, 0xfff
cmp edx, edi
jae 0x10015b9
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
add dword [ebp - 4], 2
cmp dword [ebp - 0x24], edx
jne 0x100159a
mov edi, 0x14666e29
jmp 0x10015c3
mov esi, dword [ebp - 0x2c]
cmp eax, esi
je 0x10016e8
mov edx, dword [eax]
cmp edx, dword [ebp - 0x34]
ja 0x10016e8
mov edx, dword [eax + 4]
lea esi, [edx - 8]
shr esi, 1
mov edx, dword [ebp - 0x24]
cmp edx, esi
jne 0x1001602
add eax, dword [eax + 4]
cmp eax, dword [ebp - 0x2c]
je 0x10016e8
mov edx, dword [ebp - 0x34]
cmp dword [eax], edx
ja 0x10016e8
and dword [ebp - 0x24], 0
jmp 0x10015d6
mov esi, dword [ebp - 0x34]
cmp dword [eax], esi
jne 0x100161d
movzx edx, word [eax + edx*2 + 8]
and edx, 0xfff
cmp edx, dword [ebp - 0x30]
jae 0x10016e8
mov esi, 0xf000
mov edx, dword [ebp - 0x24]
inc dword [ebp - 0x24]
test word [eax + edx*2 + 8], si
je 0x10015c0
movzx edx, word [eax + edx*2 + 8]
mov esi, dword [eax]
and edx, 0xfff
lea edx, [edx + esi + 0x1000000]
xor esi, esi
mov dword [ebp - 4], edx
sub dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
je 0x1001695
movzx edx, byte [esi + ecx]
sub edx, edi
add dword [ebp - 0x20], edx
add edx, dword [ebp - 0x1c]
imul edx, edx, 0xeb9991d7
ror edx, 0x12
imul edx, edx, 0xeb9991d7
ror edx, 0x12
mov esi, edx
imul esi, esi, 0xd0f2
rol esi, 7
ror edx, 7
xor esi, edx
mov edx, esi
add dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 8]
inc esi
mov dword [ebp - 8], esi
cmp esi, dword [ebp - 4]
jb 0x1001653
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
sub ecx, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 8], ecx
movzx ecx, byte [ebp + edx - 8]
sub ecx, edi
add dword [ebp - 0x20], ecx
add ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0xeb9991d7
ror ecx, 0x12
imul ecx, ecx, 0xeb9991d7
ror ecx, 0x12
mov esi, ecx
imul ecx, ecx, 0xd0f2
rol ecx, 7
ror esi, 7
xor ecx, esi
add dword [ebp - 0x20], ecx
inc edx
mov dword [ebp - 0x1c], ecx
cmp edx, 4
jb 0x10016a2
mov ecx, dword [ebp - 0xc]
add ecx, 4
jmp 0x10015c0
mov eax, dword [ebp - 0x18]
xor esi, esi
sub eax, ecx
mov dword [ebp - 0x18], eax
je 0x100172e
movzx eax, byte [ecx + esi]
sub eax, edi
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
imul eax, eax, 0xeb9991d7
ror eax, 0x12
imul eax, eax, 0xeb9991d7
ror eax, 0x12
mov edx, eax
imul eax, eax, 0xd0f2
rol eax, 7
ror edx, 7
xor eax, edx
add dword [ebp - 0x20], eax
inc esi
mov dword [ebp - 0x1c], eax
cmp esi, dword [ebp - 0x18]
jb 0x10016f4
add dword [ebx + 8], 0x10
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x20]
and eax, 0xfffffff
cmp ecx, dword [eax + 0x1000000]
jne 0x1001757
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x1000004]
je 0x1001802
call fcn.010259c0
lea ecx, [ebx + 0xc]
and ecx, 0xfffffffc
mov edx, 0xfffff000
and eax, edx
lea esi, [ecx + 0xfff]
and esi, edx
mov dword [ebp - 0x18], eax
mov edx, 0xffff
xor eax, eax
mov dword [ebx + 8], 0x103e45c
mov edi, dword [0x104d00c]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x104d00c], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x1001782
mov edi, 0xffff
div edi
mov eax, dword [ebp - 0x18]
inc edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x18], 0
jmp 0x10017cb
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x10017c3
mov eax, dword [ebp - 0x10]
mov dword [ebx + 8], 0x103e45c
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
and eax, 0xfffffff
mov edx, ecx
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x104d52c]
xor edx, ecx
and dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], edx
mov eax, 0x2fd286a
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov esp, ebp
pop ebp
popfd
ret