Function at 0x1015a2f
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
lea ebx, [ebp + 4]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], edi
mov esi, dword [ebx + 4]
push esi
sub ebx, 4
mov dword [ebp - 0x10], esi
mov eax, esi
mov eax, 0x5be48617
mov edi, 0x1000000
mov eax, 0xfffffff
mov edx, dword [esi]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
pop ecx
mov ecx, dword [esi + 0xc]
and ecx, eax
mov esi, dword [0x1001228]
and edx, eax
mov eax, edi
add ecx, edi
sub eax, esi
mov dword [ebp - 0x14], eax
jne 0x1015ade
and dword [ebp - 4], 0
test edx, edx
jbe 0x1015cec
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 0x1015a9a
jmp 0x1015cec
lea eax, [ecx + edx]
mov esi, dword [0x100003c]
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]
add eax, 0x1000000
mov esi, dword [esi + 0x10000a4]
add esi, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], esi
jmp 0x1015b32
mov edx, dword [eax]
cmp edx, dword [ebp - 4]
jae 0x1015b36
add eax, dword [eax + 4]
cmp eax, esi
jne 0x1015b28
and dword [ebp - 0x24], 0
cmp eax, esi
je 0x1015b77
mov edx, dword [ebp - 4]
cmp dword [eax], edx
jne 0x1015b77
mov edx, dword [eax + 4]
sub edx, 8
shr edx, 1
mov dword [ebp - 0xc], edx
je 0x1015b77
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 0x1015b77
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
add dword [ebp - 4], 2
cmp dword [ebp - 0x24], edx
jne 0x1015b58
mov edi, 0x14666e29
jmp 0x1015b81
mov esi, dword [ebp - 0x2c]
cmp eax, esi
je 0x1015ca6
mov edx, dword [eax]
cmp edx, dword [ebp - 0x34]
ja 0x1015ca6
mov edx, dword [eax + 4]
lea esi, [edx - 8]
shr esi, 1
mov edx, dword [ebp - 0x24]
cmp edx, esi
jne 0x1015bc0
add eax, dword [eax + 4]
cmp eax, dword [ebp - 0x2c]
je 0x1015ca6
mov edx, dword [ebp - 0x34]
cmp dword [eax], edx
ja 0x1015ca6
and dword [ebp - 0x24], 0
jmp 0x1015b94
mov esi, dword [ebp - 0x34]
cmp dword [eax], esi
jne 0x1015bdb
movzx edx, word [eax + edx*2 + 8]
and edx, 0xfff
cmp edx, dword [ebp - 0x30]
jae 0x1015ca6
mov esi, 0xf000
mov edx, dword [ebp - 0x24]
inc dword [ebp - 0x24]
test word [eax + edx*2 + 8], si
je 0x1015b7e
movzx edx, word [eax + edx*2 + 8]
and edx, 0xfff
mov esi, dword [eax]
lea edx, [edx + esi + 0x1000000]
mov dword [ebp - 4], edx
xor esi, esi
sub dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
je 0x1015c53
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 0x1015c11
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
xor edx, edx
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
mov dword [ebp - 0x1c], ecx
inc edx
cmp edx, 4
jb 0x1015c60
mov ecx, dword [ebp - 0xc]
add ecx, 4
jmp 0x1015b7e
mov eax, dword [ebp - 0x18]
xor esi, esi
sub eax, ecx
mov dword [ebp - 0x18], eax
je 0x1015cec
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
mov dword [ebp - 0x1c], eax
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x1015cb2
add dword [ebx + 8], 0x10
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
and eax, 0xfffffff
cmp ecx, dword [eax + 0x1000000]
jne 0x1015d15
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x1000004]
je 0x1015dc0
call fcn.01017a8f
lea ecx, [ebx + 0xc]
mov edx, 0xfffff000
and ecx, 0xfffffffc
and eax, edx
mov dword [ebp - 0x18], eax
mov dword [ebx + 8], 0x1011318
lea esi, [ecx + 0xfff]
and esi, edx
xor eax, eax
mov edx, 0xffff
mov edi, dword [0x108d0c4]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x108d0c4], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x1015d40
mov edi, 0xffff
div edi
inc edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x18], 0
jmp 0x1015d89
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x1015d81
mov eax, dword [ebp - 0x10]
mov dword [ebx + 8], 0x1011318
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax + 8]
mov dword [ebp - 0x44], ecx
mov edx, ecx
and eax, 0xfffffff
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x108e234]
xor edx, ecx
and dword [ebp - 0x40], 0
mov dword [ebp - 0x4c], edx
mov eax, 0x19ef7928
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
mov esp, ebp
pop ebp
popfd
ret