Function at 0x103c773
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], esi
lea ebx, [ebp + 4]
mov dword [ebp - 0x40], edi
mov edi, dword [ebx + 4]
push edi
sub ebx, 4
push edi
mov dword [ebp - 0xc], edi
mov eax, 0xf1bf2986
mov eax, 0xfffffff
mov edx, dword [edi]
mov esi, dword [0x102c94c]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
pop ecx
pop ecx
mov ecx, dword [edi + 8]
and ecx, eax
and edx, eax
add ecx, 0x1000000
mov eax, 0x1000000
sub eax, esi
mov dword [ebp - 0x14], eax
jne 0x103c821
and dword [ebp - 4], 0
test edx, edx
jbe 0x103ca38
mov eax, dword [ebp - 4]
movzx esi, byte [eax + ecx]
sub esi, 0xb5abc7d
add dword [ebp - 0x24], esi
add esi, dword [ebp - 0x20]
mov eax, esi
imul eax, eax, 0x2fae
rol eax, 3
ror esi, 3
xor eax, esi
mov esi, eax
imul esi, esi, 0x2fae
rol esi, 3
ror eax, 3
xor esi, eax
add dword [ebp - 0x24], esi
inc dword [ebp - 4]
mov dword [ebp - 0x20], esi
cmp dword [ebp - 4], edx
jb 0x103c7db
jmp 0x103ca38
lea eax, [ecx + edx]
mov esi, dword [0x100003c]
mov dword [ebp - 0x1c], eax
mov eax, ecx
sub eax, 0x1000000
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 - 0x34], eax
mov eax, dword [esi + 0x10000a0]
mov esi, dword [esi + 0x10000a4]
mov dword [ebp - 8], edi
mov dword [ebp - 0x38], edx
add eax, 0x1000000
add esi, eax
jmp 0x103c878
mov edx, dword [eax]
cmp edx, dword [ebp - 4]
jae 0x103c87c
add eax, dword [eax + 4]
cmp eax, esi
jne 0x103c86e
and dword [ebp - 0x28], 0
cmp eax, esi
je 0x103c9f1
mov edx, dword [ebp - 4]
cmp dword [eax], edx
jne 0x103c8c6
mov edx, dword [eax + 4]
sub edx, 8
shr edx, 1
mov dword [ebp - 0x10], edx
je 0x103c8c6
lea edx, [eax + 8]
mov dword [ebp - 4], edx
jmp 0x103c8a7
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 4]
movzx edx, word [edx]
and edx, 0xfff
cmp edx, edi
jae 0x103c8c6
inc dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
add dword [ebp - 4], 2
cmp edx, dword [ebp - 0x10]
jne 0x103c8a4
cmp eax, esi
je 0x103c9f1
mov edx, dword [ebp - 0x38]
cmp dword [eax], edx
ja 0x103c9f1
mov edx, dword [eax + 4]
lea edi, [edx - 8]
shr edi, 1
mov edx, dword [ebp - 0x28]
cmp edx, edi
jne 0x103c904
add eax, dword [eax + 4]
cmp eax, esi
je 0x103c9f1
mov edx, dword [ebp - 0x38]
cmp dword [eax], edx
ja 0x103c9f1
and dword [ebp - 0x28], 0
jmp 0x103c8d9
mov edi, dword [ebp - 0x38]
cmp dword [eax], edi
jne 0x103c91f
movzx edi, word [eax + edx*2 + 8]
and edi, 0xfff
cmp edi, dword [ebp - 0x34]
jae 0x103c9f1
inc dword [ebp - 0x28]
mov edi, 0xf000
test word [eax + edx*2 + 8], di
je 0x103c8c6
mov edi, dword [eax]
movzx edx, word [eax + edx*2 + 8]
and dword [ebp - 4], 0
and edx, 0xfff
lea edi, [edx + edi + 0x1000000]
mov dword [ebp - 8], edi
sub dword [ebp - 8], ecx
mov dword [ebp - 0x10], edi
je 0x103c99a
mov edx, dword [ebp - 4]
movzx edi, byte [edx + ecx]
sub edi, 0xb5abc7d
add dword [ebp - 0x24], edi
add edi, dword [ebp - 0x20]
mov edx, edi
imul edx, edx, 0x2fae
rol edx, 3
ror edi, 3
xor edx, edi
mov edi, edx
imul edi, edi, 0x2fae
rol edi, 3
ror edx, 3
xor edi, edx
mov edx, edi
add dword [ebp - 0x24], edx
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edi
cmp edx, dword [ebp - 8]
jb 0x103c951
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi]
sub ecx, dword [ebp - 0x14]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 4]
movzx edx, byte [ebp + ecx - 0x18]
sub edx, 0xb5abc7d
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov ecx, edx
imul ecx, ecx, 0x2fae
rol ecx, 3
ror edx, 3
xor ecx, edx
mov edx, ecx
imul edx, edx, 0x2fae
rol edx, 3
ror ecx, 3
xor edx, ecx
add dword [ebp - 0x24], edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp - 0x20], edx
jb 0x103c9a6
lea ecx, [edi + 4]
jmp 0x103c8c6
xor esi, esi
mov edi, dword [ebp - 0x1c]
sub edi, ecx
je 0x103ca35
movzx edx, byte [esi + ecx]
sub edx, 0xb5abc7d
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x2fae
rol eax, 3
ror edx, 3
xor eax, edx
mov edx, eax
imul edx, edx, 0x2fae
rol edx, 3
ror eax, 3
xor edx, eax
add dword [ebp - 0x24], edx
inc esi
mov dword [ebp - 0x20], edx
cmp esi, edi
jb 0x103c9fa
mov edi, dword [ebp - 0xc]
add dword [ebx + 8], 0x10
mov ecx, dword [edi + 0xc]
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 0x103cb0b
call fcn.010bfbea
lea ecx, [ebx + 0xc]
mov edx, 0xfffff000
and eax, edx
mov dword [ebp - 0x1c], eax
and ecx, 0xfffffffc
lea eax, [ecx + 0xfff]
and eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebx + 8], 0x12e07d9
mov edx, 0xffff
xor eax, eax
mov esi, dword [0x138b4cc]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x138b4cc], esi
shr esi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, esi
test edx, edx
jne 0x103ca8d
mov esi, 0xffff
div esi
inc edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x1c], 0
jmp 0x103cad6
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
cmp ecx, dword [ebp - 0xc]
jb 0x103cace
mov dword [ebx + 8], 0x12e07d9
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x48]
mov edx, ecx
mov dword [ebp - 0x40], ecx
and eax, 0xfffffff
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x1388f48]
xor edx, ecx
and dword [ebp - 0x48], 0
mov dword [ebp - 0x44], edx
mov eax, 0x8641a6a
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
mov esp, ebp
pop ebp
popfd
ret