Function at 0x57bdc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
test eax, eax
sete al
test edx, edx
sete dl
or al, dl
jne 0x57c424
test ecx, ecx
je 0x57c424
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax + 0x110]
mov eax, ebx
mov dword [esp + 0xc], ebx
and eax, 0xfffffffd
cmp eax, 0xc
je 0x57be0f
cmp ebx, 0x10
jne 0x57c424
mov eax, dword [ebp + 0x10]
movzx edx, byte [ecx + 3]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
xor edx, dword [eax]
movzx eax, byte [ecx]
movzx esi, byte [ecx + 8]
shl eax, 0x18
xor edx, eax
movzx eax, byte [ecx + 1]
shl esi, 0x18
shl eax, 0x10
xor edx, eax
movzx eax, byte [ecx + 2]
shl eax, 8
xor edx, eax
movzx eax, byte [ecx + 7]
xor eax, dword [ebx + 4]
movzx ebx, byte [ecx + 4]
shl ebx, 0x18
xor eax, ebx
movzx ebx, byte [ecx + 5]
shl ebx, 0x10
xor eax, ebx
movzx ebx, byte [ecx + 6]
shl ebx, 8
xor eax, ebx
movzx ebx, byte [ecx + 0xb]
xor ebx, dword [edi + 8]
xor ebx, esi
movzx esi, byte [ecx + 9]
shl esi, 0x10
xor ebx, esi
movzx esi, byte [ecx + 0xa]
shl esi, 8
xor ebx, esi
movzx esi, byte [ecx + 0xf]
xor esi, dword [edi + 0xc]
mov dword [esp + 0x1c], ebx
movzx ebx, byte [ecx + 0xc]
shl ebx, 0x18
xor esi, ebx
movzx ebx, byte [ecx + 0xd]
movzx ecx, byte [ecx + 0xe]
shl ebx, 0x10
shl ecx, 8
xor ebx, esi
movzx esi, dl
mov edi, ebx
movzx ebx, dh
xor edi, ecx
mov ecx, edx
shr edx, 0x10
shr ecx, 0x18
movzx edx, dl
mov ecx, dword [ecx*4 + 0x6af580]
xor ecx, dword [esi*4 + 0x6ae980]
xor ecx, dword [edx*4 + 0x6af180]
xor ecx, dword [ebx*4 + 0x6aed80]
mov edx, eax
movzx ebx, al
mov dword [esp + 0x18], ecx
movzx ecx, ah
shr eax, 0x10
shr edx, 0x18
movzx eax, al
mov edx, dword [edx*4 + 0x6af580]
xor edx, dword [ebx*4 + 0x6ae980]
xor edx, dword [eax*4 + 0x6af180]
mov esi, dword [ecx*4 + 0x6aed80]
mov ebx, dword [esp + 0x1c]
xor esi, edx
mov eax, ebx
movzx edx, bh
movzx ecx, bl
shr ebx, 0x10
shr eax, 0x18
mov eax, dword [eax*4 + 0x6af580]
xor eax, dword [ecx*4 + 0x6ae980]
movzx ecx, bl
mov ebx, edi
xor eax, dword [ecx*4 + 0x6af180]
xor eax, dword [edx*4 + 0x6aed80]
mov edx, edi
movzx ecx, bh
shr edi, 0x10
shr edx, 0x18
movzx ebx, bl
mov edx, dword [edx*4 + 0x6af580]
xor edx, dword [ebx*4 + 0x6ae980]
mov ebx, edi
movzx edi, bl
mov ebx, esi
xor edx, dword [edi*4 + 0x6af180]
xor edx, dword [ecx*4 + 0x6aed80]
xor ebx, eax
mov ecx, dword [esp + 0x18]
xor eax, edx
mov edi, ebx
xor edx, ebx
bswap edx
xor ecx, ebx
mov ebx, dword [ebp + 0x10]
xor eax, ecx
xor edi, eax
rol eax, 0x10
mov esi, edi
shr edi, 8
shl esi, 8
and edi, 0xff00ff
and esi, 0xff00ff00
or esi, edi
mov edi, ebx
xor esi, eax
xor ecx, esi
xor eax, ecx
xor eax, edx
xor ecx, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x14]
xor ebx, esi
xor esi, dword [edi + 0x1c]
xor esi, edx
xor ebx, eax
xor eax, dword [edi + 0x18]
mov dword [esp + 0x18], esi
lea esi, [edi + 0x20]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x1c], esi
sub edi, 2
mov dword [esp + 8], esi
mov dword [esp + 0x10], edi
nop
mov edx, ecx
movzx esi, ch
movzx edi, cl
shr ecx, 0x10
shr edx, 0x18
movzx ecx, cl
mov edx, dword [edx*4 + 0x6aed80]
xor edx, dword [edi*4 + 0x6af180]
mov edi, dword [esi*4 + 0x6af580]
xor edx, dword [ecx*4 + 0x6ae980]
movzx esi, bl
mov ecx, ebx
shr ecx, 0x18
xor edi, edx
movzx edx, bh
shr ebx, 0x10
mov ecx, dword [ecx*4 + 0x6aed80]
movzx ebx, bl
xor ecx, dword [esi*4 + 0x6af180]
movzx esi, al
xor ecx, dword [ebx*4 + 0x6ae980]
movzx ebx, ah
xor ecx, dword [edx*4 + 0x6af580]
mov edx, eax
shr eax, 0x10
shr edx, 0x18
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
movzx eax, al
mov edx, dword [edx*4 + 0x6aed80]
xor edx, dword [esi*4 + 0x6af180]
xor edx, dword [eax*4 + 0x6ae980]
mov eax, dword [ebx*4 + 0x6af580]
movzx esi, cl
movzx ebx, ch
xor eax, edx
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x6aed80]
xor edx, dword [esi*4 + 0x6af180]
mov esi, ecx
shr esi, 0x10
mov ecx, esi
movzx esi, cl
mov ecx, dword [esp + 0x14]
xor edx, dword [esi*4 + 0x6ae980]
mov esi, dword [ebx*4 + 0x6af580]
xor ecx, eax
xor esi, edx
xor edi, ecx
xor eax, esi
xor esi, ecx
mov edx, edi
mov ebx, esi
xor eax, edi
shr esi, 8
shl ebx, 8
xor ecx, eax
and esi, 0xff00ff
rol edx, 0x10
and ebx, 0xff00ff00
mov edi, ecx
or ebx, esi
mov esi, ecx
bswap edi
shr esi, 8
shl ecx, 8
and edi, 0xff0000ff
xor edi, eax
and ecx, 0xff0000
and esi, 0xff00
xor eax, ebx
xor ecx, edi
mov edi, dword [esp + 0x1c]
xor esi, ecx
mov ecx, dword [edi + 4]
xor ebx, dword [edi + 0xc]
xor edx, esi
xor eax, edx
xor edx, dword [edi]
xor ecx, esi
xor esi, ebx
mov ebx, edx
xor ecx, eax
mov dword [esp + 0x18], esi
xor eax, dword [edi + 8]
movzx esi, dh
movzx edi, dl
shr edx, 0x10
shr ebx, 0x18
movzx edx, dl
mov ebx, dword [ebx*4 + 0x6af580]
xor ebx, dword [edi*4 + 0x6ae980]
xor ebx, dword [edx*4 + 0x6af180]
xor ebx, dword [esi*4 + 0x6aed80]
movzx edx, ch
movzx esi, cl
mov edi, ebx
mov ebx, ecx
shr ecx, 0x10
shr ebx, 0x18
movzx ecx, cl
mov ebx, dword [ebx*4 + 0x6af580]
xor ebx, dword [esi*4 + 0x6ae980]
movzx esi, al
xor ebx, dword [ecx*4 + 0x6af180]
movzx ecx, ah
xor ebx, dword [edx*4 + 0x6aed80]
mov edx, eax
shr eax, 0x10
shr edx, 0x18
movzx eax, al
mov edx, dword [edx*4 + 0x6af580]
xor edx, dword [esi*4 + 0x6ae980]
xor edx, dword [eax*4 + 0x6af180]
mov eax, dword [ecx*4 + 0x6aed80]
mov ecx, dword [esp + 0x18]
xor eax, edx
movzx esi, ch
mov edx, ecx
shr edx, 0x18
mov dword [esp + 0x18], esi
movzx esi, cl
xor ebx, eax
mov edx, dword [edx*4 + 0x6af580]
xor edx, dword [esi*4 + 0x6ae980]
mov esi, ecx
shr esi, 0x10
mov ecx, esi
movzx esi, cl
mov ecx, edi
xor edx, dword [esi*4 + 0x6af180]
mov esi, dword [esp + 0x18]
xor ecx, ebx
xor edx, dword [esi*4 + 0x6aed80]
mov esi, ebx
xor eax, edx
xor edx, ebx
xor eax, ecx
bswap edx
xor esi, eax
rol eax, 0x10
mov edi, esi
shl esi, 8
shr edi, 8
and esi, 0xff00ff00
and edi, 0xff00ff
or esi, edi
mov edi, dword [esp + 0x1c]
xor esi, eax
xor eax, edx
mov ebx, dword [edi + 0x14]
xor ecx, esi
xor edx, dword [edi + 0x1c]
add edi, 0x20
xor eax, ecx
xor edx, esi
xor ecx, dword [edi - 0x10]
xor ebx, esi
mov dword [esp + 0x18], edx
xor ebx, eax
xor eax, dword [edi - 8]
sub dword [esp + 0x10], 2
mov dword [esp + 0x1c], edi
jne 0x57bfd0
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 8]
sub edx, 4
shr edx, 1
add edx, 1
shl edx, 5
lea edi, [esi + edx]
mov edx, ecx
shr edx, 0x18
mov esi, dword [edx*4 + 0x6aed80]
movzx edx, cl
movzx edx, byte [edx*4 + 0x6af180]
shl esi, 0x18
or esi, edx
movzx edx, ch
shr ecx, 0x10
mov edx, dword [edx*4 + 0x6af580]
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x6ae980]
shl edx, 8
shl ecx, 8
movzx edx, dx
or edx, esi
and ecx, 0xff0000
mov esi, dword [edi]
or edx, ecx
xor esi, edx
mov edx, ebx
shr edx, 0x18
mov ecx, dword [edx*4 + 0x6aed80]
movzx edx, bl
movzx edx, byte [edx*4 + 0x6af180]
shl ecx, 0x18
or ecx, edx
movzx edx, bh
shr ebx, 0x10
mov edx, dword [edx*4 + 0x6af580]
movzx ebx, bl
shl edx, 8
movzx edx, dx
or edx, ecx
mov ecx, dword [ebx*4 + 0x6ae980]
mov ebx, dword [edi + 4]
shl ecx, 8
and ecx, 0xff0000
or edx, ecx
xor ebx, edx
mov edx, eax
shr edx, 0x18
mov ecx, dword [edx*4 + 0x6aed80]
movzx edx, al
movzx edx, byte [edx*4 + 0x6af180]
shl ecx, 0x18
or ecx, edx
movzx edx, ah
shr eax, 0x10
mov edx, dword [edx*4 + 0x6af580]
movzx eax, al
mov eax, dword [eax*4 + 0x6ae980]
shl edx, 8
movzx edx, dx
shl eax, 8
or edx, ecx
mov ecx, dword [esp + 0x18]
and eax, 0xff0000
or edx, eax
xor edx, dword [edi + 8]
mov eax, ecx
mov dword [esp + 0x1c], edx
movzx edx, cl
shr eax, 0x18
movzx edx, byte [edx*4 + 0x6af180]
mov eax, dword [eax*4 + 0x6aed80]
shl eax, 0x18
or eax, edx
movzx edx, ch
mov edx, dword [edx*4 + 0x6af580]
shl edx, 8
movzx edx, dx
or edx, eax
mov eax, ecx
mov ecx, esi
shr eax, 0x10
shr ecx, 0x10
movzx eax, al
mov dword [esp + 0x18], ecx
mov eax, dword [eax*4 + 0x6ae980]
shl eax, 8
and eax, 0xff0000
or edx, eax
mov eax, ebx
xor edx, dword [edi + 0xc]
mov edi, dword [esp + 0x1c]
shr eax, 0x10
mov ecx, edx
mov dword [esp + 0x14], eax
shr ecx, 0x10
mov eax, esi
shr edi, 0x10
mov dword [esp + 0xc], ecx
movzx eax, al
mov ecx, esi
mov dword [esp + 0x10], edi
shl eax, 8
movzx edi, ch
movzx ecx, byte [esp + 0x18]
or eax, edi
shl eax, 8
or eax, ecx
movzx ecx, bl
shld eax, esi, 8
shl ecx, 8
movzx esi, bh
or ecx, esi
movzx esi, byte [esp + 0x14]
movd xmm0, eax
mov eax, dword [esp + 0x1c]
shl ecx, 8
or ecx, esi
movzx esi, ah
shld ecx, ebx, 8
movzx ebx, al
shl ebx, 8
movd xmm2, ecx
or ebx, esi
movzx esi, byte [esp + 0x10]
punpckldq xmm0, xmm2
shl ebx, 8
or ebx, esi
movzx esi, dh
shld ebx, eax, 8
movzx eax, dl
shl eax, 8
movd xmm1, ebx
or eax, esi
movzx esi, byte [esp + 0xc]
shl eax, 8
or eax, esi
shld eax, edx, 8
movd xmm3, eax
mov eax, dword [ebp + 0xc]
punpckldq xmm1, xmm3
punpcklqdq xmm0, xmm1
movups xmmword [eax], xmm0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret