Function at 0x1298d5a
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], esi
lea esi, [ebp + 4]
mov dword [ebp - 0x50], edi
mov edi, dword [esi + 4]
sub esi, 4
push edi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], edi
mov eax, 0x43e18939
mov eax, 0xfffffff
mov ebx, dword [edi + 4]
mov edx, dword [0x102c94c]
mov edi, dword [edi + 0xc]
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
and edi, eax
pop ecx
and ebx, eax
pop ecx
mov eax, 0x1000000
mov ecx, eax
add edi, eax
sub ecx, edx
mov dword [ebp - 0x18], ecx
jne 0x1298e26
and dword [ebp - 4], 0
test ebx, ebx
jbe 0x1299089
mov ecx, 0x7fffffff
mov esi, 0x8be5c71a
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
mov edx, esi
sub eax, 0x741a38e6
add dword [ebp - 0x2c], eax
add eax, dword [ebp - 0x28]
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov dword [ebp - 0x20], edx
sar edx, 0x1f
and edx, ecx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x3f6d
rol eax, 0xa
ror edx, 0xa
xor eax, edx
mov edx, esi
mul edx
add eax, edx
add dword [ebp - 0x2c], eax
inc dword [ebp - 4]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 4], ebx
jb 0x1298dce
jmp 0x1299086
lea ecx, [ebx + edi]
mov edx, edi
sub edx, eax
mov esi, edx
and esi, 0xfffff000
add ebx, edx
mov dword [ebp - 4], esi
mov esi, edx
sub esi, dword [ebp - 4]
mov edx, ebx
and edx, 0xfffff000
mov dword [ebp - 0x20], ecx
mov ecx, dword [0x100003c]
sub ebx, edx
mov dword [ebp - 0x44], ebx
mov ebx, dword [ecx + 0x10000a0]
add ebx, eax
mov eax, dword [ecx + 0x10000a4]
add eax, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], eax
jmp 0x1298e7a
mov ecx, dword [ebp - 4]
cmp dword [ebx], ecx
jae 0x1298e7e
add ebx, dword [ebx + 4]
cmp ebx, eax
jne 0x1298e70
and dword [ebp - 0x38], 0
cmp ebx, eax
je 0x1298ec4
mov ecx, dword [ebp - 4]
cmp dword [ebx], ecx
jne 0x1298ec4
mov ecx, dword [ebx + 4]
sub ecx, 8
shr ecx, 1
mov dword [ebp - 8], ecx
je 0x1298ec4
lea ecx, [ebx + 8]
mov dword [ebp - 4], ecx
jmp 0x1298ea5
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
movzx ecx, word [ecx]
and ecx, 0xfff
cmp ecx, esi
jae 0x1298ec4
inc dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
add dword [ebp - 4], 2
cmp ecx, dword [ebp - 8]
jne 0x1298ea2
mov ecx, 0x7fffffff
mov esi, 0x8be5c71a
jmp 0x1298ed6
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
cmp ebx, eax
je 0x1299024
cmp dword [ebx], edx
ja 0x1299024
mov eax, dword [ebx + 4]
add eax, 0xfffffff8
shr eax, 1
cmp dword [ebp - 0x38], eax
jne 0x1298f10
add ebx, dword [ebx + 4]
cmp ebx, dword [ebp - 0x40]
je 0x1299024
mov eax, dword [ebp - 0x48]
cmp dword [ebx], eax
ja 0x1299024
and dword [ebp - 0x38], 0
jmp 0x1298ee6
mov eax, dword [ebp - 0x48]
cmp dword [ebx], eax
jne 0x1298f2d
mov eax, dword [ebp - 0x38]
movzx eax, word [ebx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x44]
jae 0x1299024
mov edx, 0xf000
mov eax, dword [ebp - 0x38]
inc dword [ebp - 0x38]
test word [ebx + eax*2 + 8], dx
je 0x1298ed0
movzx eax, word [ebx + eax*2 + 8]
mov edx, dword [ebx]
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 0x1298fba
mov eax, dword [ebp - 4]
mov edx, esi
movzx eax, byte [eax + edi]
sub eax, 0x741a38e6
add dword [ebp - 0x2c], eax
add eax, dword [ebp - 0x28]
mul edx
lea edx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edx, eax
mov dword [ebp - 0x30], edx
sar edx, 0x1f
and edx, ecx
add edx, dword [ebp - 0x30]
mov eax, edx
imul eax, eax, 0x3f6d
rol eax, 0xa
ror edx, 0xa
xor eax, edx
mov edx, esi
mul edx
add eax, edx
add dword [ebp - 0x2c], eax
inc dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x1298f61
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, dword [ebp - 0x18]
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
mov edx, esi
mov eax, dword [ebp - 4]
movzx eax, byte [ebp + eax - 0x1c]
sub eax, 0x741a38e6
add dword [ebp - 0x2c], eax
add eax, dword [ebp - 0x28]
mul edx
lea edi, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub edi, eax
mov edx, edi
sar edx, 0x1f
and edx, ecx
add edx, edi
mov eax, edx
imul eax, eax, 0x3f6d
rol eax, 0xa
ror edx, 0xa
xor eax, edx
mov edx, esi
mul edx
add eax, edx
add dword [ebp - 0x2c], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp - 0x28], eax
jb 0x1298fc6
mov edi, dword [ebp - 0x10]
add edi, 4
jmp 0x1298ed0
mov eax, dword [ebp - 0x20]
and dword [ebp - 4], 0
sub eax, edi
mov dword [ebp - 0x20], eax
je 0x1299086
mov eax, dword [ebp - 4]
mov edx, esi
movzx eax, byte [eax + edi]
sub eax, 0x741a38e6
add dword [ebp - 0x2c], eax
add eax, dword [ebp - 0x28]
mul edx
lea ebx, [eax + edx*2 - 0x7fffffff]
sar eax, 0x1f
and eax, ecx
sub ebx, eax
mov edx, ebx
sar edx, 0x1f
and edx, ecx
add edx, ebx
mov eax, edx
imul eax, eax, 0x3f6d
rol eax, 0xa
ror edx, 0xa
xor eax, edx
mov edx, esi
mul edx
add eax, edx
add dword [ebp - 0x2c], eax
inc dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jb 0x1299032
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 - 0x2c]
mov ecx, dword [ecx + 0x1000004]
xor ecx, dword [ebp - 0x28]
or eax, ecx
je 0x1299161
call fcn.010bfbea
mov edx, 0xfffff000
lea ecx, [esi + 0xc]
and ecx, 0xfffffffc
lea edi, [ecx + 0xfff]
and eax, edx
and edi, edx
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [esi + 8], 0x12e07d9
mov edx, 0xffff
mov ebx, dword [0x138b4cc]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x138b4cc], ebx
shr ebx, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, ebx
test edx, edx
jne 0x12990dd
mov ebx, 0xffff
div ebx
inc edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x60], eax
mov eax, ecx
mov dword [ebp - 0x58], edx
cmp ecx, edi
mov dword [ebp - 0x20], 0
jae 0x129912e
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
add eax, 4
cmp eax, edi
jb 0x1299122
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], 0x12e07d9
mov ecx, dword [ebp - 0x58]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], ecx
mov edx, ecx
and eax, 0xfffffff
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x139149c]
xor edx, ecx
and dword [ebp - 0x58], 0
mov dword [ebp - 0x54], edx
mov eax, 0xaf03805a
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x4c]
mov esp, ebp
pop ebp
popfd
ret