Function at 0x5f2e50
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 esi
mov ebp, dword [eax]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
push edi
mov edi, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [edx + 0x18]
bswap ebp
bswap edi
bswap ecx
xor ecx, dword [edx + 4]
xor ebp, dword [edx + 0xc]
xor edi, dword [edx + 8]
bswap ebx
xor ebx, dword [edx]
cmp byte [0x7d142c], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ecx
jne 0x5f2e9c
call fcn.005fd9f0
mov edx, dword [esp + 0x10]
mov esi, dword [0x71dd18]
xor eax, eax
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
and ecx, dword [eax + 0x69e8f0]
add eax, esi
cmp eax, 0x100
jb 0x5f2eb0
and ecx, dword [0x69e9ec]
or ebp, ecx
or edi, ecx
mov ecx, dword [edx + 0x18]
xor ecx, edi
mov edx, dword [edx + 0x1c]
mov eax, ecx
xor edx, ebp
shr eax, 0x10
movzx eax, al
movzx eax, byte [eax + 0x69e8f0]
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 + 0x69e8f0]
or esi, eax
movzx eax, cl
shr ecx, 0x18
shl esi, 8
movzx eax, byte [eax + 0x69e8f0]
or esi, eax
movzx eax, byte [ecx + 0x69e8f0]
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 + 0x69e8f0]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x69e8f0]
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 + 0x69e8f0]
ror al, 1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x69e8f0]
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 + 0x69e8f0]
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 + 0x69e8f0]
or esi, eax
movzx eax, cl
shr ecx, 0x18
shl esi, 8
movzx eax, byte [eax + 0x69e8f0]
or esi, eax
movzx eax, byte [ecx + 0x69e8f0]
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 + 0x69e8f0]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x69e8f0]
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 + 0x69e8f0]
ror al, 1
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x69e8f0]
or ecx, eax
mov eax, dword [esp + 0x1c]
xor ecx, esi
rol esi, 8
xor esi, ecx
ror ecx, 8
xor ecx, esi
rol esi, 0x10
mov eax, dword [eax + 8]
xor esi, ecx
rol ecx, 8
xor ebp, esi
xor edi, ecx
sub eax, 1
mov dword [esp + 0x20], eax
je 0x5f33ed
mov edx, dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x28]
xor edx, ebp
mov eax, edx
xor ebx, edi
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x69edf0]
xor esi, dword [eax*4 + 0x69f1f0]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x69e9f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x69f1f0]
xor ecx, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x69edf0]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x69e9f0]
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 eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x69edf0]
xor esi, dword [eax*4 + 0x69f1f0]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x69e9f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x69f1f0]
xor ecx, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x69edf0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x69e9f0]
mov eax, dword [esp + 0x10]
xor ecx, esi
ror esi, 8
xor ebp, ecx
xor esi, ecx
xor edi, esi
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x38]
xor edx, ebp
xor ebx, edi
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x69edf0]
xor esi, dword [eax*4 + 0x69f1f0]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x69e9f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x69f1f0]
xor ecx, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x69edf0]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x69e9f0]
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 eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x69edf0]
xor esi, dword [eax*4 + 0x69f1f0]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x69e9f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x69f1f0]
xor ecx, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x69edf0]
movzx eax, bl
mov ebx, dword [esp + 0x10]
xor ecx, dword [eax*4 + 0x69e9f0]
mov eax, dword [ebx + 0x4c]
xor ecx, esi
xor ebp, ecx
ror esi, 8
and eax, ebp
rol eax, 1
xor eax, esi
xor eax, ecx
xor edi, eax
mov eax, dword [ebx + 0x48]
or eax, edi
mov dword [esp + 0x1c], edi
xor ebp, eax
mov dword [esp + 0x18], ebp
lea ebp, [ebx + 0x40]
mov edx, dword [ebx + 0x5c]
xor edx, dword [esp + 0x18]
mov eax, dword [ebp]
or eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
xor ecx, eax
mov edi, dword [ebx + 0x44]
and edi, ecx
mov dword [esp + 0x28], ecx
mov ebx, dword [ebx + 0x58]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
xor ebx, dword [esp + 0x1c]
mov esi, dword [ecx*4 + 0x69edf0]
rol edi, 1
xor esi, dword [eax*4 + 0x69f1f0]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x69e9f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x69f1f0]
xor ecx, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x69edf0]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x69e9f0]
mov eax, dword [esp + 0x14]
xor ecx, esi
xor ebx, ecx
ror esi, 8
xor edi, esi
mov dword [esp + 0x28], ebx
xor edi, ecx
mov ecx, dword [esp + 0x10]
xor eax, edi
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 0x54]
xor edx, ebx
mov ebx, dword [ecx + 0x50]
xor ebx, eax
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x69edf0]
xor esi, dword [eax*4 + 0x69f1f0]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x69e9f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x69f1f0]
xor ecx, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x69edf0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x69e9f0]
xor ecx, esi
xor dword [esp + 0x18], ecx
mov edi, dword [esp + 0x1c]
mov ebx, ebp
mov ebp, dword [esp + 0x18]
ror esi, 8
xor esi, ecx
mov dword [esp + 0x10], ebx
xor edi, esi
sub dword [esp + 0x20], 1
jne 0x5f3067
mov edx, dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x28]
xor edx, ebp
mov eax, edx
xor ebx, edi
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x69edf0]
xor esi, dword [eax*4 + 0x69f1f0]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x69e9f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x69f1f0]
xor ecx, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x69edf0]
movzx eax, bl
mov ebx, dword [esp + 0x28]
xor ecx, dword [eax*4 + 0x69e9f0]
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
shr eax, 0x10
xor ebx, ecx
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x69edf0]
xor esi, dword [eax*4 + 0x69f1f0]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x69e9f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x69f1f0]
xor ecx, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x69edf0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x69e9f0]
mov eax, dword [esp + 0x10]
xor ecx, esi
ror esi, 8
xor ebp, ecx
xor esi, ecx
xor edi, esi
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x38]
xor edx, ebp
xor ebx, edi
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x69edf0]
xor esi, dword [eax*4 + 0x69f1f0]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x69e9f0]
movzx eax, dl
xor esi, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x69f1f0]
xor ecx, dword [eax*4 + 0x69f5f0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x69edf0]
movzx eax, bl
mov ebx, dword [esp + 0x14]
xor ecx, dword [eax*4 + 0x69e9f0]
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 + 0x69e8f0]
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 + 0x69e8f0]
or esi, eax
movzx eax, cl
shr ecx, 0x18
shl esi, 8
movzx eax, byte [eax + 0x69e8f0]
or esi, eax
movzx eax, byte [ecx + 0x69e8f0]
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 + 0x69e8f0]
rol al, 1
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x69e8f0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x69e8f0]
ror al, 1
movzx eax, al
or ecx, eax
shl ecx, 8
rol dl, 1
movzx eax, dl
movzx eax, byte [eax + 0x69e8f0]
mov edx, dword [esp + 0x2c]
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, dword [eax + 0x4c]
xor ebx, dword [eax + 0x40]
xor esi, ecx
rol ecx, 8
xor ebp, esi
xor ecx, dword [eax + 0x48]
mov esi, dword [esp + 0x30]
xor edi, ecx
mov ecx, dword [eax + 0x44]
xor ecx, dword [esp + 0x28]
bswap ecx
bswap ebx
test edx, edx
je 0x5f36a6
mov eax, dword [edx]
xor eax, ecx
lea ecx, [edx + 4]
mov dword [esi], eax
lea edx, [esi + 8]
test ecx, ecx
je 0x5f36ab
mov eax, dword [ecx]
xor eax, ebx
mov dword [esi + 4], eax
mov eax, edx
bswap ebp
add ecx, 4
je 0x5f36b2
mov eax, dword [ecx]
xor eax, ebp
mov dword [edx], eax
bswap edi
add ecx, 4
je 0x5f36b6
xor edi, dword [ecx]
mov dword [edx + 4], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
mov dword [esi], ecx
lea edx, [esi + 8]
mov dword [esi + 4], ebx
mov eax, edx
bswap ebp
mov dword [eax], ebp
bswap edi
mov dword [edx + 4], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc