Function at 0x100136d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x1006a264]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
test ecx, ecx
jle 0x1001392c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
add eax, 4
push esi
mov dword [ebp - 0xa4], eax
lea esi, [edx + 2]
push edi
lea edi, [ebx + 2]
mov dword [ebp - 0x9c], esi
sub ebx, edx
mov dword [ebp - 0x98], edi
lea eax, [ecx - 1]
sub ebx, 2
shr eax, 4
inc eax
mov dword [ebp + 0x14], ebx
mov dword [ebp - 0xa0], eax
nop word [eax + eax]
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.1002e790
movzx ecx, byte [ebx + esi]
add esp, 0xc
movzx eax, byte [edi - 1]
lea esi, [ebp - 0x88]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 3]
mov dword [ebp - 0x94], ecx
movzx ecx, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 7]
mov dword [ebp - 0x90], ecx
movzx ecx, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xb]
mov dword [ebp - 0x8c], ecx
movzx ecx, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xd]
mov edi, dword [ebp - 0xa4]
shl ecx, 8
or ecx, eax
xor ebx, ebx
mov dword [ebp - 0x88], ecx
nop word [eax + eax]
mov ecx, dword [esi + ebx*4]
lea eax, [ebp - 0x90]
xor ecx, dword [eax + ebx*4]
lea edi, [edi + 4]
xor ecx, dword [ebp + ebx*4 - 0x8c]
xor ecx, dword [edi - 4]
mov eax, ecx
shr eax, 0x18
movzx edx, byte [eax + 0x10055d30]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x10055d30]
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x10055d30]
or edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax + 0x10055d30]
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
lea eax, [ebp - 0x94]
xor ecx, dword [eax + ebx*4]
lea eax, [ebp - 0x84]
xor ecx, edx
mov dword [eax + ebx*4], ecx
inc ebx
cmp ebx, 0x20
jb 0x100137f0
mov esi, dword [ebp - 0x9c]
mov ecx, dword [ebp - 8]
mov eax, ecx
shr eax, 0x18
mov edi, dword [ebp - 0x98]
mov byte [esi - 2], al
add edi, 0x10
mov eax, ecx
mov byte [esi + 1], cl
shr eax, 0x10
mov byte [esi - 1], al
mov eax, ecx
mov ecx, dword [ebp - 0xc]
shr eax, 8
mov byte [esi], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 2], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
shr eax, 0x18
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x10
mov ebx, dword [ebp + 0x14]
mov byte [esi + 7], al
mov eax, ecx
shr eax, 8
mov byte [esi + 8], al
mov byte [esi + 9], cl
mov ecx, dword [ebp - 0x14]
mov eax, ecx
shr eax, 0x18
mov byte [esi + 0xa], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xb], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xc], al
mov byte [esi + 0xd], cl
add esi, 0x10
sub dword [ebp - 0xa0], 1
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], esi
jne 0x10013730
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002cba9
mov esp, ebp
pop ebp
ret