Function at 0x5d60d6
Capabilities:
Encrypt data using camellia

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
push esi
movzx ebx, byte [ecx]
movzx edx, byte [ecx + 4]
push edi
mov edi, dword [ebp + 8]
shl edx, 8
shl edi, 6
add edi, eax
shl ebx, 8
add eax, 0x10
mov dword [ebp - 8], eax
movzx eax, byte [ecx + 1]
xor ebx, eax
movzx eax, byte [ecx + 2]
shl ebx, 8
xor ebx, eax
movzx eax, byte [ecx + 3]
shl ebx, 8
xor ebx, eax
movzx eax, byte [ecx + 5]
xor edx, eax
xor ebx, dword [edi]
movzx eax, byte [ecx + 6]
shl edx, 8
xor edx, eax
mov dword [ebp - 4], ebx
movzx eax, byte [ecx + 7]
shl edx, 8
xor edx, eax
movzx eax, byte [ecx + 9]
xor edx, dword [edi + 4]
mov dword [ebp + 0xc], edx
movzx edx, byte [ecx + 8]
shl edx, 8
xor edx, eax
movzx eax, byte [ecx + 0xa]
shl edx, 8
xor edx, eax
movzx eax, byte [ecx + 0xb]
shl edx, 8
xor edx, eax
movzx eax, byte [ecx + 0xd]
xor edx, dword [edi + 8]
mov dword [ebp + 8], edx
movzx edx, byte [ecx + 0xc]
shl edx, 8
xor edx, eax
movzx eax, byte [ecx + 0xe]
shl edx, 8
xor edx, eax
movzx eax, byte [ecx + 0xf]
shl edx, 8
xor edx, eax
xor edx, dword [edi + 0xc]
sub edi, 0x30
mov dword [ebp + 0x10], edx
jmp 0x5d61c2
mov ecx, dword [edi - 8]
and ecx, ebx
mov eax, ecx
shr eax, 0x1f
lea eax, [eax + ecx*2]
mov ecx, dword [edi - 0x10]
xor edx, eax
mov eax, dword [edi - 0xc]
or eax, dword [ebp + 0x10]
xor dword [ebp + 8], eax
mov eax, dword [edi - 4]
and ecx, dword [ebp + 8]
or eax, edx
xor ebx, eax
mov dword [ebp + 0xc], edx
mov eax, ecx
mov dword [ebp - 4], ebx
shr eax, 0x1f
lea eax, [eax + ecx*2]
xor dword [ebp + 0x10], eax
sub edi, 0x40
mov edx, dword [edi + 0x28]
xor edx, ebx
mov ebx, dword [edi + 0x2c]
xor ebx, dword [ebp + 0xc]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x849e20]
xor esi, dword [eax*4 + 0x84a220]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x849620]
movzx eax, dl
mov edx, dword [edi + 0x20]
xor esi, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x84a220]
xor ecx, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x849e20]
movzx eax, bl
mov ebx, dword [ebp + 8]
xor ecx, dword [eax*4 + 0x849620]
mov eax, esi
shl eax, 0x18
xor ecx, esi
xor ebx, ecx
shr esi, 8
add eax, esi
mov dword [ebp + 8], ebx
xor eax, ecx
xor edx, ebx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [edi + 0x24]
xor ecx, eax
xor ebx, ecx
mov dword [ebp + 0x10], ecx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x849e20]
xor esi, dword [eax*4 + 0x84a220]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x849620]
movzx eax, dl
mov edx, dword [edi + 0x18]
xor esi, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x84a220]
xor ecx, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x849e20]
movzx eax, bl
mov ebx, dword [ebp - 4]
xor ecx, dword [eax*4 + 0x849620]
mov eax, esi
xor ecx, esi
shl eax, 0x18
shr esi, 8
xor ebx, ecx
add eax, esi
xor eax, ecx
mov ecx, dword [ebp + 0xc]
xor edx, ebx
xor ecx, eax
mov dword [ebp - 4], ebx
mov ebx, dword [edi + 0x1c]
mov eax, edx
shr eax, 0x10
xor ebx, ecx
mov dword [ebp + 0xc], ecx
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x849e20]
xor esi, dword [eax*4 + 0x84a220]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x849620]
movzx eax, dl
mov edx, dword [edi + 0x10]
xor esi, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x84a220]
xor ecx, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x849e20]
movzx eax, bl
mov ebx, dword [ebp + 8]
xor ecx, dword [eax*4 + 0x849620]
mov eax, esi
shl eax, 0x18
xor ecx, esi
xor ebx, ecx
shr esi, 8
add eax, esi
mov dword [ebp + 8], ebx
xor eax, ecx
xor edx, ebx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [edi + 0x14]
xor ecx, eax
xor ebx, ecx
mov dword [ebp + 0x10], ecx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x849e20]
xor esi, dword [eax*4 + 0x84a220]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x849620]
movzx eax, dl
xor esi, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x84a220]
xor ecx, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x849e20]
movzx eax, bl
mov ebx, dword [ebp - 4]
xor ecx, dword [eax*4 + 0x849620]
mov eax, esi
xor ecx, esi
xor ebx, ecx
shr esi, 8
mov dword [ebp - 4], ebx
shl eax, 0x18
add eax, esi
mov edx, dword [edi + 8]
xor eax, ecx
xor edx, ebx
mov ecx, dword [ebp + 0xc]
xor ecx, eax
mov ebx, dword [edi + 0xc]
xor ebx, ecx
mov dword [ebp + 0xc], ecx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x849e20]
xor esi, dword [eax*4 + 0x84a220]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x849620]
movzx eax, dl
mov edx, dword [edi]
xor esi, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x84a220]
xor ecx, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x849e20]
movzx eax, bl
mov ebx, dword [ebp + 8]
xor ecx, dword [eax*4 + 0x849620]
mov eax, esi
shl eax, 0x18
xor ecx, esi
xor ebx, ecx
shr esi, 8
add eax, esi
mov dword [ebp + 8], ebx
xor eax, ecx
xor edx, ebx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [edi + 4]
xor ecx, eax
xor ebx, ecx
mov dword [ebp + 0x10], ecx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x849e20]
xor esi, dword [eax*4 + 0x84a220]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x849620]
movzx eax, dl
xor esi, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x84a220]
xor ecx, dword [eax*4 + 0x849a20]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x849e20]
movzx eax, bl
xor ecx, dword [eax*4 + 0x849620]
mov eax, esi
xor ecx, esi
shr esi, 8
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
xor ebx, ecx
shl eax, 0x18
add eax, esi
xor eax, ecx
xor edx, eax
cmp edi, dword [ebp - 8]
jne 0x5d6189
xor ebx, dword [edi - 8]
xor edx, dword [edi - 4]
mov ecx, dword [ebp + 0x10]
xor ecx, dword [edi - 0xc]
mov eax, dword [ebp + 8]
xor eax, dword [edi - 0x10]
mov dword [ebp + 8], eax
shr eax, 0x18
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
pop edi
mov byte [ecx], al
mov eax, dword [ebp + 8]
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, dword [ebp + 8]
shr eax, 8
mov byte [ecx + 2], al
mov eax, dword [ebp + 8]
mov byte [ecx + 3], al
mov eax, esi
shr eax, 0x18
mov byte [ecx + 4], al
mov eax, esi
shr eax, 0x10
mov byte [ecx + 5], al
mov eax, esi
shr eax, 8
mov byte [ecx + 6], al
mov eax, esi
mov byte [ecx + 7], al
mov eax, ebx
shr eax, 0x18
mov byte [ecx + 8], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 9], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 0xa], al
mov eax, edx
shr eax, 0x18
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0xd], al
mov eax, edx
shr eax, 8
pop esi
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], dl
pop ebx
leave
ret