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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shl eax, 6
add eax, ecx
push ebx
push esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
bswap edx
xor edx, dword [ecx + 4]
mov dword [ebp - 4], edx
bswap ebx
xor ebx, dword [ecx + 8]
bswap eax
xor eax, dword [ecx + 0xc]
mov dword [ebp + 0xc], ebx
mov ebx, dword [ecx + 0x10]
mov dword [ebp + 0x10], eax
lea eax, [ecx + 0x10]
bswap edi
xor edi, dword [ecx]
mov ecx, dword [eax + 4]
xor ebx, edi
xor ecx, edx
mov edx, ebx
mov dword [ebp - 8], ecx
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 + 8]
xor edx, dword [ecx*4 + 0x5570a0]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
xor ebx, ecx
mov ecx, dword [eax + 0xc]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], 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]
xor edx, esi
mov ecx, dword [eax + 0x14]
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp - 4]
xor edx, esi
xor ecx, edx
mov dword [ebp - 4], 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]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
xor ebx, ecx
mov ecx, dword [eax + 0x1c]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], 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 + 0x20]
xor edx, dword [ecx*4 + 0x5570a0]
xor edx, esi
mov ecx, dword [eax + 0x24]
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp - 4]
xor edx, esi
xor ecx, edx
mov dword [ebp - 4], 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 + 0x28]
xor edx, dword [ecx*4 + 0x5570a0]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
xor ebx, ecx
mov ecx, dword [eax + 0x2c]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], 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
xor esi, dword [ecx*4 + 0x5574a0]
add eax, 0x30
mov ebx, dword [ebp - 8]
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
and edx, 0xff
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 - 4]
xor edx, esi
cmp eax, dword [ebp + 8]
je 0x4ddbb7
lea ecx, [ecx]
mov ecx, dword [eax]
and ecx, edi
mov ebx, dword [ebp + 0x10]
rol ecx, 1
xor edx, ecx
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
or ecx, ebx
mov dword [ebp - 4], edx
xor esi, ecx
mov ecx, dword [eax + 4]
or ecx, edx
mov dword [ebp + 0xc], esi
xor edi, ecx
mov ecx, dword [eax + 8]
and ecx, esi
rol ecx, 1
xor ebx, ecx
mov ecx, dword [eax + 0x14]
xor ecx, edx
mov dword [ebp + 0x10], ebx
mov ebx, dword [eax + 0x10]
mov dword [ebp - 8], ecx
xor ebx, edi
mov edx, ebx
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 + 0x18]
xor edx, dword [ecx*4 + 0x5570a0]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
xor ebx, ecx
mov ecx, dword [eax + 0x1c]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], 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 + 0x20]
xor edx, dword [ecx*4 + 0x5570a0]
xor edx, esi
mov ecx, dword [eax + 0x24]
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp - 4]
xor edx, esi
xor ecx, edx
mov dword [ebp - 4], 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 + 0x28]
xor edx, dword [ecx*4 + 0x5570a0]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
xor ebx, ecx
mov ecx, dword [eax + 0x2c]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], 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
mov ebx, dword [eax + 0x30]
xor edx, dword [ecx*4 + 0x5570a0]
xor edx, esi
mov ecx, dword [eax + 0x34]
xor edi, edx
ror esi, 8
xor esi, edx
xor ebx, edi
mov edx, dword [ebp - 4]
xor edx, esi
xor ecx, edx
mov dword [ebp - 4], 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 + 0x38]
xor edx, dword [ecx*4 + 0x5570a0]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
xor esi, edx
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
xor ebx, ecx
mov ecx, dword [eax + 0x3c]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], 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 ecx, ebx
mov edx, dword [edx*4 + 0x557ca0]
add eax, 0x40
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 - 4]
xor edx, esi
cmp eax, dword [ebp + 8]
jne 0x4dd7f0
xor edi, dword [eax + 8]
xor edx, dword [eax + 0xc]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
xor ebx, dword [eax + 4]
mov eax, dword [eax]
xor eax, dword [ebp + 0xc]
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