Function at 0x5263b0
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 + 0x5bc1e0]
mov eax, edi
shl edi, 8
shr eax, 8
xor edx, eax
movzx eax, di
movzx ecx, word [edx*2 + 0x5bc1e0]
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.005267c0
test eax, eax
je 0x526799
mov eax, dword [ebp]
cmp dword [eax], 2
je 0x5267ac
mov edx, dword [ebp + 4]
mov ecx, ebp
push dword [edx + 0x478]
mov edx, dword [edx + 0x470]
call fcn.00524e00
add esp, 4
test eax, eax
je 0x526799
mov eax, dword [ebp + 4]
xor esi, esi
mov ebx, dword [esp + 0x20]
cmp dword [eax + 0x478], esi
jbe 0x5264c8
nop dword [eax + eax]
mov ecx, dword [eax + 0x480]
mov eax, dword [eax + 0x47c]
sub eax, 1
je 0x526494
sub eax, 1
je 0x526488
sub eax, 1
jne 0x52649a
lea eax, [ecx + 1]
cmp esi, 1
cmovne eax, ecx
mov ecx, eax
jmp 0x52649a
lea eax, [ecx + 1]
test esi, esi
cmovne eax, ecx
mov ecx, eax
jmp 0x52649a
cmp esi, 1
jne 0x52649a
inc ecx
push ebx
push ecx
mov edx, esi
mov ecx, ebp
call fcn.00526f10
add esp, 8
test eax, eax
je 0x526799
mov eax, dword [ebp]
cmp dword [eax], 2
je 0x5267ac
mov eax, dword [ebp + 4]
inc esi
cmp esi, dword [eax + 0x478]
jb 0x526460
mov ecx, dword [eax + 0x38]
mov edx, dword [ecx + 0x14]
and edx, 7
je 0x526521
mov eax, 8
mov dword [esp + 0x10], 0
sub eax, edx
lea edx, [esp + 0x10]
push eax
call fcn.00528e30
add esp, 4
test eax, eax
je 0x526799
cmp dword [esp + 0x10], 0
je 0x526521
mov eax, dword [ebp + 4]
cmp dword [eax + 0xe30], 0
jne 0x526518
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 0x5267ac
mov eax, dword [ebp + 4]
mov esi, dword [eax + 0x38]
mov ecx, esi
call fcn.00528af0
mov edi, dword [esi + 0x14]
test edi, edi
je 0x52658f
mov ecx, dword [esi + 0x10]
mov eax, dword [esi]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + ecx*4]
cmp edx, edi
jae 0x52658f
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 + 0x5bc1e0]
xor ebx, ecx
cmp edx, edi
jb 0x526555
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.00528e30
add esp, 4
test eax, eax
je 0x526799
cmp esi, dword [esp + 0x14]
jne 0x52668e
test ebx, ebx
je 0x5266e6
mov esi, dword [ebp + 4]
mov eax, dword [esi + 0x47c]
sub eax, 1
je 0x52665f
sub eax, 1
je 0x52662d
sub eax, 1
jne 0x5266e6
xor edi, edi
cmp dword [esi + 0x470], edi
jbe 0x5266e6
nop
mov eax, dword [esi + 0x40]
mov edx, dword [eax + edi*4]
mov eax, dword [esi + 0x3c]
mov esi, dword [eax + edi*4]
add esi, esi
lea ecx, [eax + edi*4]
mov eax, edx
and eax, 1
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 0x5265f0
jmp 0x5266e6
xor edx, edx
cmp dword [esi + 0x470], edx
jbe 0x5266e6
nop dword [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 0x526640
jmp 0x5266e6
xor edx, edx
cmp dword [esi + 0x470], edx
jbe 0x5266e6
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 0x526670
jmp 0x5266e6
mov ecx, dword [ebp + 4]
cmp dword [ecx + 0xe30], 0
jne 0x5266ab
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 0x5266e6
xor esi, esi
cmp dword [ecx + 0x478], esi
jbe 0x5266e6
lea edi, [esi + 0x3c]
nop dword [eax]
mov eax, dword [ecx + 0x470]
shl eax, 2
push eax
push 0
push dword [edi + ecx]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp + 4]
lea edi, [edi + 4]
inc esi
add esp, 0xc
cmp esi, dword [ecx + 0x478]
jb 0x5266c0
mov eax, dword [esp + 0x18]
mov dword [eax], 1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0xe8]
test ecx, ecx
je 0x526703
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 0x5267a3
mov edx, dword [ebp + 4]
mov ecx, ebp
lea eax, [edx + 0x3c]
add edx, 0x470
push eax
call fcn.00527d80
add esp, 4
test eax, eax
je 0x5267a3
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