Function at 0x525bd4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp dword [ebx], 0
push edi
mov edi, dword [ebp + 0x10]
je 0x525bfc
push 0xfffffffffffffffb
pop eax
jmp 0x525e8d
mov ecx, dword [ebx + 4]
cmp ecx, 2
je 0x525c0e
cmp dword [ebx + 8], 0
jne 0x525c0e
push 0xfffffffffffffffa
jmp 0x525bf6
test esi, esi
je 0x525e8b
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x525e8b
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
sub ecx, 0
mov dword [ebp - 0x34], eax
je 0x525e64
dec ecx
je 0x525dde
dec ecx
je 0x525c48
or eax, 0xffffffff
jmp 0x525e8d
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x525e86
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
push eax
mov ecx, ebx
call fcn.005250f5
mov al, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x13]
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x12]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x12]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x11]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0x10]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0x11], al
mov al, byte [ebp - 0xf]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xf]
mov byte [ebp - 0x10], al
mov al, byte [ebp - 0xe]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0xd]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0xe], al
mov al, byte [ebp - 0xc]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xc]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xb]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xb]
mov byte [ebp - 0xc], al
mov al, byte [ebp - 0xa]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 0xa]
mov byte [ebp - 0xb], al
mov al, byte [ebp - 9]
shr al, 7
add cl, cl
or al, cl
mov byte [ebp - 0xa], al
mov al, byte [ebp - 8]
shr al, 7
mov cl, byte [ebp - 9]
add cl, cl
or al, cl
mov cl, byte [ebp - 8]
mov byte [ebp - 9], al
mov al, byte [ebp - 7]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 7]
mov byte [ebp - 8], al
mov al, byte [ebp - 6]
shr al, 7
add cl, cl
or al, cl
mov cl, byte [ebp - 6]
mov byte [ebp - 7], al
mov al, byte [ebp - 5]
shr al, 7
add cl, cl
or al, cl
mov byte [ebp - 6], al
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
and dword [ebp - 0x30], 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dl, byte [eax + esi]
mov cl, 7
sub cl, byte [ebp - 0x30]
add eax, edi
shr dl, cl
mov cl, byte [ebp - 5]
add cl, cl
and dl, 1
or dl, cl
mov cl, byte [ebp - 0x30]
mov byte [ebp - 5], dl
mov dl, byte [ebp - 0x24]
and dl, 0x80
shr dl, cl
xor byte [eax], dl
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0x80
jl 0x525c6f
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x525c6b
jmp 0x525e83
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x525e86
lea eax, [ebp - 0x24]
push eax
push esi
mov ecx, ebx
call fcn.0052549c
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0xc], eax
add esi, 0x10
add edi, 0x10
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x525e01
jmp 0x525e83
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x525e86
push edi
push esi
mov ecx, ebx
call fcn.0052549c
add esi, 0x10
add edi, 0x10
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x525e6b
mov eax, dword [ebp - 0x34]
shl eax, 7
jmp 0x525e8d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret 0xc