Function at 0x4dc070
Capabilities:
Encode data using xor
Encrypt data using camellia

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
shl eax, 6
add eax, ecx
add ecx, 0x10
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
bswap ecx
xor ecx, dword [eax + 0xc]
bswap edx
xor edx, dword [eax + 4]
mov dword [ebp + 8], ecx
mov ecx, dword [eax - 4]
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
bswap ebx
xor ebx, dword [eax + 8]
bswap edi
xor edi, dword [eax]
sub eax, 0x30
mov dword [ebp + 0x10], ebx
mov ebx, dword [eax + 0x28]
xor ebx, edi
mov edx, ebx
mov ecx, ebx
shr ecx, 8
shr edx, 0x10
and ecx, 0xff
and edx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x5570a0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 8]
xor ebx, ecx
mov ecx, dword [eax + 0x24]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x5570a0]
xor edx, esi
mov ecx, dword [eax + 0x1c]
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x5570a0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 8]
xor ebx, ecx
mov ecx, dword [eax + 0x14]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x5570a0]
xor edx, esi
mov ecx, dword [eax + 0xc]
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
mov ebx, dword [eax]
xor edx, dword [ecx*4 + 0x5570a0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 8]
xor ebx, ecx
mov ecx, dword [eax + 4]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x5570a0]
xor edx, esi
ror esi, 8
xor edi, edx
xor esi, edx
mov edx, dword [ebp + 0xc]
xor edx, esi
cmp eax, dword [ebp - 4]
je 0x4dc817
lea esp, [esp]
mov ecx, dword [eax - 8]
and ecx, edi
mov ebx, dword [ebp + 8]
rol ecx, 1
xor edx, ecx
mov esi, dword [ebp + 0x10]
mov ecx, dword [eax - 0xc]
or ecx, ebx
mov dword [ebp + 0xc], edx
xor esi, ecx
mov ecx, dword [eax - 4]
or ecx, edx
mov dword [ebp + 0x10], esi
xor edi, ecx
mov ecx, dword [eax - 0x10]
and ecx, esi
sub eax, 0x40
rol ecx, 1
xor ebx, ecx
mov dword [ebp + 8], ebx
mov ebx, dword [eax + 0x28]
mov ecx, dword [eax + 0x2c]
xor ebx, edi
xor ecx, edx
mov edx, ebx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
shr edx, 0x10
and edx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x5570a0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 8]
xor ebx, ecx
mov ecx, dword [eax + 0x24]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
xor esi, dword [ecx*4 + 0x5574a0]
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x5570a0]
xor edx, esi
mov ecx, dword [eax + 0x1c]
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x5570a0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 8]
xor ebx, ecx
mov ecx, dword [eax + 0x14]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
xor esi, dword [ecx*4 + 0x5574a0]
shr edx, 0x10
and edx, 0xff
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x5570a0]
xor edx, esi
mov ecx, dword [eax + 0xc]
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0xc], edx
mov dword [ebp - 8], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
xor esi, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
mov ebx, dword [eax]
xor edx, dword [ecx*4 + 0x5570a0]
mov ecx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 8]
xor ebx, ecx
mov ecx, dword [eax + 4]
xor edx, esi
xor ecx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 8], ecx
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
and edx, 0xff
and ecx, 0xff
mov esi, dword [edx*4 + 0x5578a0]
xor esi, dword [ecx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x5570a0]
movzx ecx, bl
mov ebx, dword [ebp - 8]
mov edx, ebx
shr edx, 0x10
xor esi, dword [ecx*4 + 0x5574a0]
and edx, 0xff
mov edx, dword [edx*4 + 0x557ca0]
mov ecx, ebx
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5574a0]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x5578a0]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x5570a0]
xor edx, esi
ror esi, 8
xor edi, edx
xor esi, edx
mov edx, dword [ebp + 0xc]
xor edx, esi
cmp eax, dword [ebp - 4]
jne 0x4dc450
xor edi, dword [eax - 8]
xor edx, dword [eax - 4]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
xor ebx, dword [eax - 0xc]
mov eax, dword [eax - 0x10]
xor eax, dword [ebp + 0x10]
bswap edi
mov dword [ecx + 8], edi
pop edi
bswap ebx
bswap eax
bswap edx
pop esi
mov dword [ecx + 4], ebx
mov dword [ecx], eax
mov dword [ecx + 0xc], edx
pop ebx
mov esp, ebp
pop ebp
ret