Function at 0x52aca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x5ac020]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x70], esi
jne 0x52acd7
push 0x389
push str.srcciphers_anubis.c
push str.key___NULL
call fcn.0052cf10
add esp, 0xc
test esi, esi
jne 0x52acf2
push 0x38a
push str.srcciphers_anubis.c
push str.skey___NULL
call fcn.0052cf10
add esp, 0xc
mov edx, dword [ebp + 0xc]
test dl, 3
jne 0x52b25b
lea eax, [edx - 0x10]
cmp eax, 0x18
ja 0x52b25b
mov eax, dword [ebp + 0x10]
shl edx, 3
mov dword [esi], edx
sar edx, 5
mov dword [ebp - 0x7c], edx
push ebx
lea ebx, [edx + 8]
mov dword [ebp - 0x74], ebx
mov dword [esi + 4], ebx
test eax, eax
je 0x52ad3f
cmp eax, ebx
je 0x52ad3f
pop ebx
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
test edx, edx
jle 0x52ad7e
mov esi, dword [ebp + 8]
inc esi
lea ebx, [ebx]
movzx ecx, byte [esi - 1]
lea esi, [esi + 4]
movzx eax, byte [esi - 4]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi - 3]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi - 2]
shl ecx, 8
xor ecx, eax
mov dword [ebp + edi*4 - 0x2c], ecx
inc edi
cmp edi, edx
jl 0x52ad50
mov esi, dword [ebp - 0x70]
xor edi, edi
mov dword [ebp - 0x5c], edi
test ebx, ebx
js 0x52b051
lea eax, [edx - 2]
lea ebx, [esi + 0xc]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], ebx
jmp 0x52ada0
movzx eax, byte [ebp + edx*4 - 0x2d]
mov ecx, dword [eax*4 + 0x5654f8]
movzx eax, byte [ebp + edx*4 - 0x2e]
mov dword [ebp - 0x68], ecx
mov esi, dword [eax*4 + 0x5654f8]
movzx eax, byte [ebp + edx*4 - 0x2f]
mov dword [ebp - 0x58], esi
mov eax, dword [eax*4 + 0x5654f8]
mov dword [ebp - 0x64], eax
movzx eax, byte [ebp + edx*4 - 0x30]
mov eax, dword [eax*4 + 0x5654f8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x78]
test eax, eax
js 0x52af88
mov ebx, ecx
mov edx, esi
mov edi, eax
lea ecx, [ecx]
mov eax, ebx
mov esi, dword [ebp - 0x64]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + 0x5658f8]
mov eax, ebx
shr eax, 8
and ecx, 0xff0000
and eax, 0xff
mov eax, dword [eax*4 + 0x5658f8]
and eax, 0xff00
xor ecx, eax
movzx eax, byte [ebp + edi*4 - 0x29]
xor ecx, dword [eax*4 + 0x5654f8]
mov eax, ebx
shr eax, 0x18
mov eax, dword [eax*4 + 0x5658f8]
and eax, 0xff000000
xor ecx, eax
movzx eax, bl
movzx ebx, byte [eax*4 + 0x5658f8]
mov eax, edx
shr eax, 0x10
xor ebx, ecx
and eax, 0xff
mov ecx, dword [eax*4 + 0x5658f8]
mov eax, edx
shr eax, 8
and ecx, 0xff0000
and eax, 0xff
mov eax, dword [eax*4 + 0x5658f8]
and eax, 0xff00
xor ecx, eax
movzx eax, byte [ebp + edi*4 - 0x2a]
xor ecx, dword [eax*4 + 0x5654f8]
mov eax, edx
shr eax, 0x18
mov eax, dword [eax*4 + 0x5658f8]
and eax, 0xff000000
xor ecx, eax
movzx eax, dl
movzx edx, byte [eax*4 + 0x5658f8]
mov eax, esi
shr eax, 0x10
xor edx, ecx
and eax, 0xff
mov ecx, dword [eax*4 + 0x5658f8]
mov eax, esi
shr eax, 8
and ecx, 0xff0000
and eax, 0xff
mov eax, dword [eax*4 + 0x5658f8]
and eax, 0xff00
xor ecx, eax
movzx eax, byte [ebp + edi*4 - 0x2b]
xor ecx, dword [eax*4 + 0x5654f8]
mov eax, esi
shr eax, 0x18
mov eax, dword [eax*4 + 0x5658f8]
and eax, 0xff000000
xor ecx, eax
mov eax, esi
mov esi, dword [ebp - 0x60]
movzx eax, al
movzx eax, byte [eax*4 + 0x5658f8]
xor ecx, eax
mov eax, esi
shr eax, 0x10
and eax, 0xff
mov dword [ebp - 0x64], ecx
mov ecx, dword [eax*4 + 0x5658f8]
mov eax, esi
shr eax, 8
and ecx, 0xff0000
and eax, 0xff
mov eax, dword [eax*4 + 0x5658f8]
and eax, 0xff00
xor ecx, eax
movzx eax, byte [ebp + edi*4 - 0x2c]
xor ecx, dword [eax*4 + 0x5654f8]
mov eax, esi
shr eax, 0x18
mov eax, dword [eax*4 + 0x5658f8]
and eax, 0xff000000
xor ecx, eax
mov eax, esi
movzx eax, al
movzx eax, byte [eax*4 + 0x5658f8]
xor ecx, eax
dec edi
mov dword [ebp - 0x60], ecx
jns 0x52adf0
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x68], ebx
mov ebx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x60]
mov dword [ebx + 8], eax
lea eax, [edx + 8]
mov dword [ebx - 4], ecx
mov dword [ebx], esi
cmp edi, eax
je 0x52b04b
test edx, edx
jle 0x52b016
or esi, 0xffffffff
mov dword [ebp - 0x58], edx
xor edi, edi
movzx eax, byte [ebp + edi - 0x29]
mov ebx, dword [eax*4 + 0x5644f8]
mov eax, esi
mov dword [ebp + edi - 0x54], ebx
test esi, esi
jns 0x52afc9
lea eax, [edx - 1]
movzx ecx, byte [ebp + eax*4 - 0x2a]
mov ecx, dword [ecx*4 + 0x5648f8]
xor ecx, ebx
dec eax
mov dword [ebp + edi - 0x54], ecx
jns 0x52afe1
lea eax, [edx - 1]
movzx ecx, byte [ebp + eax*4 - 0x2b]
mov ecx, dword [ecx*4 + 0x564cf8]
xor dword [ebp + edi - 0x54], ecx
dec eax
jns 0x52aff7
lea eax, [edx - 1]
movzx eax, byte [ebp + eax*4 - 0x2c]
inc esi
mov eax, dword [eax*4 + 0x5650f8]
xor dword [ebp + edi - 0x54], eax
add edi, 4
dec dword [ebp - 0x58]
jne 0x52afb0
mov ebx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x5c]
mov eax, dword [edi*4 + 0x565cf8]
xor eax, dword [ebp - 0x54]
mov dword [ebp - 0x2c], eax
cmp edx, 1
jle 0x52b036
lea ecx, [edx - 1]
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x5c]
inc edi
lea eax, [edx + 8]
add ebx, 0x10
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x6c], ebx
cmp edi, eax
jle 0x52ada0
mov esi, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x74]
lea edx, [ebx*4]
mov eax, dword [esi + edx*4 + 8]
lea ecx, [ebx + 0x14]
mov dword [esi + 0x138], eax
add ecx, ecx
mov eax, dword [esi + 8]
mov dword [esi + edx*4 + 0x138], eax
mov eax, dword [esi + edx*4 + 0xc]
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0xc]
mov dword [esi + edx*4 + 0x13c], eax
mov eax, dword [esi + edx*4 + 0x10]
mov dword [esi + 0x140], eax
mov eax, dword [esi + 0x10]
mov dword [esi + ecx*8], eax
mov eax, dword [esi + edx*4 + 0x14]
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x14]
mov dword [esi + edx*4 + 0x144], eax
cmp ebx, 1
jle 0x52b248
mov eax, ebx
lea edi, [esi + 0x14c]
shl eax, 4
add esi, 0xfffffffc
add esi, eax
dec ebx
mov edx, dword [esi - 4]
lea esi, [esi - 0x10]
mov eax, edx
lea edi, [edi + 0x10]
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax*4 + 0x5654f8]
mov eax, edx
shr eax, 8
and eax, 0xff
mov ecx, dword [ecx*4 + 0x5648f8]
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x564cf8]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x5644f8]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x5650f8]
mov dword [edi - 0x14], ecx
mov edx, dword [esi + 0x10]
mov eax, edx
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax*4 + 0x5654f8]
mov eax, edx
shr eax, 8
and eax, 0xff
mov ecx, dword [ecx*4 + 0x5648f8]
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x564cf8]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x5644f8]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x5650f8]
mov dword [edi - 0x10], ecx
mov edx, dword [esi + 0x14]
mov eax, edx
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax*4 + 0x5654f8]
mov eax, edx
shr eax, 8
and eax, 0xff
mov ecx, dword [ecx*4 + 0x5648f8]
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x564cf8]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x5644f8]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x5650f8]
mov dword [edi - 0xc], ecx
mov edx, dword [esi + 0x18]
mov eax, edx
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax*4 + 0x5654f8]
mov eax, edx
shr eax, 8
and eax, 0xff
mov ecx, dword [ecx*4 + 0x5648f8]
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x564cf8]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x5644f8]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5654f8]
xor ecx, dword [eax*4 + 0x5650f8]
mov dword [edi - 8], ecx
dec ebx
jne 0x52b0c3
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 3
xor ecx, ebp
pop esi
call fcn.004ffcef
mov esp, ebp
pop ebp
ret