Function at 0x10038320
Capabilities:
Encrypt data using camellia

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
shl eax, 6
add eax, esi
mov ebx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
mov edx, eax
mov ebp, dword [esi + 4]
ror edx, 8
and edx, 0xff00ff00
push edi
rol eax, 8
and eax, 0xff00ff
or edx, eax
mov eax, dword [ecx + 4]
xor edx, ebx
mov ebx, eax
ror ebx, 8
and ebx, 0xff00ff00
mov dword [esp + 0x24], edx
rol eax, 8
and eax, 0xff00ff
or ebx, eax
mov eax, dword [ecx + 8]
xor ebx, ebp
mov ebp, eax
ror ebp, 8
and ebp, 0xff00ff00
mov dword [esp + 0x1c], ebx
rol eax, 8
and eax, 0xff00ff
or ebp, eax
mov eax, dword [esi + 8]
xor ebp, eax
mov eax, dword [ecx + 0xc]
mov ecx, eax
ror ecx, 8
and ecx, 0xff00ff00
rol eax, 8
and eax, 0xff00ff
or ecx, eax
mov eax, dword [esi + 0xc]
add esi, 0x10
xor ecx, eax
mov eax, dword [esi]
xor eax, edx
mov edx, dword [esi + 4]
xor edx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
xor edx, edx
mov dl, byte [esp + 0x12]
xor ebx, ebx
mov bl, ah
mov edi, dword [edx*4 + 0x10099d88]
mov edx, dword [ebx*4 + 0x1009a188]
xor edi, edx
mov edx, eax
shr edx, 0x18
and eax, 0xff
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [eax*4 + 0x10099988]
xor edi, ebx
xor eax, eax
xor edi, edx
mov al, byte [esp + 0x22]
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [eax*4 + 0x1009a188]
mov bl, dh
xor eax, dword [ebx*4 + 0x10099988]
mov ebx, edx
shr ebx, 0x18
and edx, 0xff
xor eax, dword [ebx*4 + 0x10099d88]
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [esi + 0xc]
xor eax, ebx
xor ebx, ebx
xor eax, edi
xor ebp, eax
ror edi, 8
xor edi, eax
mov eax, dword [esi + 8]
xor ecx, edi
xor eax, ebp
xor edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
xor edx, edx
mov dl, byte [esp + 0x12]
mov bl, ah
mov edi, dword [edx*4 + 0x10099d88]
mov edx, dword [ebx*4 + 0x1009a188]
xor edi, edx
mov edx, eax
shr edx, 0x18
and eax, 0xff
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [eax*4 + 0x10099988]
xor edi, ebx
xor eax, eax
xor edi, edx
mov al, byte [esp + 0x22]
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [eax*4 + 0x1009a188]
mov bl, dh
xor eax, dword [ebx*4 + 0x10099988]
mov ebx, edx
shr ebx, 0x18
and edx, 0xff
xor eax, dword [ebx*4 + 0x10099d88]
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [esp + 0x24]
xor eax, ebx
mov ebx, dword [esp + 0x1c]
xor eax, edi
xor edx, eax
ror edi, 8
xor edi, eax
mov dword [esp + 0x24], edx
xor ebx, edi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x1c], ebx
xor eax, edx
mov edx, dword [esi + 0x14]
xor edx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
xor edx, edx
mov dl, byte [esp + 0x12]
xor ebx, ebx
mov bl, ah
mov edi, dword [edx*4 + 0x10099d88]
mov edx, dword [ebx*4 + 0x1009a188]
xor edi, edx
mov edx, eax
shr edx, 0x18
and eax, 0xff
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [eax*4 + 0x10099988]
xor edi, ebx
xor eax, eax
xor edi, edx
mov al, byte [esp + 0x22]
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [eax*4 + 0x1009a188]
mov bl, dh
xor eax, dword [ebx*4 + 0x10099988]
mov ebx, edx
shr ebx, 0x18
and edx, 0xff
xor eax, dword [ebx*4 + 0x10099d88]
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [esi + 0x1c]
xor eax, ebx
xor ebx, ebx
xor eax, edi
xor ebp, eax
ror edi, 8
xor edi, eax
mov eax, dword [esi + 0x18]
xor ecx, edi
xor eax, ebp
xor edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
xor edx, edx
mov dl, byte [esp + 0x12]
mov bl, ah
mov edi, dword [edx*4 + 0x10099d88]
mov edx, dword [ebx*4 + 0x1009a188]
xor edi, edx
mov edx, eax
shr edx, 0x18
and eax, 0xff
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [eax*4 + 0x10099988]
xor edi, ebx
xor eax, eax
xor edi, edx
mov al, byte [esp + 0x22]
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [eax*4 + 0x1009a188]
mov bl, dh
xor eax, dword [ebx*4 + 0x10099988]
mov ebx, edx
shr ebx, 0x18
and edx, 0xff
xor eax, dword [ebx*4 + 0x10099d88]
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [esp + 0x24]
xor eax, ebx
mov ebx, dword [esp + 0x1c]
xor eax, edi
xor edx, eax
ror edi, 8
xor edi, eax
mov dword [esp + 0x24], edx
xor ebx, edi
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x20]
add esi, 0x30
xor eax, edx
mov edx, dword [esi - 0xc]
xor edx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
xor edx, edx
mov dl, byte [esp + 0x12]
xor ebx, ebx
mov bl, ah
mov edi, dword [edx*4 + 0x10099d88]
mov edx, dword [ebx*4 + 0x1009a188]
xor edi, edx
mov edx, eax
shr edx, 0x18
and eax, 0xff
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [eax*4 + 0x10099988]
xor edi, ebx
xor eax, eax
xor edi, edx
mov al, byte [esp + 0x22]
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [eax*4 + 0x1009a188]
mov bl, dh
xor eax, dword [ebx*4 + 0x10099988]
mov ebx, edx
shr ebx, 0x18
and edx, 0xff
xor eax, dword [ebx*4 + 0x10099d88]
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [esi - 4]
xor eax, ebx
xor ebx, ebx
xor eax, edi
xor ebp, eax
ror edi, 8
xor edi, eax
mov eax, dword [esi - 8]
xor ecx, edi
xor eax, ebp
xor edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edx
xor edx, edx
mov dl, byte [esp + 0x12]
mov bl, ah
mov edi, dword [edx*4 + 0x10099d88]
mov edx, dword [ebx*4 + 0x1009a188]
xor edi, edx
mov edx, eax
shr edx, 0x18
and eax, 0xff
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [eax*4 + 0x10099988]
xor edi, ebx
xor eax, eax
xor edi, edx
mov al, byte [esp + 0x22]
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov eax, dword [eax*4 + 0x1009a188]
mov bl, dh
xor eax, dword [ebx*4 + 0x10099988]
mov ebx, edx
shr ebx, 0x18
and edx, 0xff
xor eax, dword [ebx*4 + 0x10099d88]
mov ebx, dword [edx*4 + 0x10099588]
mov edx, dword [esp + 0x24]
xor eax, ebx
mov ebx, dword [esp + 0x1c]
xor eax, edi
xor edx, eax
ror edi, 8
xor edi, eax
mov eax, dword [esp + 0x14]
xor ebx, edi
cmp esi, eax
mov eax, dword [esi]
je 0x10038751
and eax, edx
rol eax, 1
xor ebx, eax
mov eax, dword [esi + 0xc]
or eax, ecx
mov dword [esp + 0x1c], ebx
xor ebp, eax
mov eax, dword [esi + 4]
or eax, ebx
xor edx, eax
mov eax, dword [esi + 8]
and eax, ebp
mov dword [esp + 0x24], edx
rol eax, 1
jmp 0x100383b4
mov edi, dword [esi + 4]
xor ebp, eax
mov eax, dword [esi + 8]
xor ecx, edi
mov edi, dword [esi + 0xc]
mov esi, ebp
xor edx, eax
mov eax, dword [esp + 0x28]
xor ebx, edi
pop edi
ror esi, 8
and esi, 0xff00ff00
rol ebp, 8
and ebp, 0xff00ff
or esi, ebp
mov dword [eax], esi
mov esi, ecx
ror esi, 8
and esi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or esi, ecx
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
mov dword [eax + 4], esi
rol edx, 8
and edx, 0xff00ff
pop esi
or ecx, edx
mov edx, ebx
ror edx, 8
and edx, 0xff00ff00
pop ebp
rol ebx, 8
and ebx, 0xff00ff
mov dword [eax + 8], ecx
or edx, ebx
pop ebx
mov dword [eax + 0xc], edx
add esp, 8
ret