Function at 0x10012bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x100662ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push 0x80
push 0
push eax
mov dword [ebp - 0xa8], edi
call fcn.1002dbf0
mov edx, dword [ebp + 0xc]
lea edi, [ebp - 0x88]
mov esi, dword [ebp + 8]
add esp, 0xc
sub edi, esi
mov ebx, 0x20
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp - 0x94], ecx
movzx ecx, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
mov dword [ebp - 0x90], ecx
movzx ecx, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
mov dword [ebp - 0x8c], ecx
movzx ecx, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
lea edx, [ebp - 0x94]
or ecx, eax
sub edx, esi
mov dword [ebp - 0x88], ecx
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x98], edx
lea ecx, [ebp - 0x90]
sub eax, esi
lea edx, [ebp - 0x84]
sub ecx, esi
mov dword [ebp - 0xa0], eax
sub edx, esi
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x9c], edx
mov ecx, dword [ecx + esi]
lea esi, [esi + 4]
xor ecx, dword [eax + esi - 4]
xor ecx, dword [edi + esi - 4]
xor ecx, dword [esi - 4]
mov eax, ecx
shr eax, 0x18
movzx edx, byte [eax + 0x10051fb0]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x10051fb0]
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x10051fb0]
or edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax + 0x10051fb0]
or edx, eax
mov ecx, edx
mov eax, edx
rol eax, 0xa
ror ecx, 0xe
xor ecx, eax
mov eax, edx
ror eax, 8
xor ecx, eax
mov eax, edx
rol eax, 2
xor ecx, eax
mov eax, dword [ebp - 0x98]
xor ecx, dword [eax + esi - 4]
mov eax, dword [ebp - 0x9c]
xor ecx, edx
mov dword [eax + esi - 4], ecx
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
sub ebx, 1
jne 0x10012d03
mov edi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 8]
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, ecx
shr eax, 8
mov byte [edi + 2], al
mov byte [edi + 3], cl
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 0x18
mov byte [edi + 4], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ecx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], cl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
shr eax, 0x18
mov byte [edi + 8], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 9], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xa], al
mov byte [edi + 0xb], cl
mov ecx, dword [ebp - 0x14]
mov eax, ecx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xf], cl
mov ecx, dword [ebp - 4]
mov byte [edi + 0xe], al
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1002c009
mov esp, ebp
pop ebp
ret