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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov edx, ecx
push ebx
push ebp
push edi
mov edi, dword [eax]
mov ebp, dword [eax + 4]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x1c], edx
mov edx, dword [edx + 0x18]
bswap edi
bswap ebp
bswap ecx
xor ecx, dword [edx + 4]
xor edi, dword [edx + 0xc]
xor ebp, dword [edx + 8]
bswap ebx
xor ebx, dword [edx]
cmp byte [0x6ed8b5], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], ecx
jne 0x4eba9b
call fcn.0050e2b0
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [0x69e54c]
xor ecx, ecx
xor eax, eax
jmp 0x4ebab0
and ecx, dword [eax + 0x63e0f0]
add eax, esi
cmp eax, 0x100
jb 0x4ebab0
and ecx, dword [0x63e1ec]
or edi, ecx
or ebp, ecx
mov ecx, dword [edx + 0x18]
xor ecx, ebp
mov edx, dword [edx + 0x1c]
mov eax, ecx
xor edx, edi
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x63e0f0]
ror al, 1
movzx esi, al
mov eax, ecx
shr eax, 8
rol al, 1
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x63e0f0]
or esi, eax
movzx eax, cl
shr ecx, 0x18
shl esi, 8
movzx eax, byte [eax + 0x63e0f0]
or esi, eax
movzx eax, byte [ecx + 0x63e0f0]
rol al, 1
movzx eax, al
shl esi, 8
or esi, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x63e0f0]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x63e0f0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
rol dl, 1
movzx eax, byte [eax + 0x63e0f0]
ror al, 1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x63e0f0]
or ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, esi
rol esi, 8
xor esi, ecx
ror ecx, 8
xor ecx, esi
rol esi, 0x10
xor esi, ecx
rol ecx, 8
xor dword [esp + 0x28], esi
xor ebx, ecx
mov ecx, dword [eax + 0x10]
xor ecx, ebx
mov dword [esp + 0x14], ebx
mov ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov edx, dword [ebx + 0x14]
xor edx, dword [esp + 0x28]
movzx eax, byte [eax + 0x63e0f0]
ror al, 1
movzx esi, al
mov eax, ecx
shr eax, 8
shl esi, 8
rol al, 1
movzx eax, al
movzx eax, byte [eax + 0x63e0f0]
or esi, eax
movzx eax, cl
shr ecx, 0x18
shl esi, 8
movzx eax, byte [eax + 0x63e0f0]
or esi, eax
movzx eax, byte [ecx + 0x63e0f0]
rol al, 1
movzx eax, al
shl esi, 8
or esi, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x63e0f0]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x63e0f0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
rol dl, 1
movzx eax, byte [eax + 0x63e0f0]
ror al, 1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x63e0f0]
or ecx, eax
mov eax, dword [esp + 0x20]
xor ecx, esi
rol esi, 8
xor esi, ecx
ror ecx, 8
xor ecx, esi
rol esi, 0x10
mov eax, dword [eax + 0xc]
xor esi, ecx
rol ecx, 8
xor edi, esi
xor ebp, ecx
dec eax
mov dword [esp + 0x20], eax
je 0x4ebfea
mov edx, dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x28]
xor edx, edi
mov ecx, edx
mov eax, edx
shr eax, 0x10
xor ebx, ebp
movzx eax, al
shr ecx, 0x18
mov esi, dword [ecx*4 + 0x63d0f0]
mov ecx, ebx
xor esi, dword [eax*4 + 0x63d4f0]
mov eax, edx
shr eax, 8
movzx eax, al
shr ecx, 0x18
xor esi, dword [eax*4 + 0x63d8f0]
mov ecx, dword [ecx*4 + 0x63d4f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x63dcf0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x63d8f0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63dcf0]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x63d0f0]
mov eax, dword [esp + 0x14]
xor ecx, esi
xor ebx, ecx
ror esi, 8
xor esi, ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x10]
xor eax, esi
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x24]
xor edx, ebx
mov ebx, dword [ecx + 0x20]
xor ebx, eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [ecx*4 + 0x63d0f0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [eax*4 + 0x63d4f0]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x63d4f0]
xor esi, dword [eax*4 + 0x63d8f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x63dcf0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x63d8f0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63dcf0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x63d0f0]
mov eax, dword [esp + 0x10]
xor ecx, esi
ror esi, 8
xor edi, ecx
xor esi, ecx
xor ebp, esi
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x38]
xor edx, edi
xor ebx, ebp
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [ecx*4 + 0x63d0f0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [eax*4 + 0x63d4f0]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x63d4f0]
xor esi, dword [eax*4 + 0x63d8f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x63dcf0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x63d8f0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63dcf0]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x63d0f0]
mov eax, dword [esp + 0x14]
xor ecx, esi
xor ebx, ecx
ror esi, 8
xor esi, ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x10]
xor eax, esi
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x34]
xor edx, ebx
mov ebx, dword [ecx + 0x30]
xor ebx, eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [ecx*4 + 0x63d0f0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [eax*4 + 0x63d4f0]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x63d4f0]
xor esi, dword [eax*4 + 0x63d8f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x63dcf0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x63d8f0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63dcf0]
movzx eax, bl
mov ebx, dword [esp + 0x10]
xor ecx, dword [eax*4 + 0x63d0f0]
mov eax, dword [ebx + 0x4c]
xor ecx, esi
xor edi, ecx
ror esi, 8
and eax, edi
rol eax, 1
xor eax, esi
xor eax, ecx
xor ebp, eax
mov eax, dword [ebx + 0x48]
or eax, ebp
mov dword [esp + 0x18], ebp
xor edi, eax
lea ebp, [ebx + 0x40]
mov dword [esp + 0x1c], edi
mov edx, dword [ebx + 0x5c]
mov edi, dword [ebx + 0x44]
xor edx, dword [esp + 0x1c]
mov eax, dword [ebp]
or eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
xor ecx, eax
mov ebx, dword [ebx + 0x58]
mov dword [esp + 0x28], ecx
and edi, ecx
xor ebx, dword [esp + 0x18]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
rol edi, 1
mov esi, dword [ecx*4 + 0x63d0f0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [eax*4 + 0x63d4f0]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x63d4f0]
xor esi, dword [eax*4 + 0x63d8f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x63dcf0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x63d8f0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63dcf0]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x63d0f0]
mov eax, dword [esp + 0x14]
xor ecx, esi
xor ebx, ecx
ror esi, 8
xor esi, edi
mov dword [esp + 0x28], ebx
xor esi, ecx
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
xor eax, esi
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x54]
xor edx, ebx
mov ebx, dword [ecx + 0x50]
xor ebx, eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [ecx*4 + 0x63d0f0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [eax*4 + 0x63d4f0]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x63d4f0]
xor esi, dword [eax*4 + 0x63d8f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x63dcf0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x63d8f0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63dcf0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x63d0f0]
xor ecx, esi
ror esi, 8
mov ebx, ebp
xor esi, ecx
mov dword [esp + 0x10], ebx
xor dword [esp + 0x18], esi
xor edi, ecx
dec dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
jne 0x4ebc65
mov edx, dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x28]
xor edx, edi
mov ecx, edx
mov eax, edx
shr eax, 0x10
xor ebx, ebp
movzx eax, al
shr ecx, 0x18
mov esi, dword [ecx*4 + 0x63d0f0]
mov ecx, ebx
xor esi, dword [eax*4 + 0x63d4f0]
mov eax, edx
shr eax, 8
movzx eax, al
shr ecx, 0x18
xor esi, dword [eax*4 + 0x63d8f0]
mov ecx, dword [ecx*4 + 0x63d4f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x63dcf0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x63d8f0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63dcf0]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x63d0f0]
mov eax, dword [esp + 0x10]
xor ecx, esi
xor ebx, ecx
ror esi, 8
xor esi, ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0x24]
xor ecx, esi
xor edx, ebx
mov dword [esp + 0x14], ecx
mov ebx, dword [eax + 0x20]
mov eax, edx
xor ebx, ecx
shr eax, 0x10
movzx eax, al
mov ecx, edx
shr ecx, 0x18
mov esi, dword [ecx*4 + 0x63d0f0]
mov ecx, ebx
xor esi, dword [eax*4 + 0x63d4f0]
mov eax, edx
shr eax, 8
movzx eax, al
shr ecx, 0x18
xor esi, dword [eax*4 + 0x63d8f0]
mov ecx, dword [ecx*4 + 0x63d4f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x63dcf0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x63d8f0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63dcf0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x63d0f0]
mov eax, dword [esp + 0x10]
xor ecx, esi
ror esi, 8
xor edi, ecx
xor esi, ecx
xor ebp, esi
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x38]
xor edx, edi
xor ebx, ebp
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [ecx*4 + 0x63d0f0]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [eax*4 + 0x63d4f0]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x63d4f0]
xor esi, dword [eax*4 + 0x63d8f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x63dcf0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x63d8f0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63dcf0]
movzx eax, bl
mov ebx, dword [esp + 0x14]
xor ecx, dword [eax*4 + 0x63d0f0]
mov eax, dword [esp + 0x10]
xor ecx, esi
xor dword [esp + 0x28], ecx
ror esi, 8
xor esi, ecx
mov ecx, dword [eax + 0x30]
xor ebx, esi
mov edx, dword [eax + 0x34]
xor ecx, ebx
mov eax, ecx
xor edx, dword [esp + 0x28]
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x63e0f0]
ror al, 1
movzx esi, al
mov eax, ecx
shr eax, 8
rol al, 1
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x63e0f0]
or esi, eax
movzx eax, cl
shr ecx, 0x18
shl esi, 8
movzx eax, byte [eax + 0x63e0f0]
or esi, eax
movzx eax, byte [ecx + 0x63e0f0]
rol al, 1
movzx eax, al
shl esi, 8
or esi, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x63e0f0]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x63e0f0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x63e0f0]
ror al, 1
movzx eax, al
or ecx, eax
shl ecx, 8
rol dl, 1
movzx eax, dl
movzx eax, byte [eax + 0x63e0f0]
mov edx, dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x2c]
xor ecx, esi
rol esi, 8
xor esi, ecx
ror ecx, 8
xor ebx, dword [edx + 0x40]
xor ecx, esi
rol esi, 0x10
xor esi, dword [edx + 0x4c]
xor esi, ecx
rol ecx, 8
xor ecx, dword [edx + 0x48]
xor edi, esi
xor ebp, ecx
mov ecx, dword [edx + 0x44]
xor ecx, dword [esp + 0x28]
pop esi
test eax, eax
je 0x4ec264
mov edx, dword [eax]
jmp 0x4ec266
xor edx, edx
bswap ecx
xor ecx, edx
mov edx, dword [esp + 0x2c]
mov dword [edx], ecx
test eax, eax
je 0x4ec27f
add eax, 4
test eax, eax
je 0x4ec27f
mov ecx, dword [eax]
jmp 0x4ec281
xor ecx, ecx
bswap ebx
xor ebx, ecx
mov dword [edx + 4], ebx
test eax, eax
je 0x4ec297
add eax, 4
test eax, eax
je 0x4ec297
mov ecx, dword [eax]
jmp 0x4ec299
xor ecx, ecx
bswap edi
xor edi, ecx
mov dword [edx + 8], edi
test eax, eax
je 0x4ec2bd
add eax, 4
test eax, eax
je 0x4ec2bd
mov eax, dword [eax]
bswap ebp
xor ebp, eax
pop edi
mov dword [edx + 0xc], ebp
pop ebp
pop ebx
add esp, 0x14
ret 0xc
bswap ebp
xor eax, eax
xor ebp, eax
pop edi
mov dword [edx + 0xc], ebp
pop ebp
pop ebx
add esp, 0x14
ret 0xc