Function at 0x4f007d
Capabilities:
Encrypt data using camellia

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shl eax, 6
add eax, edx
mov dword [ebp + 8], eax
movzx eax, byte [ecx + 1]
movzx ebx, byte [ecx]
shl ebx, 8
xor ebx, eax
movzx eax, byte [ecx + 2]
movzx esi, byte [ecx + 4]
shl ebx, 8
xor ebx, eax
shl esi, 8
movzx eax, byte [ecx + 3]
shl ebx, 8
xor ebx, eax
movzx eax, byte [ecx + 5]
xor esi, eax
xor ebx, dword [edx]
movzx eax, byte [ecx + 6]
shl esi, 8
xor esi, eax
mov dword [ebp - 0xc], ebx
movzx eax, byte [ecx + 7]
shl esi, 8
xor esi, eax
movzx eax, byte [ecx + 8]
shl eax, 8
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx + 9]
xor dword [ebp + 0x10], eax
movzx eax, byte [ecx + 0xa]
shl dword [ebp + 0x10], 8
xor dword [ebp + 0x10], eax
movzx eax, byte [ecx + 0xb]
shl dword [ebp + 0x10], 8
xor dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
xor eax, dword [edx + 8]
xor esi, dword [edx + 4]
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx + 0xc]
shl eax, 8
mov dword [ebp + 0xc], eax
movzx eax, byte [ecx + 0xd]
xor dword [ebp + 0xc], eax
movzx eax, byte [ecx + 0xe]
shl dword [ebp + 0xc], 8
xor dword [ebp + 0xc], eax
movzx eax, byte [ecx + 0xf]
shl dword [ebp + 0xc], 8
mov ecx, dword [ebp + 0xc]
xor ecx, eax
mov dword [ebp - 4], esi
xor ecx, dword [edx + 0xc]
lea edi, [edx + 0x10]
mov dword [ebp + 0xc], ecx
mov edx, dword [edi]
xor edx, ebx
mov dword [ebp - 8], edi
mov ebx, dword [edi + 4]
mov eax, edx
shr eax, 0x10
xor ebx, esi
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5fbb48]
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edi + 8]
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
mov ebx, dword [ebp + 0x10]
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
shl eax, 0x18
xor ecx, esi
xor ebx, ecx
shr esi, 8
add eax, esi
mov dword [ebp + 0x10], ebx
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
mov edi, dword [ebp - 0xc]
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5fbb48]
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
shl eax, 0x18
xor ecx, esi
shr esi, 8
xor edi, ecx
add eax, esi
xor eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
xor edx, edi
mov eax, edx
xor ebx, ecx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5fbb48]
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
mov ebx, dword [ebp + 0x10]
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
shl eax, 0x18
xor ecx, esi
xor ebx, ecx
shr esi, 8
add eax, esi
mov dword [ebp + 0x10], ebx
xor eax, ecx
mov ecx, dword [ebp + 0xc]
xor ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov edx, dword [eax + 0x18]
xor edx, ebx
mov ebx, dword [eax + 0x1c]
xor ebx, ecx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5fbb48]
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
xor ecx, esi
shl eax, 0x18
xor edi, ecx
shr esi, 8
add eax, esi
mov dword [ebp - 0xc], edi
xor eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [eax + 0x20]
xor edx, edi
mov edi, eax
mov eax, edx
shr eax, 0x10
mov ebx, dword [edi + 0x24]
xor ebx, ecx
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5fbb48]
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
mov edx, dword [edi + 0x28]
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
mov ebx, dword [ebp + 0x10]
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
shl eax, 0x18
xor ecx, esi
xor ebx, ecx
shr esi, 8
add eax, esi
mov dword [ebp + 0x10], ebx
xor eax, ecx
xor edx, ebx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [edi + 0x2c]
xor ecx, eax
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 + 0x5fbb48]
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
xor ecx, esi
shl eax, 0x18
shr esi, 8
add eax, esi
mov esi, edi
jmp 0x4f0830
mov ecx, dword [esi]
and ecx, ebx
mov eax, ecx
shr eax, 0x1f
lea eax, [eax + ecx*2]
mov ecx, dword [esi + 8]
xor edx, eax
mov eax, dword [esi + 0xc]
or eax, dword [ebp + 0xc]
xor dword [ebp + 0x10], eax
and ecx, dword [ebp + 0x10]
mov eax, dword [esi + 4]
add esi, 0x10
or eax, edx
mov dword [ebp - 4], edx
xor ebx, eax
mov dword [ebp - 8], esi
mov eax, ecx
mov dword [ebp - 0xc], ebx
mov edx, dword [esi]
shr eax, 0x1f
xor edx, ebx
mov ebx, dword [esi + 4]
xor ebx, dword [ebp - 4]
lea eax, [eax + ecx*2]
xor dword [ebp + 0xc], eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5fbb48]
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
mov ebx, dword [ebp + 0x10]
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
shl eax, 0x18
xor ecx, esi
xor ebx, ecx
shr esi, 8
add eax, esi
mov dword [ebp + 0x10], ebx
xor eax, ecx
mov ecx, dword [ebp + 0xc]
xor ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov edx, dword [eax + 8]
xor edx, ebx
mov ebx, dword [eax + 0xc]
mov eax, edx
xor ebx, ecx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5fbb48]
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edi, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
shl eax, 0x18
xor ecx, esi
xor edi, ecx
shr esi, 8
add eax, esi
xor eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
xor edx, edi
xor ebx, ecx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5fbb48]
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
mov ebx, dword [ebp + 0x10]
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
xor ecx, esi
shl eax, 0x18
xor ebx, ecx
shr esi, 8
add eax, esi
mov dword [ebp + 0x10], ebx
xor eax, ecx
mov ecx, dword [ebp + 0xc]
xor ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov edx, dword [eax + 0x18]
xor edx, ebx
mov ebx, dword [eax + 0x1c]
mov eax, edx
xor ebx, ecx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5fbb48]
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
shl eax, 0x18
xor ecx, esi
xor edi, ecx
shr esi, 8
add eax, esi
mov dword [ebp - 0xc], edi
xor eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [eax + 0x20]
xor edx, edi
mov edi, eax
mov eax, edx
shr eax, 0x10
mov ebx, dword [edi + 0x24]
xor ebx, ecx
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x5fbb48]
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
mov edx, dword [edi + 0x28]
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
mov ebx, dword [ebp + 0x10]
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
xor ecx, esi
shl eax, 0x18
xor ebx, ecx
shr esi, 8
add eax, esi
mov dword [ebp + 0x10], ebx
xor eax, ecx
xor edx, ebx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [edi + 0x2c]
xor ecx, eax
xor ebx, ecx
mov dword [ebp + 0xc], ecx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
mov esi, dword [ecx*4 + 0x5fbb48]
shr eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x5fbf48]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x5fb348]
movzx eax, dl
xor esi, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5fbf48]
xor ecx, dword [eax*4 + 0x5fb748]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x5fbb48]
movzx eax, bl
xor ecx, dword [eax*4 + 0x5fb348]
mov eax, esi
xor ecx, esi
shl eax, 0x18
shr esi, 8
add eax, esi
mov esi, edi
mov ebx, dword [ebp - 0xc]
xor eax, ecx
mov edx, dword [ebp - 4]
add esi, 0x30
xor ebx, ecx
xor edx, eax
cmp esi, dword [ebp + 8]
jne 0x4f049d
xor ebx, dword [esi + 8]
xor edx, dword [esi + 0xc]
mov ecx, dword [ebp + 0xc]
xor ecx, dword [esi + 4]
mov eax, dword [ebp + 0x10]
xor eax, dword [esi]
mov dword [ebp + 0x10], eax
shr eax, 0x18
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov byte [ecx + 1], al
mov eax, dword [ebp + 0x10]
shr eax, 8
mov byte [ecx + 2], al
mov eax, dword [ebp + 0x10]
mov byte [ecx + 3], al
mov eax, edi
shr eax, 0x18
mov byte [ecx + 4], al
mov eax, edi
shr eax, 0x10
mov byte [ecx + 5], al
mov eax, edi
shr eax, 8
mov byte [ecx + 6], al
mov eax, edi
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
pop edi
shr eax, 8
pop esi
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], dl
pop ebx
leave
ret