Function at 0x525923
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
mov edi, dword [ebp + 8]
je 0x52594b
push 0xfffffffffffffffb
pop eax
jmp 0x525bc3
cmp dword [esi + 8], 0
je 0x525955
push 0xfffffffffffffffa
jmp 0x525945
test edi, edi
je 0x525bc1
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x525bc1
mov ecx, dword [esi + 4]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
sub ecx, 0
mov dword [ebp - 0x2c], eax
je 0x525b9a
dec ecx
je 0x525b1e
dec ecx
je 0x525992
or eax, 0xffffffff
jmp 0x525bc3
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x18]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x525bbc
xor edi, edi
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, esi
call fcn.005250f5
mov eax, edi
cdq
and edx, 7
add eax, edx
mov dl, byte [ebp - 0x24]
and dl, 0x80
mov ecx, edi
and ecx, 7
shr dl, cl
mov dword [ebp - 0x30], ecx
mov cl, byte [ebp - 0x13]
shr cl, 7
sar eax, 3
add eax, ebx
xor byte [eax], dl
mov dl, byte [ebp - 0x14]
add dl, dl
or cl, dl
mov dl, byte [ebp - 0x13]
mov byte [ebp - 0x14], cl
mov cl, byte [ebp - 0x12]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0x12]
mov byte [ebp - 0x13], cl
mov cl, byte [ebp - 0x11]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0x11]
mov byte [ebp - 0x12], cl
mov cl, byte [ebp - 0x10]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0x10]
mov byte [ebp - 0x11], cl
mov cl, byte [ebp - 0xf]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xf]
mov byte [ebp - 0x10], cl
mov cl, byte [ebp - 0xe]
shr cl, 7
mov al, byte [eax]
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xe]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0xd]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], cl
mov cl, byte [ebp - 0xc]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xc]
mov byte [ebp - 0xd], cl
mov cl, byte [ebp - 0xb]
shr cl, 7
add dl, dl
or cl, dl
mov byte [ebp - 0xc], cl
mov cl, byte [ebp - 0xa]
mov dl, byte [ebp - 0xb]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 0xa]
mov byte [ebp - 0xb], cl
mov cl, byte [ebp - 9]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 9]
mov byte [ebp - 0xa], cl
mov cl, byte [ebp - 8]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 8]
mov byte [ebp - 9], cl
mov cl, byte [ebp - 7]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 7]
mov byte [ebp - 8], cl
mov cl, byte [ebp - 6]
shr cl, 7
add dl, dl
or cl, dl
mov dl, byte [ebp - 6]
mov byte [ebp - 7], cl
mov cl, byte [ebp - 5]
shr cl, 7
add dl, dl
or cl, dl
mov byte [ebp - 6], cl
mov cl, 7
sub cl, byte [ebp - 0x30]
shr al, cl
mov cl, byte [ebp - 5]
add cl, cl
and al, 1
or al, cl
inc edi
cmp edi, 0x80
mov byte [ebp - 5], al
jl 0x5259b7
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x5259b5
jmp 0x525bb9
mov eax, dword [esi + 0xc]
xor eax, dword [edi]
push ebx
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x10]
mov ecx, esi
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call fcn.005250f5
mov eax, dword [ebp - 0x2c]
add edi, 0x10
dec eax
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x525bb9
mov eax, dword [ebx]
xor eax, dword [edi]
add ebx, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebx - 0xc]
xor eax, dword [edi + 4]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebx - 8]
xor eax, dword [edi + 8]
mov ecx, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx - 4]
xor eax, dword [edi + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call fcn.005250f5
add edi, 0x10
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x525b5b
jmp 0x525bb9
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x525bbc
push ebx
push edi
mov ecx, esi
call fcn.005250f5
add edi, 0x10
add ebx, 0x10
dec dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0
jg 0x525ba1
mov eax, dword [ebp - 0x2c]
shl eax, 7
jmp 0x525bc3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret 0xc