Function at 0x5266a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebp
mov ebp, dword [esp + 0x38]
xor edx, edx
push esi
mov dword [esp + 0x20], edx
test ebp, ebp
je 0x526aaf
mov esi, dword [esp + 0x44]
test esi, esi
je 0x526aaf
mov ecx, dword [ebp + 4]
cmp ecx, 3
je 0x5266db
cmp dword [ebp], edx
je 0x5266db
pop esi
mov eax, 0xffffe121
pop ebp
add esp, 0x30
ret
mov eax, dword [esp + 0x48]
test eax, eax
jg 0x5266f1
mov eax, dword [esp + 0x50]
pop esi
mov dword [eax], edx
mov eax, edx
pop ebp
add esp, 0x30
ret
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
dec ecx
push ebx
push edi
mov dword [esp + 0x14], eax
cmp ecx, 4
ja case.0x52670a.3
jmp dword [ecx*4 + 0x526abc]
mov edi, eax
test eax, eax
jle 0x526a9a
mov ebx, dword [esp + 0x54]
nop
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push ecx
lea eax, [ebp + 0x10]
push eax
call fcn.00525bd0
dec edi
add esp, 0x10
add esi, 0x10
add ebx, 0x10
test edi, edi
jg 0x526720
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
pop edi
pop ebx
shl eax, 7
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
pop ebp
add esp, 0x30
ret
mov ebx, dword [esp + 0x48]
test bl, 3
je 0x52681f
mov dword [esp + 0x10], eax
test eax, eax
jle 0x526a9a
mov eax, ebx
lea edx, [esp + 0x30]
sub eax, edx
mov dword [esp + 0x18], eax
jmp 0x526780
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x30]
push eax
push esi
push ecx
lea eax, [ebp + 0x10]
push eax
call fcn.00525bd0
add esp, 0x10
xor edi, edi
jmp 0x5267a0
mov edx, dword [esp + 0x18]
lea eax, [esp + edi + 0x30]
movzx ecx, byte [edx + eax]
movzx edx, byte [ebx + edi + 1]
xor byte [eax], cl
xor byte [eax + 1], dl
movzx ecx, byte [ebx + edi + 2]
movzx edx, byte [ebx + edi + 3]
xor byte [eax + 2], cl
xor byte [eax + 3], dl
add edi, 4
cmp edi, 0x10
jl 0x5267a0
push 0x10
push esi
push ebx
call fcn.005216e0
mov edi, dword [esp + 0x60]
push 0x10
lea eax, [esp + 0x40]
push eax
push edi
call fcn.005216e0
mov eax, dword [esp + 0x28]
dec eax
add edi, 0x10
add esp, 0x18
add esi, 0x10
mov dword [esp + 0x54], edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x526780
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
pop edi
pop ebx
shl eax, 7
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
pop ebp
add esp, 0x30
ret
mov edi, eax
test eax, eax
jle 0x526a9a
lea esp, [esp]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x30]
push ecx
push esi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.00525bd0
mov eax, dword [ebx]
xor dword [esp + 0x40], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
xor dword [esp + 0x44], ecx
xor dword [esp + 0x48], edx
xor dword [esp + 0x4c], eax
push 0x10
push esi
push ebx
call fcn.005216e0
mov edx, dword [esp + 0x70]
push 0x10
lea ecx, [esp + 0x50]
push ecx
push edx
call fcn.005216e0
add dword [esp + 0x7c], 0x10
dec edi
add esp, 0x28
add esi, 0x10
test edi, edi
jg 0x526830
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
pop edi
pop ebx
shl eax, 7
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
pop ebp
add esp, 0x30
ret
mov dword [esp + 0x10], eax
test eax, eax
jle 0x526a9a
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x54]
mov ecx, eax
lea edx, [esp + 0x30]
sub ecx, edx
mov dword [esp + 0x18], ecx
mov ecx, eax
sub ecx, ebx
lea edi, [esp + 0x31]
mov dword [esp + 0x1c], ecx
sub edi, esi
jmp 0x5268d9
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x30]
push ecx
push eax
push edx
add ebp, 0x10
push ebp
call fcn.005255d0
mov eax, dword [esp + 0x58]
add eax, 3
add esp, 0x10
lea ecx, [ebx + 1]
sub ebx, esi
mov dword [esp + 0x20], eax
mov eax, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 4
lea ecx, [ecx]
movzx edx, byte [eax]
mov ebx, dword [esp + 0x18]
lea ebp, [edi + eax - 1]
mov byte [ebx + ebp], dl
movzx edx, byte [ebp]
xor dl, byte [eax]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
mov byte [ebx + eax], dl
movzx edx, byte [eax + 1]
mov ebx, dword [esp + 0x1c]
mov byte [ebx + ecx], dl
movzx edx, byte [edi + eax]
xor dl, byte [eax + 1]
add ebp, 4
mov byte [ecx], dl
movzx edx, byte [eax + 2]
mov byte [ebp - 5], dl
movzx edx, byte [edi + eax + 1]
xor dl, byte [eax + 2]
add eax, 4
mov byte [ecx + 1], dl
movzx edx, byte [eax - 1]
mov byte [ebp - 4], dl
movzx edx, byte [edi + eax - 2]
xor dl, byte [eax - 1]
add ecx, 4
sub dword [esp + 0x24], 1
mov byte [ecx - 2], dl
mov dword [esp + 0x20], ebp
jne 0x526910
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x54]
sub dword [esp + 0x1c], 0x10
dec eax
add ebx, 0x10
add esi, 0x10
sub edi, 0x10
mov dword [esp + 0x54], ebx
mov dword [esp + 0x10], eax
test eax, eax
jg 0x5268d1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
pop edi
pop ebx
shl eax, 7
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
pop ebp
add esp, 0x30
ret
mov dword [esp + 0x10], eax
test eax, eax
jle 0x526a9a
mov ebx, dword [esp + 0x54]
lea eax, [ebp + 0x10]
lea edi, [esp + 0x31]
mov dword [esp + 0x2c], eax
sub edi, esi
jmp 0x5269e4
mov ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
call fcn.005255d0
mov eax, dword [esp + 0x58]
push 0x10
lea edx, [esp + 0x44]
push edx
push eax
call fcn.005216e0
mov ebp, ebx
add esp, 0x1c
lea ecx, [ebx + 2]
mov eax, esi
sub ebp, esi
mov edx, 4
mov edi, edi
movzx ebx, byte [eax + edi - 1]
xor bl, byte [eax]
add eax, 4
mov byte [eax + ebp - 4], bl
movzx ebx, byte [eax + edi - 4]
xor bl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 5], bl
movzx ebx, byte [eax + edi - 3]
xor bl, byte [eax - 2]
mov byte [ecx - 4], bl
movzx ebx, byte [eax + edi - 2]
xor bl, byte [eax - 1]
sub edx, 1
mov byte [ecx - 3], bl
jne 0x526a20
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x54]
dec eax
add ebx, 0x10
add esi, 0x10
sub edi, 0x10
mov dword [esp + 0x54], ebx
mov dword [esp + 0x10], eax
test eax, eax
jg 0x5269e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
pop edi
pop ebx
shl eax, 7
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
pop ebp
add esp, 0x30
ret
mov dword [esp + 0x28], 0xffffe121
mov ecx, dword [esp + 0x58]
pop edi
pop ebx
shl eax, 7
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
pop ebp
add esp, 0x30
ret
pop esi
mov eax, 0xffffe88f
pop ebp
add esp, 0x30
ret