Function at 0x10127cf
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
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], edi
lea edi, [ebp + 4]
mov ebx, dword [edi + 4]
mov eax, ebx
sub edi, 4
push ebx
mov dword [ebp - 0x10], ebx
mov eax, 0x997b7774
mov esi, dword [0x10062b0]
mov eax, dword [ebx + 8]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
mov edx, 0xfffffff
pop ecx
mov ecx, dword [ebx]
shr ecx, 1
and ecx, edx
and eax, edx
mov edx, 0x1000000
add ecx, 0x1000000
sub edx, esi
mov dword [ebp - 0x14], edx
jne 0x1012877
and dword [ebp - 4], 0
test eax, eax
jbe 0x1012a76
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ecx]
sub edx, 0x2424f18
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
imul edx, edx, 0xfdbdb0e8
ror edx, 0x1b
mov esi, edx
imul esi, esi, 0xf83b
rol esi, 8
ror edx, 8
xor esi, edx
add dword [ebp - 0x24], esi
inc dword [ebp - 4]
mov dword [ebp - 0x20], esi
cmp dword [ebp - 4], eax
jb 0x1012838
jmp 0x1012a76
lea edx, [ecx + eax]
mov esi, ecx
sub esi, 0x1000000
mov ebx, esi
and ebx, 0xfffff000
add eax, esi
mov dword [ebp - 4], ebx
mov ebx, esi
mov esi, eax
sub ebx, dword [ebp - 4]
and esi, 0xfffff000
mov dword [ebp - 0x1c], edx
mov edx, dword [0x100003c]
sub eax, esi
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 0x10000a0]
mov edx, dword [edx + 0x10000a4]
add eax, 0x1000000
add edx, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x38], esi
jmp 0x10128cf
mov esi, dword [eax]
cmp esi, dword [ebp - 4]
jae 0x10128d3
add eax, dword [eax + 4]
cmp eax, edx
jne 0x10128c5
and dword [ebp - 0x28], 0
cmp eax, edx
je 0x1012a37
mov esi, dword [ebp - 4]
cmp dword [eax], esi
jne 0x101291d
mov esi, dword [eax + 4]
sub esi, 8
shr esi, 1
mov dword [ebp - 8], esi
je 0x101291d
lea esi, [eax + 8]
mov dword [ebp - 4], esi
jmp 0x10128fe
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
movzx esi, word [esi]
and esi, 0xfff
cmp esi, ebx
jae 0x101291d
inc dword [ebp - 0x28]
mov esi, dword [ebp - 0x28]
add dword [ebp - 4], 2
cmp esi, dword [ebp - 8]
jne 0x10128fb
cmp eax, edx
je 0x1012a37
mov esi, dword [eax]
cmp esi, dword [ebp - 0x38]
ja 0x1012a37
mov esi, dword [eax + 4]
lea ebx, [esi - 8]
mov esi, dword [ebp - 0x28]
shr ebx, 1
cmp esi, ebx
jne 0x101295b
add eax, dword [eax + 4]
cmp eax, edx
je 0x1012a37
mov esi, dword [ebp - 0x38]
cmp dword [eax], esi
ja 0x1012a37
and dword [ebp - 0x28], 0
jmp 0x1012930
mov ebx, dword [ebp - 0x38]
cmp dword [eax], ebx
jne 0x1012976
movzx esi, word [eax + esi*2 + 8]
and esi, 0xfff
cmp esi, dword [ebp - 0x34]
jae 0x1012a37
mov esi, dword [ebp - 0x28]
mov ebx, 0xf000
inc dword [ebp - 0x28]
test word [eax + esi*2 + 8], bx
je 0x101291d
mov ebx, dword [eax]
movzx esi, word [eax + esi*2 + 8]
and esi, 0xfff
lea ebx, [esi + ebx + 0x1000000]
xor esi, esi
mov dword [ebp - 4], ebx
sub dword [ebp - 4], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
je 0x10129e9
movzx esi, byte [esi + ecx]
sub esi, 0x2424f18
add dword [ebp - 0x24], esi
add esi, dword [ebp - 0x20]
imul esi, esi, 0xfdbdb0e8
ror esi, 0x1b
mov ebx, esi
imul ebx, ebx, 0xf83b
rol ebx, 8
ror esi, 8
xor ebx, esi
mov esi, ebx
add dword [ebp - 0x24], esi
mov esi, dword [ebp - 8]
inc esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], esi
cmp esi, dword [ebp - 4]
jb 0x10129ac
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
xor ebx, ebx
movzx ecx, byte [ebp + ebx - 0x18]
sub ecx, 0x2424f18
add dword [ebp - 0x24], ecx
add ecx, dword [ebp - 0x20]
imul ecx, ecx, 0xfdbdb0e8
ror ecx, 0x1b
mov esi, ecx
imul esi, esi, 0xf83b
rol esi, 8
ror ecx, 8
xor esi, ecx
add dword [ebp - 0x24], esi
inc ebx
mov dword [ebp - 0x20], esi
cmp ebx, 4
jb 0x10129f6
mov ecx, dword [ebp - 0xc]
add ecx, 4
jmp 0x101291d
xor esi, esi
mov ebx, dword [ebp - 0x1c]
sub ebx, ecx
je 0x1012a73
movzx eax, byte [ecx + esi]
sub eax, 0x2424f18
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
imul eax, eax, 0xfdbdb0e8
ror eax, 0x1b
mov edx, eax
imul edx, edx, 0xf83b
rol edx, 8
ror eax, 8
xor edx, eax
add dword [ebp - 0x24], edx
inc esi
cmp esi, ebx
mov dword [ebp - 0x20], edx
jb 0x1012a40
mov ebx, dword [ebp - 0x10]
add dword [edi + 8], 0x10
mov eax, dword [ebx + 4]
and eax, 0xfffffff
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
sub edx, dword [eax + 0x1000000]
sbb ecx, dword [eax + 0x1000004]
mov eax, edx
or eax, ecx
je 0x1012b4c
call 0x106211d
mov edx, 0xfffff000
and eax, edx
mov dword [ebp - 0x1c], eax
lea ecx, [edi + 0xc]
and ecx, 0xfffffffc
lea eax, [ecx + 0xfff]
and eax, edx
mov edx, 0xffff
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [edi + 8], 0x102487c
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 0x1012acc
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 0x1012b15
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
cmp ecx, dword [ebp - 0x10]
jb 0x1012b0d
mov dword [edi + 8], 0x102487c
mov ebx, dword [ebx + 0xc]
and ebx, 0xfffffff
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov dword [ebp - 0x48], eax
shl ecx, 0x10
add ebx, 0x1000000
xor ecx, dword [ebx]
xor ecx, dword [0x107914c]
xor ecx, eax
and dword [ebp - 0x44], 0
mov dword [ebp - 0x50], ecx
mov eax, 0x6e59022b
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov esp, ebp
pop ebp
popfd
ret