Function at 0x100387e0
Capabilities:
Encrypt data using camellia

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push ebx
mov ecx, dword [esp + 0x14]
push ebp
push esi
mov esi, dword [esp + 0x18]
shl esi, 6
add esi, eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
mov edx, eax
mov ebx, dword [esi]
ror edx, 8
and edx, 0xff00ff00
mov ebp, dword [esi + 4]
rol eax, 8
and eax, 0xff00ff
push edi
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]
sub esi, 0x30
xor ecx, eax
mov eax, dword [esi + 0x28]
xor eax, edx
mov edx, dword [esi + 0x2c]
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 + 0x24]
xor eax, ebx
xor ebx, ebx
xor eax, edi
xor ebp, eax
ror edi, 8
xor edi, eax
mov eax, dword [esi + 0x20]
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 + 0x18]
mov dword [esp + 0x1c], ebx
xor eax, edx
mov edx, dword [esi + 0x1c]
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 + 0x14]
xor eax, ebx
xor ebx, ebx
xor eax, edi
xor ebp, eax
ror edi, 8
xor edi, eax
mov eax, dword [esi + 0x10]
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 + 8]
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]
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
je 0x10038c14
mov eax, dword [esi - 8]
sub esi, 0x10
and eax, edx
rol eax, 1
xor ebx, eax
mov eax, dword [esi + 4]
or eax, ecx
mov dword [esp + 0x1c], ebx
xor ebp, eax
mov eax, dword [esi + 0xc]
or eax, ebx
xor edx, eax
mov eax, dword [esi]
and eax, ebp
mov dword [esp + 0x24], edx
rol eax, 1
jmp 0x10038877
mov eax, dword [esi - 0x10]
mov edi, dword [esi - 0xc]
sub esi, 0x10
xor ebp, eax
xor ecx, edi
mov eax, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov esi, ebp
xor edx, eax
mov eax, dword [esp + 0x28]
xor ebx, edi
ror esi, 8
and esi, 0xff00ff00
pop edi
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