Function at 0x52b9c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x52b9e3
push 0x80
push str.srcciphers_aes_aes.c
push str.key___NULL
call fcn.0052cf10
add esp, 0xc
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x52ba01
push 0x81
push str.srcciphers_aes_aes.c
push str.skey___NULL
call fcn.0052cf10
add esp, 0xc
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x52ba1c
cmp ecx, 0x18
je 0x52ba1c
cmp ecx, 0x20
je 0x52ba1c
pop edi
mov eax, 3
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x52ba44
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax*2 + 6]
cmp esi, eax
je 0x52ba44
pop esi
pop edi
mov eax, 4
pop ebx
pop ebp
ret
mov eax, ecx
lea esi, [ebx + 4]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax*2 + 6]
mov dword [ebx + 0x1e0], eax
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 3]
shl ecx, 8
or ecx, eax
mov dword [ebx], ecx
movzx ecx, byte [edi + 4]
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 7]
shl ecx, 8
or ecx, eax
mov dword [esi], ecx
movzx ecx, byte [edi + 8]
movzx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xb]
shl ecx, 8
or ecx, eax
mov dword [ebx + 8], ecx
movzx ecx, byte [edi + 0xc]
movzx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xf]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc], ecx
cmp eax, 0x10
jne 0x52bb5f
push ecx
mov dword [ebp + 0xc], 0x2c
call fcn.0052cca0
xor eax, dword [ebx]
add esp, 4
mov ecx, dword [esi]
xor eax, 0x1000000
mov edx, dword [ebx + 8]
xor ecx, eax
mov dword [ebx + 0x10], eax
xor edx, ecx
mov eax, dword [ebx + 0xc]
mov edi, 0x56abb4
xor eax, edx
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], eax
push dword [esi + 0x18]
lea esi, [esi + 0x10]
call fcn.0052cca0
xor eax, dword [esi - 4]
add esp, 4
xor eax, dword [edi]
add edi, 4
mov dword [esi + 0xc], eax
mov ecx, dword [esi]
xor ecx, eax
mov dword [esi + 0x10], ecx
mov edx, dword [esi + 4]
xor edx, ecx
mov dword [esi + 0x14], edx
mov eax, dword [esi + 8]
xor eax, edx
mov dword [esi + 0x18], eax
cmp edi, 0x56abd8
jne 0x52bb22
jmp 0x52bd8b
cmp eax, 0x18
jne 0x52bc49
movzx ecx, byte [edi + 0x10]
movzx eax, byte [edi + 0x11]
shl ecx, 8
or ecx, eax
mov dword [ebp + 0xc], 0x34
movzx eax, byte [edi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x13]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x10], ecx
movzx ecx, byte [edi + 0x14]
movzx eax, byte [edi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x17]
shl ecx, 8
or ecx, eax
push ecx
mov dword [ebx + 0x14], ecx
call fcn.0052cca0
xor eax, dword [ebx]
add esp, 4
mov ecx, dword [esi]
xor eax, 0x1000000
mov edx, dword [ebx + 8]
lea esi, [ebx + 0x28]
xor ecx, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0xc]
xor edx, ecx
xor eax, edx
mov dword [ebx + 0x20], edx
mov edx, 0xffffffd8
mov dword [ebx + 0x1c], ecx
sub edx, ebx
mov dword [ebx + 0x24], eax
mov edi, 0x56abb4
mov dword [ebp + 8], edx
nop
mov ecx, dword [esi - 0x18]
lea esi, [esi + 0x18]
xor ecx, dword [esi - 0x1c]
mov eax, dword [esi - 0x2c]
xor eax, ecx
mov dword [esi - 0x18], ecx
mov dword [esi - 0x14], eax
lea eax, [edx + esi]
sar eax, 2
push dword [ebx + eax*4 + 0x14]
call fcn.0052cca0
xor eax, dword [esi - 0x28]
add esp, 4
xor eax, dword [edi]
add edi, 4
mov dword [esi - 0x10], eax
mov ecx, dword [esi - 0x24]
xor ecx, eax
mov dword [esi - 0xc], ecx
mov edx, dword [esi - 0x20]
xor edx, ecx
mov dword [esi - 8], edx
mov eax, dword [esi - 0x1c]
xor eax, edx
mov edx, dword [ebp + 8]
mov dword [esi - 4], eax
cmp edi, 0x56abd0
jne 0x52bbf0
jmp 0x52bd8b
cmp eax, 0x20
jne 0x52bee3
movzx ecx, byte [edi + 0x10]
movzx eax, byte [edi + 0x11]
shl ecx, 8
or ecx, eax
mov dword [ebp + 0xc], 0x3c
movzx eax, byte [edi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x13]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x10], ecx
movzx ecx, byte [edi + 0x14]
movzx eax, byte [edi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x17]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x14], ecx
movzx ecx, byte [edi + 0x18]
movzx eax, byte [edi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1b]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx ecx, byte [edi + 0x1c]
movzx eax, byte [edi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1f]
shl ecx, 8
or ecx, eax
push ecx
mov dword [ebx + 0x1c], ecx
call fcn.0052cca0
xor eax, dword [ebx]
add esp, 4
mov ecx, dword [esi]
xor eax, 0x1000000
mov edx, dword [ebx + 8]
lea esi, [ebx + 0x30]
xor ecx, eax
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0xc]
xor edx, ecx
xor eax, edx
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x2c], eax
mov edi, 0x56abb4
mov eax, 0xffffffd0
mov dword [ebx + 0x28], edx
sub eax, ebx
ret
mov dword [ebp + 8], eax
lea ecx, [ecx]
mov eax, dword [esi - 4]
ror eax, 8
push eax
call fcn.0052cca0
xor eax, dword [esi - 0x20]
mov ecx, dword [esi - 0x1c]
mov edx, dword [esi - 0x18]
xor ecx, eax
mov dword [esi], eax
xor edx, ecx
mov eax, dword [esi - 0x14]
xor eax, edx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], edx
add esi, 0x20
add eax, esi
sar eax, 2
push dword [ebx + eax*4 + 0x1c]
call fcn.0052cca0
xor eax, dword [esi - 0x30]
add esp, 8
xor eax, dword [edi]
add edi, 4
mov dword [esi - 0x10], eax
mov ecx, dword [esi - 0x2c]
xor ecx, eax
mov dword [esi - 0xc], ecx
mov edx, dword [esi - 0x28]
xor edx, ecx
mov dword [esi - 8], edx
mov eax, dword [esi - 0x24]
xor eax, edx
mov dword [esi - 4], eax
cmp edi, 0x56abcc
jne 0x52bd20
mov eax, dword [ebp + 0xc]
lea esi, [ebx + 0xf0]
add eax, 0xfffffffc
mov dword [ebp + 0xc], 1
lea edi, [ebx + eax*4]
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
cmp dword [ebx + 0x1e0], 1
jle 0x52bec4
mov edx, dword [edi - 0x10]
sub edi, 0x10
mov ecx, edx
mov eax, edx
shr eax, 0x10
add esi, 0x10
movzx eax, al
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x569bb0]
xor ecx, dword [eax*4 + 0x569fb0]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x56a3b0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56a7b0]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x569bb0]
xor ecx, dword [eax*4 + 0x569fb0]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x56a3b0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56a7b0]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x569bb0]
xor ecx, dword [eax*4 + 0x569fb0]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x56a3b0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56a7b0]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x569bb0]
xor ecx, dword [eax*4 + 0x569fb0]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x56a3b0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x56a7b0]
mov eax, dword [ebp + 0xc]
inc eax
mov dword [esi + 0xc], ecx
mov dword [ebp + 0xc], eax
cmp eax, dword [ebx + 0x1e0]
jl 0x52bdc4
mov eax, dword [edi - 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [edi - 8]
mov dword [esi + 0x18], eax
mov eax, dword [edi - 4]
mov dword [esi + 0x1c], eax
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret