Function at 0x100cb25
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
mov dword [ebp - 0x48], edi
lea esi, [ebp + 4]
mov ebx, dword [esi + 4]
mov eax, ebx
push ebx
sub esi, 4
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], ebx
mov eax, 0xa81c6ff0
mov edi, dword [ebx + 4]
mov edx, dword [0x1033b04]
mov ebx, dword [ebx + 8]
mov eax, 0xfffffff
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
and ebx, eax
pop ecx
and edi, eax
mov eax, 0x1000000
mov ecx, eax
add ebx, eax
sub ecx, edx
mov dword [ebp - 0x18], ecx
jne 0x100cbf5
and dword [ebp - 4], 0
test edi, edi
jbe 0x100ce50
mov ecx, 0x7fffffff
mov esi, 0x52fedd73
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
add eax, esi
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mov edx, eax
imul edx, edx, 0xf820
rol edx, 3
ror eax, 3
xor edx, eax
mov eax, edx
imul eax, eax, 0xf820
rol eax, 3
ror edx, 3
xor eax, edx
mov edx, esi
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
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], edi
jb 0x100cb98
jmp 0x100ce4d
mov edx, ebx
lea ecx, [ebx + edi]
sub edx, eax
mov esi, edx
and esi, 0xfffff000
add edi, edx
mov dword [ebp - 4], esi
mov esi, edx
sub esi, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
mov edx, edi
mov ecx, dword [0x100003c]
and edx, 0xfffff000
sub edi, edx
mov dword [ebp - 0x34], edi
mov edi, dword [ecx + 0x10000a0]
add edi, eax
mov eax, dword [ecx + 0x10000a4]
mov dword [ebp - 0x38], edx
add eax, edi
mov dword [ebp - 0x30], eax
jmp 0x100cc46
mov ecx, dword [ebp - 4]
cmp dword [edi], ecx
jae 0x100cc4a
add edi, dword [edi + 4]
cmp edi, eax
jne 0x100cc3c
and dword [ebp - 0x28], 0
cmp edi, eax
je 0x100cc8b
mov ecx, dword [ebp - 4]
cmp dword [edi], ecx
jne 0x100cc8b
mov ecx, dword [edi + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 0x10], ecx
je 0x100cc8b
lea ecx, [edi + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx]
and ecx, 0xfff
cmp ecx, esi
jae 0x100cc8b
inc dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 4], 2
cmp dword [ebp - 0x28], ecx
jne 0x100cc6c
mov esi, 0x52fedd73
mov ecx, 0x7fffffff
jmp 0x100cc9d
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
cmp edi, eax
je 0x100cdee
cmp dword [edi], edx
ja 0x100cdee
mov eax, dword [edi + 4]
lea edx, [eax - 8]
mov eax, dword [ebp - 0x28]
shr edx, 1
cmp eax, edx
jne 0x100ccd9
add edi, dword [edi + 4]
cmp edi, dword [ebp - 0x30]
je 0x100cdee
mov eax, dword [ebp - 0x38]
cmp dword [edi], eax
ja 0x100cdee
and dword [ebp - 0x28], 0
jmp 0x100ccad
mov edx, dword [ebp - 0x38]
cmp dword [edi], edx
jne 0x100ccf3
movzx eax, word [edi + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x100cdee
mov edx, 0xf000
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
test word [edi + eax*2 + 8], dx
je 0x100cc97
mov edx, dword [edi]
movzx eax, word [edi + 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], ebx
mov dword [ebp - 0x10], eax
je 0x100cd85
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx]
add eax, esi
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mov edx, eax
imul edx, edx, 0xf820
rol edx, 3
ror eax, 3
xor edx, eax
mov eax, edx
imul eax, eax, 0xf820
rol eax, 3
ror edx, 3
xor eax, edx
mov edx, esi
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
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 0x100cd27
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, dword [ebp - 0x18]
xor ebx, ebx
mov dword [ebp - 8], eax
movzx eax, byte [ebp + ebx - 8]
add eax, esi
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mov edx, eax
imul edx, edx, 0xf820
rol edx, 3
ror eax, 3
xor edx, eax
mov eax, edx
imul eax, eax, 0xf820
rol eax, 3
ror edx, 3
xor eax, edx
mov edx, esi
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
add dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
inc ebx
cmp ebx, 4
jb 0x100cd8f
mov ebx, dword [ebp - 0x10]
add ebx, 4
jmp 0x100cc97
xor edi, edi
mov eax, dword [ebp - 0x1c]
sub eax, ebx
mov dword [ebp - 0x1c], eax
je 0x100ce4d
movzx eax, byte [ebx + edi]
add eax, esi
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mov edx, eax
imul edx, edx, 0xf820
rol edx, 3
ror eax, 3
xor edx, eax
mov eax, edx
imul eax, eax, 0xf820
rol eax, 3
ror edx, 3
xor eax, edx
mov edx, esi
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
add dword [ebp - 0x24], eax
inc edi
mov dword [ebp - 0x20], eax
cmp edi, dword [ebp - 0x1c]
jb 0x100cdfa
mov esi, dword [ebp - 0xc]
add dword [esi + 8], 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
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 0x100cf28
call fcn.0100ddeb
lea ecx, [esi + 0xc]
mov edx, 0xfffff000
and ecx, 0xfffffffc
and eax, edx
mov dword [ebp - 0x1c], eax
lea edi, [ecx + 0xfff]
and edi, edx
mov edx, 0xffff
mov dword [esi + 8], 0x1040348
xor eax, eax
mov ebx, dword [0x104c148]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x104c148], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x100cea4
mov ebx, 0xffff
div ebx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
inc edx
cmp ecx, edi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x1c], 0
mov eax, ecx
jae 0x100cef5
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
add eax, 4
cmp eax, edi
jb 0x100cee9
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], 0x1040348
mov eax, dword [eax + 0xc]
and eax, 0xfffffff
mov ecx, dword [ebp - 0x3c]
mov edx, ecx
mov dword [ebp - 0x48], ecx
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x104d3f8]
xor edx, ecx
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], edx
mov eax, 0xb2b1f947
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
mov esp, ebp
pop ebp
popfd
ret