Function at 0x599950
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]
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 dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x659250]
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
mov ebx, dword [eax + 8]
xor edx, dword [ecx*4 + 0x658650]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
mov dword [ebp + 0xc], ecx
xor ebx, ecx
mov ecx, dword [eax + 0xc]
xor esi, edx
mov edx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x659250]
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
mov ebx, dword [eax + 0x10]
xor edx, dword [ecx*4 + 0x658650]
mov ecx, dword [eax + 0x14]
xor edx, esi
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 ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x659250]
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x658650]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
xor ebx, ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [eax + 0x1c]
xor esi, edx
mov edx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x659250]
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x658650]
mov ecx, dword [eax + 0x24]
xor edx, esi
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 ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x659250]
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
mov ebx, dword [eax + 0x28]
xor edx, dword [ecx*4 + 0x658650]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
xor ebx, ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [eax + 0x2c]
xor esi, edx
mov edx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
xor esi, dword [ecx*4 + 0x658a50]
add eax, 0x30
mov ebx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x659250]
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x658650]
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 0x59a064
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 ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x659250]
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
mov ebx, dword [eax + 0x18]
xor edx, dword [ecx*4 + 0x658650]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
xor ebx, ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [eax + 0x1c]
xor esi, edx
mov edx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x659250]
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
mov ebx, dword [eax + 0x20]
xor edx, dword [ecx*4 + 0x658650]
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 ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x659250]
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
mov ebx, dword [eax + 0x28]
xor edx, dword [ecx*4 + 0x658650]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
xor ebx, ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [eax + 0x2c]
xor esi, edx
mov edx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov edx, dword [edx*4 + 0x659250]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
mov ebx, dword [eax + 0x30]
xor edx, dword [ecx*4 + 0x658650]
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 ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x659250]
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
mov ebx, dword [eax + 0x38]
xor edx, dword [ecx*4 + 0x658650]
mov ecx, dword [ebp + 0xc]
xor edx, esi
xor ecx, edx
ror esi, 8
xor ebx, ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [eax + 0x3c]
xor esi, edx
mov edx, dword [ebp + 0x10]
xor edx, esi
xor ecx, edx
mov dword [ebp + 0x10], edx
mov dword [ebp - 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov esi, dword [edx*4 + 0x658e50]
xor esi, dword [ecx*4 + 0x659250]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x658650]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor esi, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
mov edx, dword [edx*4 + 0x659250]
add eax, 0x40
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x658a50]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x658e50]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x658650]
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 0x599ce5
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