Function at 0x1012b69
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x3c], ebx
lea ebx, [ebp + 4]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], edi
mov edi, dword [ebx + 4]
sub ebx, 4
mov eax, edi
push edi
mov dword [ebp - 0xc], edi
mov eax, 0x24c2e8dd
mov edx, dword [edi + 8]
mov esi, dword [0x10062b0]
and dword [ebp - 0x24], 0
mov eax, 0xfffffff
and dword [ebp - 0x20], 0
pop ecx
mov ecx, dword [edi + 4]
and ecx, eax
and edx, eax
mov eax, 0x1000000
add ecx, 0x1000000
sub eax, esi
mov dword [ebp - 0x14], eax
jne 0x1012c10
and dword [ebp - 4], 0
test edx, edx
jbe 0x1012e10
mov eax, dword [ebp - 4]
movzx esi, byte [eax + ecx]
add esi, 0x66beda4
add dword [ebp - 0x24], esi
add esi, dword [ebp - 0x20]
mov eax, esi
imul eax, eax, 0x7689
rol eax, 4
ror esi, 4
xor eax, esi
imul eax, eax, 0x66beda4
ror eax, 9
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 4], edx
jb 0x1012bd1
jmp 0x1012e10
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]
add eax, 0x1000000
mov esi, dword [esi + 0x10000a4]
add esi, eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x38], edx
jmp 0x1012c67
mov edx, dword [eax]
cmp edx, dword [ebp - 4]
jae 0x1012c6b
add eax, dword [eax + 4]
cmp eax, esi
jne 0x1012c5d
and dword [ebp - 0x28], 0
cmp eax, esi
je 0x1012dd0
mov edx, dword [ebp - 4]
cmp dword [eax], edx
jne 0x1012cb5
mov edx, dword [eax + 4]
sub edx, 8
shr edx, 1
mov dword [ebp - 0x10], edx
je 0x1012cb5
lea edx, [eax + 8]
mov dword [ebp - 4], edx
jmp 0x1012c96
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 4]
movzx edx, word [edx]
and edx, 0xfff
cmp edx, edi
jae 0x1012cb5
inc dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
add dword [ebp - 4], 2
cmp edx, dword [ebp - 0x10]
jne 0x1012c93
cmp eax, esi
je 0x1012dd0
mov edx, dword [ebp - 0x38]
cmp dword [eax], edx
ja 0x1012dd0
mov edx, dword [eax + 4]
lea edi, [edx - 8]
mov edx, dword [ebp - 0x28]
shr edi, 1
cmp edx, edi
jne 0x1012cf3
add eax, dword [eax + 4]
cmp eax, esi
je 0x1012dd0
mov edx, dword [ebp - 0x38]
cmp dword [eax], edx
ja 0x1012dd0
and dword [ebp - 0x28], 0
jmp 0x1012cc8
mov edi, dword [ebp - 0x38]
cmp dword [eax], edi
jne 0x1012d0e
movzx edi, word [eax + edx*2 + 8]
and edi, 0xfff
cmp edi, dword [ebp - 0x34]
jae 0x1012dd0
mov edi, 0xf000
inc dword [ebp - 0x28]
test word [eax + edx*2 + 8], di
je 0x1012cb5
movzx edx, word [eax + edx*2 + 8]
mov edi, dword [eax]
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 0x1012d80
mov edx, dword [ebp - 4]
movzx edi, byte [edx + ecx]
add edi, 0x66beda4
add dword [ebp - 0x24], edi
add edi, dword [ebp - 0x20]
mov edx, edi
imul edx, edx, 0x7689
rol edx, 4
ror edi, 4
xor edx, edi
imul edx, edx, 0x66beda4
ror edx, 9
add dword [ebp - 0x24], edx
inc dword [ebp - 4]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jb 0x1012d40
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]
add edx, 0x66beda4
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov ecx, edx
imul ecx, ecx, 0x7689
rol ecx, 4
ror edx, 4
xor ecx, edx
imul ecx, ecx, 0x66beda4
ror ecx, 9
add dword [ebp - 0x24], ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp - 0x20], ecx
jb 0x1012d8c
lea ecx, [edi + 4]
jmp 0x1012cb5
mov edi, dword [ebp - 0x1c]
xor esi, esi
sub edi, ecx
je 0x1012e0d
movzx edx, byte [esi + ecx]
add edx, 0x66beda4
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov eax, edx
imul eax, eax, 0x7689
rol eax, 4
ror edx, 4
xor eax, edx
imul eax, eax, 0x66beda4
ror eax, 9
add dword [ebp - 0x24], eax
inc esi
cmp esi, edi
mov dword [ebp - 0x20], eax
jb 0x1012dd9
mov edi, dword [ebp - 0xc]
add dword [ebx + 8], 0x10
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
and eax, 0xfffffff
sub edx, dword [eax + 0x1000000]
sbb ecx, dword [eax + 0x1000004]
mov eax, edx
or eax, ecx
je 0x1012ee5
call 0x106211d
lea ecx, [ebx + 0xc]
mov edx, 0xfffff000
and eax, edx
and ecx, 0xfffffffc
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 0xfff]
and eax, edx
mov edx, 0xffff
mov dword [ebp - 0xc], eax
mov dword [ebx + 8], 0x102487c
xor eax, eax
mov esi, dword [0x107a468]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x107a468], esi
shr esi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, esi
test edx, edx
jne 0x1012e66
mov esi, 0xffff
div esi
inc edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x1c], 0
jmp 0x1012eaf
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
cmp ecx, dword [ebp - 0xc]
jb 0x1012ea7
mov dword [ebx + 8], 0x102487c
mov ecx, dword [ebp - 0x44]
mov eax, dword [edi]
mov dword [ebp - 0x48], ecx
mov edx, ecx
shr eax, 1
and eax, 0xfffffff
shl edx, 0x10
add eax, 0x1000000
xor edx, dword [eax]
xor edx, dword [0x107a0d8]
xor edx, ecx
and dword [ebp - 0x44], 0
mov dword [ebp - 0x50], edx
mov eax, 0x14d28b7
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
popfd
ret