Function at 0x5261e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
mov eax, edx
push esi
mov dword [esp + 0x14], eax
push edi
mov esi, dword [ebp + 4]
mov dword [eax], 0
mov dword [esp + 0x14], ebp
movzx eax, byte [esi + 0xe04]
movzx edx, byte [esi + 0xe05]
mov ebx, dword [esi + 0x38]
movzx edi, word [eax*2 + 0x5bc400]
mov eax, edi
shl edi, 8
shr eax, 8
xor edx, eax
movzx eax, di
movzx ecx, word [edx*2 + 0x5bc400]
xor ecx, eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x18], ecx
mov ecx, ebp
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x20], eax
call fcn.005265f0
test eax, eax
je 0x5265c9
mov eax, dword [ebp]
cmp dword [eax], 2
je 0x5265dc
mov edx, dword [ebp + 4]
mov ecx, ebp
push dword [edx + 0x478]
mov edx, dword [edx + 0x470]
call fcn.00524c20
add esp, 4
test eax, eax
je 0x5265c9
mov eax, dword [ebp + 4]
xor esi, esi
mov ebx, dword [esp + 0x20]
cmp dword [eax + 0x478], esi
jbe 0x5262f8
nop dword [eax + eax]
mov ecx, dword [eax + 0x480]
mov eax, dword [eax + 0x47c]
sub eax, 1
je 0x5262c4
sub eax, 1
je 0x5262b8
sub eax, 1
jne 0x5262ca
lea eax, [ecx + 1]
cmp esi, 1
cmovne eax, ecx
mov ecx, eax
jmp 0x5262ca
lea eax, [ecx + 1]
test esi, esi
cmovne eax, ecx
mov ecx, eax
jmp 0x5262ca
cmp esi, 1
jne 0x5262ca
inc ecx
push ebx
push ecx
mov edx, esi
mov ecx, ebp
call fcn.00526d40
add esp, 8
test eax, eax
je 0x5265c9
mov eax, dword [ebp]
cmp dword [eax], 2
je 0x5265dc
mov eax, dword [ebp + 4]
inc esi
cmp esi, dword [eax + 0x478]
jb 0x526290
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + 0x14]
and edx, 7
je 0x526351
mov eax, 8
mov dword [esp + 0x10], 0
sub eax, edx
lea edx, [esp + 0x10]
push eax
call fcn.00528cb0
add esp, 4
test eax, eax
je 0x5265c9
cmp dword [esp + 0x10], 0
je 0x526351
mov eax, dword [ebp + 4]
cmp dword [eax + 0xe30], 0
jne 0x526348
push dword [eax + 0x30]
mov eax, dword [eax + 0x20]
push 0
push ebp
call eax
add esp, 0xc
mov eax, dword [ebp]
mov dword [eax], 2
mov eax, dword [ebp]
cmp dword [eax], 2
je 0x5265dc
mov eax, dword [ebp + 4]
mov esi, dword [eax + 0x38]
mov ecx, esi
call fcn.00528960
mov edi, dword [esi + 0x14]
test edi, edi
je 0x5263bf
mov ecx, dword [esi + 0x10]
mov eax, dword [esi]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + ecx*4]
cmp edx, edi
jae 0x5263bf
mov ebx, dword [esi + 0x18]
mov ebp, eax
mov ecx, 0x18
mov eax, ebp
sub ecx, edx
add edx, 8
shr eax, cl
movzx ecx, al
mov eax, ebx
shr eax, 8
xor ecx, eax
movzx ebx, bl
shl ebx, 8
movzx ecx, word [ecx*2 + 0x5bc400]
xor ebx, ecx
cmp edx, edi
jb 0x526385
mov ebp, dword [esp + 0x14]
mov dword [esi + 0x18], ebx
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x20], edx
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x14]
movzx esi, word [esi + 0x18]
push 0x10
mov ecx, dword [ecx + 0x38]
call fcn.00528cb0
add esp, 4
test eax, eax
je 0x5265c9
cmp esi, dword [esp + 0x14]
jne 0x5264be
test ebx, ebx
je 0x526516
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x47c]
sub eax, 1
je 0x52648f
sub eax, 1
je 0x52645c
sub eax, 1
jne 0x526516
xor edi, edi
cmp dword [esi + 0x470], edi
jbe 0x526516
nop
mov eax, dword [esi + 0x40]
mov edx, dword [eax + edi*4]
mov eax, dword [esi + 0x3c]
mov esi, edx
and esi, 1
lea ecx, [eax + edi*4]
mov eax, dword [ecx]
add eax, eax
or esi, eax
lea eax, [edx + esi]
sub esi, edx
sar eax, 1
mov dword [ecx], eax
mov eax, dword [ebp + 4]
sar esi, 1
mov eax, dword [eax + 0x40]
mov dword [eax + edi*4], esi
inc edi
mov esi, dword [ebp + 4]
cmp edi, dword [esi + 0x470]
jb 0x526420
jmp 0x526516
xor edx, edx
cmp dword [esi + 0x470], edx
jbe 0x526516
nop word [eax + eax]
mov eax, dword [esi + 0x3c]
lea ecx, [eax + edx*4]
mov eax, dword [esi + 0x40]
mov eax, dword [eax + edx*4]
inc edx
add dword [ecx], eax
mov esi, dword [ebp + 4]
cmp edx, dword [esi + 0x470]
jb 0x526470
jmp 0x526516
xor edx, edx
cmp dword [esi + 0x470], edx
jbe 0x526516
nop dword [eax]
mov eax, dword [esi + 0x40]
lea ecx, [eax + edx*4]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + edx*4]
inc edx
sub eax, dword [ecx]
mov dword [ecx], eax
mov esi, dword [ebp + 4]
cmp edx, dword [esi + 0x470]
jb 0x5264a0
jmp 0x526516
mov ecx, dword [ebp + 4]
cmp dword [ecx + 0xe30], 0
jne 0x5264db
push dword [ecx + 0x30]
mov eax, dword [ecx + 0x20]
push 2
push ebp
call eax
mov ecx, dword [ebp + 4]
add esp, 0xc
test ebx, ebx
je 0x526516
xor esi, esi
cmp dword [ecx + 0x478], esi
jbe 0x526516
lea edi, [esi + 0x3c]
nop dword [eax]
mov eax, dword [ecx + 0x470]
shl eax, 2
push eax
push 0
push dword [edi + ecx]
call fcn.00580daf
mov ecx, dword [ebp + 4]
lea edi, [edi + 4]
inc esi
add esp, 0xc
cmp esi, dword [ecx + 0x478]
jb 0x5264f0
mov eax, dword [esp + 0x18]
mov dword [eax], 1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0xe8]
test ecx, ecx
je 0x526533
mov dword [eax + 0xe4], ecx
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov eax, dword [eax + 0x478]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov eax, dword [eax + 0x47c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov eax, dword [eax + 0x480]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov eax, dword [eax + 0x474]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov eax, dword [eax + 0x470]
mov dword [ecx + 0x18], eax
xor ecx, ecx
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x470]
add eax, dword [edx + 0x488]
adc ecx, dword [edx + 0x48c]
mov dword [edx + 0xf0], eax
mov dword [edx + 0xf4], ecx
test ebx, ebx
je 0x5265d3
mov edx, dword [ebp + 4]
mov ecx, ebp
lea eax, [edx + 0x3c]
add edx, 0x470
push eax
call fcn.00527be0
add esp, 4
test eax, eax
je 0x5265d3
mov eax, dword [ebp]
mov dword [eax], 7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [ebp]
mov dword [eax], 2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret