Function at 0x640f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.006bfd90
mov edx, dword [ebp + 8]
test edx, edx
je 0x64163a
cmp dword [ebp + 0xc], 0
je 0x64163a
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x641639
mov eax, dword [esi + 0x110]
mov dword [ebp - 8], eax
cmp eax, 0xc
je 0x640fca
cmp eax, 0xe
je 0x640fca
cmp eax, 0x10
jne 0x641639
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 5]
xor ecx, dword [esi]
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 4]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 9]
xor ecx, dword [esi + 4]
push ebx
movzx ebx, byte [edx + 8]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 0xc]
shl ebx, 8
xor ebx, eax
shl ecx, 8
movzx eax, byte [edx + 0xa]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0xb]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0xd]
xor ebx, dword [esi + 8]
xor ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
mov edx, ebx
xor ecx, eax
shr edx, 0x18
xor ecx, dword [esi + 0xc]
lea eax, [esi + 0x10]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, dword [edx*4 + 0x78ea40]
push edi
xor eax, dword [ecx*4 + 0x78ee40]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x78f240]
movzx ecx, bl
mov ebx, dword [ebp + 8]
mov edx, ebx
shr edx, 0x18
xor eax, dword [ecx*4 + 0x78f640]
mov ecx, ebx
shr ecx, 0x10
mov edi, dword [edx*4 + 0x78ea40]
movzx ecx, cl
xor edi, dword [ecx*4 + 0x78ee40]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor edi, dword [ecx*4 + 0x78f240]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
mov edx, ebx
xor edi, dword [ecx*4 + 0x78f640]
shr edx, 0x18
mov esi, dword [edx*4 + 0x78ea40]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
xor esi, dword [ecx*4 + 0x78ee40]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x78f240]
movzx ecx, bl
mov ebx, dword [ebp - 0x10]
mov edx, ebx
shr edx, 0x18
xor esi, dword [ecx*4 + 0x78f640]
mov ecx, ebx
shr ecx, 0x10
xor esi, eax
mov edx, dword [edx*4 + 0x78ea40]
xor eax, edi
movzx ecx, cl
xor edi, esi
xor edx, dword [ecx*4 + 0x78ee40]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x78f240]
movzx ecx, bl
mov ebx, edi
and ebx, 0xff0000
xor edx, dword [ecx*4 + 0x78f640]
mov ecx, edi
shr ecx, 0x10
xor edx, esi
xor ebx, ecx
xor eax, edx
mov ecx, edi
shr ebx, 8
and ecx, 0xff00
shl edi, 0x10
xor ecx, edi
xor esi, eax
mov edi, dword [ebp - 4]
shl ecx, 8
xor ebx, ecx
rol eax, 0x10
mov dword [ebp + 8], ebx
mov ecx, esi
shl ecx, 8
mov ebx, esi
shr ebx, 8
xor ebx, ecx
shl esi, 8
mov ecx, dword [ebp + 8]
and ebx, 0xff00ff
xor ebx, esi
xor ebx, eax
xor eax, ecx
xor ecx, ebx
xor edx, ebx
mov dword [ebp + 8], ecx
xor eax, edx
mov ecx, dword [edi + 4]
xor edx, dword [edi]
xor ecx, eax
xor eax, dword [edi + 8]
xor ebx, ecx
mov ecx, dword [ebp + 8]
xor ecx, dword [edi + 0xc]
add edi, 0x10
sub dword [ebp - 8], 2
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], ecx
je 0x64147b
mov edx, eax
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov ebx, dword [edx*4 + 0x78f240]
xor ebx, dword [ecx*4 + 0x78f640]
mov ecx, eax
mov edx, dword [ebp + 8]
movzx eax, al
shr ecx, 8
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x78ea40]
mov ecx, edx
xor ebx, dword [eax*4 + 0x78ee40]
mov eax, edx
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mov esi, dword [ecx*4 + 0x78f240]
xor esi, dword [eax*4 + 0x78f640]
mov eax, edx
shr eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x78ea40]
movzx eax, dl
xor esi, dword [eax*4 + 0x78ee40]
mov eax, dword [ebp - 0xc]
mov ecx, eax
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x78f240]
xor edx, dword [eax*4 + 0x78f640]
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x78ea40]
movzx eax, cl
xor edx, dword [eax*4 + 0x78ee40]
mov eax, dword [ebp - 4]
xor edx, ebx
mov ecx, eax
xor ebx, esi
shr eax, 0x10
xor esi, edx
movzx eax, al
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x78f240]
xor ecx, dword [eax*4 + 0x78f640]
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x78ea40]
mov eax, dword [ebp - 4]
movzx eax, al
xor ecx, dword [eax*4 + 0x78ee40]
mov eax, esi
xor ecx, edx
shl eax, 8
xor ebx, ecx
mov dword [ebp - 0xc], ecx
xor edx, ebx
mov dword [ebp + 8], ebx
mov ebx, esi
mov ecx, edx
shr ebx, 8
and ecx, 0xff0000
xor ebx, eax
shl esi, 8
mov eax, edx
and ebx, 0xff00ff
shr eax, 0x10
xor ebx, esi
xor ecx, eax
mov eax, edx
and eax, 0xff00
shl edx, 0x10
shr ecx, 8
xor eax, edx
mov edx, dword [ebp + 8]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, edx
rol eax, 0x10
xor eax, ecx
xor edx, ebx
xor edx, eax
xor ebx, ecx
xor eax, dword [edi]
xor ebx, dword [edi + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
xor eax, edx
xor edx, dword [edi + 8]
xor ecx, eax
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
add edi, 0x10
mov dword [ebp - 0x10], ecx
shr edx, 0x18
shr eax, 0x10
movzx ecx, al
mov dword [ebp - 4], edi
mov eax, dword [edx*4 + 0x78ea40]
mov edx, dword [ebp + 8]
xor eax, dword [ecx*4 + 0x78ee40]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x78f240]
movzx ecx, dl
mov edx, ebx
shr edx, 0x18
xor eax, dword [ecx*4 + 0x78f640]
mov ecx, ebx
mov edi, dword [edx*4 + 0x78ea40]
shr ecx, 0x10
movzx ecx, cl
xor edi, dword [ecx*4 + 0x78ee40]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor edi, dword [ecx*4 + 0x78f240]
movzx ecx, bl
mov ebx, dword [ebp - 0x10]
mov edx, ebx
shr edx, 0x18
xor edi, dword [ecx*4 + 0x78f640]
mov ecx, ebx
shr ecx, 0x10
mov esi, dword [edx*4 + 0x78ea40]
movzx ecx, cl
xor esi, dword [ecx*4 + 0x78ee40]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x78f240]
movzx ecx, bl
mov ebx, dword [ebp - 0xc]
mov edx, ebx
shr edx, 0x18
xor esi, dword [ecx*4 + 0x78f640]
mov ecx, ebx
shr ecx, 0x10
xor esi, eax
mov edx, dword [edx*4 + 0x78ea40]
xor eax, edi
movzx ecx, cl
xor edi, esi
xor edx, dword [ecx*4 + 0x78ee40]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x78f240]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x78f640]
xor edx, esi
xor eax, edx
xor esi, eax
mov ebx, edi
rol eax, 0x10
and ebx, 0xff0000
mov ecx, edi
shr ecx, 0x10
xor ebx, ecx
mov ecx, edi
and ecx, 0xff00
shr ebx, 8
shl edi, 0x10
xor ecx, edi
mov edi, dword [ebp - 4]
shl ecx, 8
xor ebx, ecx
mov ecx, esi
mov dword [ebp + 8], ebx
mov ebx, esi
shl ecx, 8
shr ebx, 8
xor ebx, ecx
shl esi, 8
mov ecx, dword [ebp + 8]
and ebx, 0xff00ff
xor ebx, esi
xor ebx, eax
xor eax, ecx
xor ecx, ebx
xor edx, ebx
mov dword [ebp + 8], ecx
xor eax, edx
mov ecx, dword [edi + 4]
xor edx, dword [edi]
xor ecx, eax
xor eax, dword [edi + 8]
xor ebx, ecx
mov ecx, dword [ebp + 8]
xor ecx, dword [edi + 0xc]
add edi, 0x10
sub dword [ebp - 8], 2
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], ecx
jne 0x6411c2
mov ebx, dword [ebp - 4]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov esi, dword [ebp + 8]
mov ecx, dword [ecx*4 + 0x78f640]
shr ecx, 8
movzx edx, cl
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x78f240]
shl ecx, 8
or edx, ecx
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx*4 + 0x78ea40]
or edx, ecx
movzx ecx, bl
shl edx, 8
movzx ecx, byte [ecx*4 + 0x78ee40]
or edx, ecx
xor edx, dword [edi]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x78f640]
shr ecx, 8
movzx ebx, cl
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x78f240]
shl ecx, 8
or ebx, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx*4 + 0x78ea40]
or ebx, ecx
movzx ecx, dl
shl ebx, 8
movzx ecx, byte [ecx*4 + 0x78ee40]
or ebx, ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [edi + 4]
mov ecx, dword [ecx*4 + 0x78f640]
shr ecx, 8
movzx edx, cl
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x78f240]
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 8
movzx eax, al
movzx ecx, cl
shl edx, 8
movzx eax, byte [eax*4 + 0x78ee40]
movzx ecx, byte [ecx*4 + 0x78ea40]
or edx, ecx
shl edx, 8
or edx, eax
mov eax, esi
xor edx, dword [edi + 8]
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x78f640]
shr eax, 8
movzx ecx, al
mov eax, esi
shr eax, 0x18
movzx eax, byte [eax*4 + 0x78f240]
shl eax, 8
or ecx, eax
mov eax, esi
shl ecx, 8
shr eax, 8
movzx eax, al
movzx eax, byte [eax*4 + 0x78ea40]
or ecx, eax
mov eax, esi
movzx eax, al
mov esi, dword [ebp - 8]
shl ecx, 8
movzx eax, byte [eax*4 + 0x78ee40]
or ecx, eax
mov eax, esi
xor ecx, dword [edi + 0xc]
mov edi, dword [ebp + 0xc]
shr eax, 0x18
mov byte [edi], al
mov eax, esi
shr eax, 0x10
mov byte [edi + 1], al
mov eax, esi
shr eax, 8
mov byte [edi + 2], al
mov eax, esi
mov byte [edi + 3], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ebx
shr eax, 8
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 8], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 9], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xa], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 7], bl
mov byte [edi + 0xb], dl
mov byte [edi + 0xe], al
mov byte [edi + 0xf], cl
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret