Function at 0x10156bd
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x50], esi
lea esi, [ebp + 4]
mov dword [ebp - 0x48], edi
mov edi, dword [esi + 4]
sub esi, 4
mov eax, edi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], edi
mov eax, 0x1db66b92
mov eax, 0xfffffff
mov ebx, dword [edi + 8]
mov edx, dword [0x1001228]
mov edi, dword [edi]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
and edi, eax
pop ecx
and ebx, eax
mov eax, 0x1000000
mov ecx, eax
add edi, eax
sub ecx, edx
mov dword [ebp - 0x18], ecx
jne 0x1015763
and dword [ebp - 4], 0
test ebx, ebx
jbe 0x101593b
mov esi, 0x241a38a6
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + edi]
add ecx, esi
add dword [ebp - 0x24], ecx
add ecx, dword [ebp - 0x20]
mov eax, ecx
imul eax, eax, 0x2272
rol eax, 6
ror ecx, 6
xor eax, ecx
mov ecx, esi
mul ecx
add eax, edx
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], ebx
jb 0x101572b
jmp 0x1015938
lea ecx, [ebx + edi]
mov edx, dword [0x100003c]
mov dword [ebp - 0x1c], ecx
mov ecx, edi
sub ecx, eax
mov esi, ecx
and esi, 0xfffff000
mov dword [ebp - 4], esi
mov esi, ecx
sub esi, dword [ebp - 4]
add ecx, ebx
mov ebx, ecx
and ebx, 0xfffff000
sub ecx, ebx
mov dword [ebp - 0x34], ecx
mov ecx, dword [edx + 0x10000a0]
mov dword [ebp - 0x38], ebx
add ecx, eax
mov ebx, dword [edx + 0x10000a4]
add ebx, ecx
jmp 0x10157b1
mov eax, dword [ebp - 4]
cmp dword [ecx], eax
jae 0x10157b5
add ecx, dword [ecx + 4]
cmp ecx, ebx
jne 0x10157a7
and dword [ebp - 0x28], 0
cmp ecx, ebx
je 0x10157f0
mov eax, dword [ebp - 4]
cmp dword [ecx], eax
jne 0x10157f0
mov eax, dword [ecx + 4]
sub eax, 8
shr eax, 1
je 0x10157f0
lea edx, [ecx + 8]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
movzx edx, word [edx]
and edx, 0xfff
cmp edx, esi
jae 0x10157f0
inc dword [ebp - 0x28]
add dword [ebp - 4], 2
cmp dword [ebp - 0x28], eax
jne 0x10157d4
mov esi, 0x241a38a6
cmp ecx, ebx
je 0x10158fe
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x10158fe
mov eax, dword [ecx + 4]
lea edx, [eax - 8]
shr edx, 1
mov eax, dword [ebp - 0x28]
cmp eax, edx
jne 0x1015833
add ecx, dword [ecx + 4]
cmp ecx, ebx
je 0x10158fe
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x10158fe
and dword [ebp - 0x28], 0
jmp 0x1015808
mov edx, dword [ebp - 0x38]
cmp dword [ecx], edx
jne 0x101584d
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x10158fe
mov edx, 0xf000
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
test word [ecx + eax*2 + 8], dx
je 0x10157f5
movzx eax, word [ecx + eax*2 + 8]
mov edx, dword [ecx]
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 0x10158ba
mov eax, dword [ebp - 4]
movzx edx, byte [eax + edi]
add edx, esi
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x2272
rol eax, 6
ror edx, 6
xor eax, edx
mov edx, esi
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 0x1015881
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
xor edi, edi
movzx edx, byte [ebp + edi - 8]
add edx, esi
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x2272
rol eax, 6
ror edx, 6
xor eax, edx
mov edx, esi
mul edx
add eax, edx
add dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
inc edi
cmp edi, 4
jb 0x10158c4
mov edi, dword [ebp - 0x10]
add edi, 4
jmp 0x10157f5
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
sub eax, edi
mov dword [ebp - 0x1c], eax
je 0x1015938
movzx ecx, byte [ebx + edi]
add ecx, esi
add dword [ebp - 0x24], ecx
add ecx, dword [ebp - 0x20]
mov eax, ecx
imul eax, eax, 0x2272
rol eax, 6
ror ecx, 6
xor eax, ecx
mov ecx, esi
mul ecx
add eax, edx
add dword [ebp - 0x24], eax
inc ebx
mov dword [ebp - 0x20], eax
cmp ebx, dword [ebp - 0x1c]
jb 0x101590a
mov esi, dword [ebp - 0xc]
add dword [esi + 8], 0x10
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0x24]
and eax, 0xfffffff
cmp ecx, dword [eax + 0x1000000]
jne 0x1015964
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x1000004]
je 0x1015a13
call fcn.01017a8f
lea ecx, [esi + 0xc]
and ecx, 0xfffffffc
mov edx, 0xfffff000
and eax, edx
mov dword [ebp - 0x1c], eax
mov dword [esi + 8], 0x1011318
lea edi, [ecx + 0xfff]
and edi, edx
xor eax, eax
mov edx, 0xffff
mov ebx, dword [0x108d0c4]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x108d0c4], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x101598f
mov ebx, 0xffff
div ebx
inc edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], edx
mov eax, ecx
cmp ecx, edi
mov dword [ebp - 0x1c], 0
jae 0x10159e0
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
add eax, 4
cmp eax, edi
jb 0x10159d4
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], 0x1011318
mov ecx, dword [ebp - 0x44]
mov eax, dword [eax + 0xc]
mov edx, ecx
mov dword [ebp - 0x48], ecx
and eax, 0xfffffff
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x108e22c]
xor edx, ecx
and dword [ebp - 0x44], 0
mov dword [ebp - 0x50], edx
mov eax, 0x4c5dc389
mov edi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
popfd
ret