Function at 0x4697b9
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push edi
mov edi, ecx
cmp byte [edi + 4], 0
mov dword [esp + 0x10], edi
jne 0x4697d5
mov eax, 0x70000005
pop edi
add esp, 0x14
ret 8
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
add eax, 1
shl edx, 0x10
add eax, 1
shl ecx, 0x18
or ecx, edx
xor edx, edx
mov dh, byte [eax]
add eax, 1
push ebx
add eax, 1
add eax, 1
push ebp
push esi
movzx esi, byte [eax - 1]
or ecx, edx
movzx edx, byte [eax - 2]
or ecx, edx
movzx edx, byte [eax]
shl esi, 0x18
shl edx, 0x10
or esi, edx
add eax, 1
xor edx, edx
mov dh, byte [eax]
add eax, 1
add eax, 1
add eax, 1
xor ebx, ebx
mov bh, byte [eax + 1]
add eax, 1
or esi, edx
movzx edx, byte [eax - 3]
or esi, edx
xor esi, dword [edi + 0x3c]
movzx edx, byte [eax - 2]
mov dword [esp + 0x28], esi
movzx esi, byte [eax - 1]
shl esi, 0x10
shl edx, 0x18
or edx, esi
movzx esi, byte [eax + 1]
or edx, ebx
add eax, 1
or edx, esi
movzx esi, byte [eax + 1]
add eax, 1
movzx ebx, byte [eax + 1]
add eax, 1
xor ecx, dword [edi + 0x38]
xor edx, dword [edi + 0x40]
shl ebx, 0x10
shl esi, 0x18
or esi, ebx
xor ebx, ebx
mov bh, byte [eax + 1]
add eax, 1
mov bl, byte [eax + 1]
or ebx, esi
xor ebx, dword [edi + 0x44]
mov esi, dword [edi + 0x3d8]
cmp esi, 1
mov eax, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], esi
jle 0x4699ec
add edi, 0x60
add esi, 0xffffffff
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov edi, edx
sar edi, 0x10
and edi, 0xff
movzx esi, ah
mov esi, dword [esi*4 + 0x4a6b70]
xor esi, dword [edi*4 + 0x4a6770]
mov edi, dword [esp + 0x28]
sar edi, 0x18
and edi, 0xff
xor esi, dword [edi*4 + 0x4a6370]
mov edi, ecx
and edi, 0xff
xor esi, dword [edi*4 + 0x4a6f70]
mov edi, dword [esp + 0x10]
xor esi, dword [edi - 4]
movzx ebp, byte [esp + 0x29]
mov ebx, edx
sar ebx, 0x18
and ebx, 0xff
mov edi, eax
sar edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4a6770]
xor edi, dword [ebx*4 + 0x4a6370]
movzx ebx, ch
xor edi, dword [ebx*4 + 0x4a6b70]
mov ebx, dword [esp + 0x28]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4a6f70]
mov ebx, dword [esp + 0x10]
xor edi, dword [ebx]
mov ebx, eax
sar ebx, 0x18
and ebx, 0xff
mov dword [esp + 0x18], ebp
mov ebp, dword [ebx*4 + 0x4a6370]
mov ebx, dword [esp + 0x18]
xor ebp, dword [ebx*4 + 0x4a6b70]
mov ebx, ecx
sar ebx, 0x10
and ebx, 0xff
xor ebp, dword [ebx*4 + 0x4a6770]
mov ebx, edx
and ebx, 0xff
xor ebp, dword [ebx*4 + 0x4a6f70]
mov ebx, dword [esp + 0x10]
xor ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x28]
movzx edx, dh
mov edx, dword [edx*4 + 0x4a6b70]
sar ebx, 0x10
and ebx, 0xff
xor edx, dword [ebx*4 + 0x4a6770]
mov ebx, dword [esp + 0x10]
sar ecx, 0x18
and ecx, 0xff
xor edx, dword [ecx*4 + 0x4a6370]
and eax, 0xff
xor edx, dword [eax*4 + 0x4a6f70]
add ebx, 0x20
xor edx, dword [ebx - 0x28]
sub dword [esp + 0x14], 1
mov ecx, edx
mov dword [esp + 0x28], esi
mov edx, edi
mov eax, ebp
mov dword [esp + 0x10], ebx
jne 0x4698aa
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov ebx, ecx
sar ebx, 0x18
and ebx, 0xff
mov dword [esp + 0x20], ecx
shl esi, 5
lea edi, [esi + edi + 0x38]
mov esi, dword [edi]
mov ecx, esi
sar ecx, 0x18
xor cl, byte [ebx + 0x4a6170]
mov ebx, dword [esp + 0x28]
sar ebx, 0x10
and ebx, 0xff
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x2c]
mov byte [esi], cl
mov ecx, dword [esp + 0x10]
sar ecx, 0x10
xor cl, byte [ebx + 0x4a6170]
movzx ebx, dh
mov byte [esi + 1], cl
mov ecx, dword [esp + 0x10]
sar ecx, 8
xor cl, byte [ebx + 0x4a6170]
mov ebx, dword [esp + 0x28]
mov byte [esi + 2], cl
sar ebx, 0x18
and ebx, 0xff
and eax, 0xff
mov al, byte [eax + 0x4a6170]
xor al, byte [esp + 0x10]
mov dword [esp + 0x2c], edx
mov byte [esi + 3], al
mov eax, dword [edi + 4]
mov ecx, eax
sar ecx, 0x18
xor cl, byte [ebx + 0x4a6170]
mov ebx, edx
sar ebx, 0x10
and ebx, 0xff
mov byte [esi + 4], cl
mov ecx, eax
sar ecx, 0x10
xor cl, byte [ebx + 0x4a6170]
movzx ebx, byte [esp + 0x15]
mov byte [esi + 5], cl
mov ecx, eax
sar ecx, 8
xor cl, byte [ebx + 0x4a6170]
mov byte [esi + 6], cl
mov ecx, dword [esp + 0x20]
mov ebx, ecx
and ebx, 0xff
movzx ebx, byte [ebx + 0x4a6170]
xor bl, al
mov byte [esi + 7], bl
mov eax, dword [edi + 8]
mov ebx, edx
sar ebx, 0x18
and ebx, 0xff
mov edx, eax
sar edx, 0x18
xor dl, byte [ebx + 0x4a6170]
mov ebx, dword [esp + 0x14]
mov byte [esi + 8], dl
sar ebx, 0x10
and ebx, 0xff
mov edx, eax
sar edx, 0x10
xor dl, byte [ebx + 0x4a6170]
movzx ebx, ch
mov byte [esi + 9], dl
mov edx, eax
sar edx, 8
xor dl, byte [ebx + 0x4a6170]
mov ebx, dword [esp + 0x28]
and ebx, 0xff
mov byte [esi + 0xa], dl
movzx ebx, byte [ebx + 0x4a6170]
xor bl, al
mov byte [esi + 0xb], bl
mov edi, dword [edi + 0xc]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
sar ebp, 0x18
mov eax, edi
sar eax, 0x18
and ebp, 0xff
xor al, byte [ebp + 0x4a6170]
sar ecx, 0x10
mov byte [esi + 0xc], al
mov eax, edi
mov ebx, eax
sar ebx, 0x10
and ecx, 0xff
xor bl, byte [ecx + 0x4a6170]
movzx ecx, byte [esp + 0x29]
mov byte [esi + 0xd], bl
mov ebx, eax
sar ebx, 8
xor bl, byte [ecx + 0x4a6170]
and edx, 0xff
mov byte [esi + 0xe], bl
mov dl, byte [edx + 0x4a6170]
xor dl, al
mov byte [esi + 0xf], dl
pop esi
pop ebp
pop ebx
mov dword [esp + 4], edi
mov eax, 0x6fffffff
pop edi
add esp, 0x14
ret 8