Function at 0x10249cf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x106499c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x50], ecx
test ecx, ecx
jle 0x10249d40
mov edi, edx
lea ebx, [eax + 0x21c]
push edi
call fcn.10249c60
xor eax, dword [ebx]
mov ecx, dword [ebp - 0x50]
mov dword [ebp + esi*4 - 0x24], eax
inc esi
add esp, 4
add edi, 4
lea ebx, [ebx + 4]
cmp esi, ecx
jl 0x10249d20
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
lea esi, [ebp - 0x44]
mov dword [ebp - 0x4c], ecx
lea edi, [ebp - 0x24]
mov dword [ebp - 0x5c], esi
cmp edx, 1
jle 0x10249e12
dec edx
mov dword [ebp - 0x48], edx
lea esp, [esp]
test ecx, ecx
jle 0x10249dfc
mov ecx, dword [ebp - 0x4c]
lea edx, [eax + 0x24]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x50]
add eax, 0x21c
mov dword [ebp - 0x54], eax
mov eax, edi
sub eax, esi
add dword [ebp - 0x4c], ecx
mov ebx, esi
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], ecx
mov edi, edi
movzx eax, byte [edx]
lea esi, [esi + 4]
mov eax, dword [edi + eax*4]
shr eax, 8
movzx eax, al
lea ebx, [ebx + 4]
mov ecx, dword [eax*4 + 0x1065ec08]
movzx eax, byte [edx + 1]
rol ecx, 8
movzx eax, byte [edi + eax*4 + 2]
lea edx, [edx + 3]
mov eax, dword [eax*4 + 0x1065ec08]
rol eax, 0x10
xor ecx, eax
movzx eax, byte [edx - 1]
movzx eax, byte [edi + eax*4 + 3]
mov eax, dword [eax*4 + 0x1065ec08]
ror eax, 8
xor ecx, eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax + ebx - 4]
xor ecx, dword [eax*4 + 0x1065ec08]
xor ecx, dword [esi - 4]
dec dword [ebp - 0x64]
mov dword [ebx - 4], ecx
jne 0x10249d90
mov esi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x48]
mov eax, edi
mov edi, esi
mov esi, eax
mov eax, dword [ebp + 8]
dec edx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x48], edx
jne 0x10249d60
test ecx, ecx
jle 0x10249eab
mov ecx, dword [ebp - 0x4c]
add ecx, 0x87
mov ebx, esi
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x58], ecx
mov ecx, edi
sub ecx, esi
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
mov ecx, dword [eax + 4]
lea edx, [eax + 0x24]
mov dword [ebp - 0x48], ecx
mov edi, edi
movzx eax, byte [edx]
lea esi, [esi + 4]
mov eax, dword [edi + eax*4]
shr eax, 8
movzx eax, al
lea ebx, [ebx + 4]
movzx ecx, byte [eax + 0x1065e508]
movzx eax, byte [edx + 1]
rol ecx, 8
movzx eax, byte [edi + eax*4 + 2]
lea edx, [edx + 3]
movzx eax, byte [eax + 0x1065e508]
rol eax, 0x10
xor ecx, eax
movzx eax, byte [edx - 1]
movzx eax, byte [edi + eax*4 + 3]
movzx eax, byte [eax + 0x1065e508]
ror eax, 8
xor ecx, eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + ebx - 4]
movzx eax, byte [eax + 0x1065e508]
xor ecx, eax
xor ecx, dword [esi - 4]
dec dword [ebp - 0x48]
mov dword [ebx - 4], ecx
jne 0x10249e40
mov esi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x50]
xor ebx, ebx
test ecx, ecx
jle 0x10249edd
sub edi, esi
push dword [ebp - 0x60]
push dword [esi]
call fcn.1023f410
mov eax, dword [ebp + 8]
add dword [ebp - 0x60], 4
mov dword [esi], 0
inc ebx
add esp, 8
mov dword [edi + esi], 0
lea esi, [esi + 4]
cmp ebx, dword [eax + 4]
jl 0x10249eb3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10311bec
mov esp, ebp
pop ebp
ret