Function at 0x4e0920
Capabilities:
Encode data using xor
Encrypt data using camellia

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [eax]
lea edx, [eax + 4]
mov eax, dword [edx]
mov ebx, dword [edx + 8]
push esi
mov esi, dword [ecx + 0x18]
add edx, 4
push edi
mov edi, dword [edx]
bswap eax
xor eax, dword [esi + 8]
bswap ebp
xor ebp, dword [esi + 0xc]
bswap edi
xor edi, dword [esi + 4]
bswap ebx
xor ebx, dword [esi]
cmp byte [0x719598], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jne 0x4e0966
call fcn.004e4a30
mov edx, dword [0x6e61e8]
xor eax, eax
xor ecx, ecx
and eax, dword [ecx + 0x67d800]
add ecx, edx
cmp ecx, 0x100
jb 0x4e0970
and eax, dword [0x67d8fc]
mov ecx, dword [esp + 0x14]
or ecx, eax
or ebp, eax
mov eax, dword [esi + 0x18]
xor eax, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x1c]
xor ecx, ebp
mov dword [esp + 0x28], ecx
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
movzx ecx, byte [edx + 0x67d800]
ror cl, 1
mov edx, eax
shr edx, 8
movzx ecx, cl
shl ecx, 8
rol dl, 1
movzx edx, dl
movzx edx, byte [edx + 0x67d800]
or ecx, edx
movzx edx, al
movzx edx, byte [edx + 0x67d800]
shr eax, 0x18
movzx eax, byte [eax + 0x67d800]
shl ecx, 8
or ecx, edx
shl ecx, 8
rol al, 1
movzx edx, al
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
movzx edx, dl
mov dl, byte [edx + 0x67d800]
rol dl, 1
mov byte [esp + 0x28], dl
mov edx, eax
shr edx, 8
movzx edx, dl
mov dl, byte [edx + 0x67d800]
ror dl, 1
mov byte [esp + 0x12], dl
mov dl, al
shr eax, 0x18
movzx eax, byte [eax + 0x67d800]
rol dl, 1
shl eax, 8
mov byte [esp + 0x13], dl
movzx edx, byte [esp + 0x28]
or eax, edx
movzx edx, byte [esp + 0x12]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x13]
movzx edx, byte [edx + 0x67d800]
shl eax, 8
or eax, edx
xor eax, ecx
rol ecx, 8
xor ecx, eax
ror eax, 8
xor eax, ecx
rol ecx, 0x10
xor ecx, eax
xor edi, ecx
mov ecx, dword [esi + 0x14]
rol eax, 8
xor ebx, eax
mov eax, dword [esi + 0x10]
xor ecx, edi
mov dword [esp + 0x28], ecx
xor eax, ebx
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
movzx ecx, byte [edx + 0x67d800]
ror cl, 1
mov edx, eax
shr edx, 8
movzx ecx, cl
shl ecx, 8
rol dl, 1
movzx edx, dl
movzx edx, byte [edx + 0x67d800]
or ecx, edx
movzx edx, al
movzx edx, byte [edx + 0x67d800]
shr eax, 0x18
movzx eax, byte [eax + 0x67d800]
shl ecx, 8
or ecx, edx
shl ecx, 8
rol al, 1
movzx edx, al
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
movzx edx, dl
mov dl, byte [edx + 0x67d800]
rol dl, 1
mov byte [esp + 0x28], dl
mov edx, eax
shr edx, 8
movzx edx, dl
mov dl, byte [edx + 0x67d800]
ror dl, 1
mov byte [esp + 0x13], dl
mov dl, al
shr eax, 0x18
movzx eax, byte [eax + 0x67d800]
rol dl, 1
shl eax, 8
mov byte [esp + 0x12], dl
movzx edx, byte [esp + 0x28]
or eax, edx
movzx edx, byte [esp + 0x13]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x12]
movzx edx, byte [edx + 0x67d800]
shl eax, 8
or eax, edx
xor eax, ecx
rol ecx, 8
xor ecx, eax
ror eax, 8
xor eax, ecx
rol ecx, 0x10
xor ecx, eax
xor ebp, ecx
rol eax, 8
xor dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
sub eax, 1
mov dword [esp + 0x18], eax
je 0x4e0f08
mov eax, dword [esi + 0x28]
xor eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x2c]
xor ecx, ebp
mov dword [esp + 0x28], eax
mov eax, ecx
mov edx, ecx
shr edx, 0x18
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x1c], eax
mov eax, dword [edx*4 + 0x67d900]
mov edx, dword [esp + 0x1c]
xor eax, dword [edx*4 + 0x67dd00]
mov edx, ecx
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x67e100]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x67e500]
mov ecx, dword [esp + 0x28]
mov edx, ecx
shr ecx, 0x10
shr edx, 0x18
movzx ecx, cl
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx*4 + 0x67dd00]
mov edx, dword [esp + 0x1c]
xor ecx, dword [edx*4 + 0x67e100]
mov edx, dword [esp + 0x28]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x67e500]
movzx edx, byte [esp + 0x28]
xor ecx, dword [edx*4 + 0x67d900]
xor ecx, eax
xor edi, ecx
ror eax, 8
xor eax, ecx
mov ecx, dword [esi + 0x24]
xor ecx, edi
xor ebx, eax
mov eax, dword [esi + 0x20]
xor eax, ebx
mov edx, ecx
shr edx, 0x10
mov dword [esp + 0x28], eax
mov eax, ecx
movzx edx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0x67d900]
xor eax, dword [edx*4 + 0x67dd00]
mov edx, ecx
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x67e100]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x67e500]
mov ecx, dword [esp + 0x28]
mov edx, ecx
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx*4 + 0x67dd00]
mov edx, dword [esp + 0x1c]
xor ecx, dword [edx*4 + 0x67e100]
mov edx, dword [esp + 0x28]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x67e500]
movzx edx, byte [esp + 0x28]
xor ecx, dword [edx*4 + 0x67d900]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor ebp, ecx
ror eax, 8
xor eax, ecx
mov ecx, dword [esi + 0x3c]
xor edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x38]
xor eax, edx
xor ecx, ebp
mov dword [esp + 0x28], eax
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov eax, ecx
shr eax, 0x18
mov eax, dword [eax*4 + 0x67d900]
xor eax, dword [edx*4 + 0x67dd00]
mov edx, ecx
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x67e100]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x67e500]
mov ecx, dword [esp + 0x28]
mov edx, ecx
shr edx, 0x18
shr ecx, 0x10
movzx ecx, cl
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx*4 + 0x67dd00]
mov edx, dword [esp + 0x1c]
xor ecx, dword [edx*4 + 0x67e100]
mov edx, dword [esp + 0x28]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x67e500]
movzx edx, byte [esp + 0x28]
xor ecx, dword [edx*4 + 0x67d900]
xor ecx, eax
xor edi, ecx
ror eax, 8
xor eax, ecx
mov ecx, dword [esi + 0x34]
xor ecx, edi
xor ebx, eax
mov eax, dword [esi + 0x30]
xor eax, ebx
mov dword [esp + 0x28], eax
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov eax, ecx
shr eax, 0x18
mov eax, dword [eax*4 + 0x67d900]
xor eax, dword [edx*4 + 0x67dd00]
mov edx, ecx
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x67e100]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x67e500]
mov ecx, dword [esp + 0x28]
mov edx, ecx
shr ecx, 0x10
shr edx, 0x18
movzx ecx, cl
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx*4 + 0x67dd00]
mov edx, dword [esp + 0x1c]
xor ecx, dword [edx*4 + 0x67e100]
mov edx, dword [esp + 0x28]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x67e500]
movzx edx, byte [esp + 0x28]
xor ecx, dword [edx*4 + 0x67d900]
mov edx, dword [esi + 0x4c]
xor ecx, eax
xor ebp, ecx
and edx, ebp
ror eax, 8
rol edx, 1
xor edx, ecx
xor edx, eax
mov eax, edx
mov edx, dword [esp + 0x14]
xor edx, eax
mov eax, dword [esi + 0x48]
or eax, edx
mov ecx, dword [esi + 0x40]
xor ebp, eax
mov eax, dword [esi + 0x44]
or ecx, ebx
xor edi, ecx
mov ecx, dword [esi + 0x5c]
and eax, edi
rol eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x58]
xor eax, edx
xor ecx, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edx
mov eax, ecx
shr eax, 0x10
mov edx, ecx
shr edx, 0x18
movzx eax, al
mov dword [esp + 0x1c], eax
mov eax, dword [edx*4 + 0x67d900]
mov edx, dword [esp + 0x1c]
xor eax, dword [edx*4 + 0x67dd00]
mov edx, ecx
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x67e100]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x67e500]
mov ecx, dword [esp + 0x28]
mov edx, ecx
shr ecx, 0x10
shr edx, 0x18
movzx ecx, cl
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx*4 + 0x67dd00]
mov edx, dword [esp + 0x1c]
xor ecx, dword [edx*4 + 0x67e100]
mov edx, dword [esp + 0x28]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x67e500]
movzx edx, byte [esp + 0x28]
xor ecx, dword [edx*4 + 0x67d900]
xor ecx, eax
xor edi, ecx
ror eax, 8
xor eax, ecx
xor eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x54]
xor ebx, eax
mov eax, dword [esi + 0x50]
xor ecx, edi
xor eax, ebx
mov dword [esp + 0x28], eax
mov edx, ecx
shr edx, 0x10
mov eax, ecx
movzx edx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0x67d900]
xor eax, dword [edx*4 + 0x67dd00]
mov edx, ecx
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x67e100]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x67e500]
mov ecx, dword [esp + 0x28]
mov edx, ecx
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov dword [esp + 0x20], ecx
mov ecx, dword [edx*4 + 0x67dd00]
mov edx, dword [esp + 0x20]
xor ecx, dword [edx*4 + 0x67e100]
mov edx, dword [esp + 0x28]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x67e500]
movzx edx, byte [esp + 0x28]
xor ecx, dword [edx*4 + 0x67d900]
add esi, 0x40
xor ecx, eax
xor ebp, ecx
ror eax, 8
xor eax, ecx
xor dword [esp + 0x14], eax
sub dword [esp + 0x18], 1
jne 0x4e0b54
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
xor eax, dword [esp + 0x14]
xor ecx, ebp
mov edx, ecx
shr edx, 0x10
mov dword [esp + 0x28], eax
movzx edx, dl
mov eax, ecx
shr eax, 0x18
mov eax, dword [eax*4 + 0x67d900]
xor eax, dword [edx*4 + 0x67dd00]
mov edx, ecx
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x67e100]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x67e500]
mov ecx, dword [esp + 0x28]
mov edx, ecx
shr ecx, 0x10
shr edx, 0x18
movzx ecx, cl
mov dword [esp + 0x20], ecx
mov ecx, dword [edx*4 + 0x67dd00]
mov edx, dword [esp + 0x20]
xor ecx, dword [edx*4 + 0x67e100]
mov edx, dword [esp + 0x28]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x67e500]
movzx edx, byte [esp + 0x28]
xor ecx, dword [edx*4 + 0x67d900]
xor ecx, eax
xor edi, ecx
ror eax, 8
xor eax, ecx
mov ecx, dword [esi + 0x24]
xor ecx, edi
xor ebx, eax
mov eax, dword [esi + 0x20]
xor eax, ebx
mov edx, ecx
shr edx, 0x10
mov dword [esp + 0x28], eax
mov eax, ecx
movzx edx, dl
shr eax, 0x18
mov eax, dword [eax*4 + 0x67d900]
xor eax, dword [edx*4 + 0x67dd00]
mov edx, ecx
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x67e100]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x67e500]
mov ecx, dword [esp + 0x28]
mov edx, ecx
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov dword [esp + 0x20], ecx
mov ecx, dword [edx*4 + 0x67dd00]
mov edx, dword [esp + 0x20]
xor ecx, dword [edx*4 + 0x67e100]
mov edx, dword [esp + 0x28]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x67e500]
movzx edx, byte [esp + 0x28]
xor ecx, dword [edx*4 + 0x67d900]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor ebp, ecx
ror eax, 8
xor eax, ecx
mov ecx, dword [esi + 0x3c]
xor edx, eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x14], edx
xor ecx, ebp
xor eax, edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov dword [esp + 0x28], eax
mov eax, ecx
shr eax, 0x18
mov eax, dword [eax*4 + 0x67d900]
xor eax, dword [edx*4 + 0x67dd00]
mov edx, ecx
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x67e100]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x67e500]
mov ecx, dword [esp + 0x28]
mov edx, ecx
shr edx, 0x18
shr ecx, 0x10
movzx ecx, cl
mov dword [esp + 0x20], ecx
mov ecx, dword [edx*4 + 0x67dd00]
mov edx, dword [esp + 0x20]
xor ecx, dword [edx*4 + 0x67e100]
mov edx, dword [esp + 0x28]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x67e500]
movzx edx, byte [esp + 0x28]
xor ecx, dword [edx*4 + 0x67d900]
xor ecx, eax
xor edi, ecx
ror eax, 8
xor eax, ecx
mov ecx, dword [esi + 0x34]
xor ecx, edi
xor ebx, eax
mov eax, dword [esi + 0x30]
xor eax, ebx
mov dword [esp + 0x28], ecx
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov cl, byte [edx + 0x67d800]
ror cl, 1
movzx ecx, cl
shl ecx, 8
mov edx, eax
shr edx, 8
rol dl, 1
movzx edx, dl
movzx edx, byte [edx + 0x67d800]
or ecx, edx
movzx edx, al
movzx edx, byte [edx + 0x67d800]
shl ecx, 8
or ecx, edx
shr eax, 0x18
mov al, byte [eax + 0x67d800]
shl ecx, 8
rol al, 1
movzx edx, al
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
movzx edx, dl
mov dl, byte [edx + 0x67d800]
rol dl, 1
mov byte [esp + 0x28], dl
mov edx, eax
shr edx, 8
movzx edx, dl
mov dl, byte [edx + 0x67d800]
ror dl, 1
mov byte [esp + 0x13], dl
mov dl, al
rol dl, 1
shr eax, 0x18
movzx eax, byte [eax + 0x67d800]
mov byte [esp + 0x12], dl
movzx edx, byte [esp + 0x28]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x13]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x12]
movzx edx, byte [edx + 0x67d800]
shl eax, 8
or eax, edx
xor eax, ecx
xor ebx, dword [esi + 0x40]
rol ecx, 8
xor ecx, eax
ror eax, 8
xor eax, ecx
mov edx, eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x4c]
xor eax, dword [esp + 0x28]
rol ecx, 0x10
xor eax, ecx
mov ecx, dword [esp + 0x14]
xor ebp, eax
mov eax, dword [esi + 0x48]
mov esi, dword [esi + 0x44]
rol edx, 8
xor eax, edx
xor ecx, eax
mov eax, dword [esp + 0x2c]
xor esi, edi
test eax, eax
je 0x4e11bd
mov edx, dword [eax]
jmp 0x4e11bf
xor edx, edx
bswap esi
xor esi, edx
mov edx, dword [esp + 0x30]
mov dword [edx], esi
add edx, 4
test eax, eax
je 0x4e11d9
add eax, 4
je 0x4e11d9
mov esi, dword [eax]
jmp 0x4e11db
xor esi, esi
bswap ebx
xor ebx, esi
mov dword [edx], ebx
add edx, 4
test eax, eax
je 0x4e11f1
add eax, 4
je 0x4e11f1
mov esi, dword [eax]
jmp 0x4e11f3
xor esi, esi
bswap ebp
xor ebp, esi
pop edi
pop esi
mov dword [edx], ebp
add edx, 4
pop ebp
pop ebx
test eax, eax
je 0x4e1217
add eax, 4
je 0x4e1217
mov eax, dword [eax]
bswap ecx
xor ecx, eax
mov dword [edx], ecx
add esp, 0x14
ret 0xc
xor eax, eax
bswap ecx
xor ecx, eax
mov dword [edx], ecx
add esp, 0x14
ret 0xc