Function at 0x10064bd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
cmp dword [esp + 0x28], 0
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov ebx, eax
mov edi, ecx
mov esi, edx
je 0x10064e1f
movzx edx, byte [ebp]
movzx eax, byte [ebp + 1]
inc ebp
movzx ecx, byte [ebp + 1]
inc ebp
shl eax, 0x10
inc ebp
shl edx, 0x18
or edx, eax
movzx eax, byte [ebp]
shl ecx, 8
or edx, ecx
inc ebp
movzx ecx, byte [ebp + 1]
or edx, eax
movzx eax, byte [ebp]
inc ebp
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [ebp + 1]
inc ebp
shl ecx, 8
inc ebp
or eax, ecx
movzx ecx, byte [ebp]
or eax, ecx
sub ebp, 7
add ebx, 0xfffffff8
mov dword [esp + 0x38], eax
js 0x10064d0a
lea eax, [ebx + 8]
shr eax, 3
mov dword [esp + 0x1c], eax
neg eax
lea eax, [ebx + eax*8]
mov dword [esp + 0x18], eax
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
movzx ebx, byte [esi + 1]
inc esi
shl ecx, 0x18
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [esi + 1]
inc esi
shl ebx, 8
or ecx, ebx
movzx ebx, byte [esi + 1]
inc esi
or ecx, ebx
xor ecx, dword [esp + 0x38]
xor eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0x24]
inc esi
mov dword [esp + 0x28], ecx
call fcn.10064250
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, eax
shr ebx, 0x18
mov byte [edi], bl
inc edi
mov ebx, eax
shr ebx, 0x10
mov byte [edi], bl
mov ebx, eax
inc edi
inc edi
shr ebx, 8
mov byte [edi - 1], bl
mov byte [edi], al
mov edx, eax
inc edi
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
inc edi
mov eax, ecx
shr eax, 0x10
mov byte [edi], al
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
inc edi
mov byte [edi], cl
inc edi
sub dword [esp + 0x1c], 1
mov dword [esp + 0x38], ecx
jne 0x10064c54
mov ebx, dword [esp + 0x18]
mov eax, ecx
cmp ebx, 0xfffffff8
je 0x10064ddb
lea esi, [esi + ebx + 8]
add ebx, 7
xor ecx, ecx
mov dword [esp + 0x38], 0
cmp ebx, 7
ja case.default.0x10064d29
jmp dword [ebx*4 + 0x10065074]
movzx ecx, byte [esi - 1]
dec esi
mov dword [esp + 0x38], ecx
movzx ecx, byte [esi - 1]
dec esi
shl ecx, 8
or dword [esp + 0x38], ecx
movzx ecx, byte [esi - 1]
dec esi
shl ecx, 0x10
or dword [esp + 0x38], ecx
movzx ecx, byte [esi - 1]
dec esi
shl ecx, 0x18
or dword [esp + 0x38], ecx
movzx ecx, byte [esi - 1]
dec esi
movzx ebx, byte [esi - 1]
dec esi
shl ebx, 8
or ecx, ebx
movzx ebx, byte [esi - 1]
dec esi
shl ebx, 0x10
or ecx, ebx
movzx esi, byte [esi - 1]
shl esi, 0x18
or ecx, esi
xor ecx, edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x38]
xor ecx, eax
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0x24]
mov dword [esp + 0x28], ecx
call fcn.10064250
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, edx
shr ecx, 0x18
mov byte [edi], cl
inc edi
mov ecx, edx
shr ecx, 0x10
mov byte [edi], cl
inc edi
mov ecx, edx
shr ecx, 8
mov byte [edi], cl
inc edi
mov byte [edi], dl
mov ecx, eax
inc edi
mov ebx, ecx
shr ebx, 0x18
mov byte [edi], bl
inc edi
mov ebx, ecx
shr ebx, 0x10
mov byte [edi], bl
inc edi
mov ebx, ecx
shr ebx, 8
mov byte [edi], bl
mov byte [edi + 1], cl
mov ecx, edx
shr ecx, 0x18
mov byte [ebp], cl
inc ebp
mov ecx, edx
shr ecx, 0x10
mov byte [ebp], cl
inc ebp
mov ecx, edx
shr ecx, 8
mov byte [ebp], cl
mov byte [ebp + 1], dl
inc ebp
inc ebp
mov edx, eax
shr edx, 0x18
mov byte [ebp], dl
inc ebp
mov ecx, eax
shr ecx, 0x10
mov byte [ebp], cl
inc ebp
mov edx, eax
pop edi
shr edx, 8
mov byte [ebp], dl
pop esi
mov byte [ebp + 1], al
pop ebp
pop ebx
add esp, 0x1c
ret
movzx eax, byte [ebp]
movzx ecx, byte [ebp + 1]
inc ebp
movzx edx, byte [ebp + 1]
inc ebp
shl ecx, 0x10
inc ebp
shl edx, 8
shl eax, 0x18
or eax, ecx
movzx ecx, byte [ebp]
or eax, edx
or eax, ecx
movzx ecx, byte [ebp + 1]
inc ebp
movzx edx, byte [ebp + 1]
inc ebp
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [ebp + 1]
inc ebp
shl edx, 8
or ecx, edx
movzx edx, byte [ebp + 1]
inc ebp
or ecx, edx
lea edx, [ebx - 8]
sub ebp, 7
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
test edx, edx
jl 0x10064f5d
lea eax, [edx + 8]
shr eax, 3
mov dword [esp + 0x20], eax
neg eax
lea eax, [edx + eax*8]
mov dword [esp + 0x18], eax
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 8
or eax, edx
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [esi + 1]
inc esi
shl edx, 8
or ecx, edx
movzx edx, byte [esi + 1]
inc esi
or ecx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0x24]
mov dword [esp + 0x38], ecx
inc esi
mov dword [esp + 0x28], ecx
call fcn.10064710
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
xor ecx, dword [esp + 0x28]
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
inc edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
mov byte [edi + 1], al
inc edi
inc edi
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
mov edx, dword [esp + 0x38]
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
inc edi
mov byte [edi], cl
mov ecx, dword [esp + 0x1c]
inc edi
sub dword [esp + 0x20], 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jne 0x10064e91
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 0x18]
cmp edx, 0xfffffff8
je 0x1006502f
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
inc esi
or eax, edx
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [esi + 1]
inc esi
movzx esi, byte [esi + 1]
shl edx, 8
or edx, esi
or ecx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0x24]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], ecx
call fcn.10064710
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, dword [esp + 0x24]
xor ecx, dword [esp + 0x28]
lea edi, [edi + edx + 8]
add edx, 7
cmp edx, 7
ja case.default.0x10064fe6
jmp dword [edx*4 + 0x10065094]
dec edi
mov byte [edi], cl
dec edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
dec edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
dec edi
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov byte [edi], al
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
shr eax, 0x18
mov byte [edi - 1], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov edx, eax
shr edx, 0x18
mov byte [ebp], dl
inc ebp
mov edx, eax
shr edx, 0x10
mov byte [ebp], dl
inc ebp
mov edx, eax
shr edx, 8
mov byte [ebp], dl
mov byte [ebp + 1], al
inc ebp
inc ebp
mov eax, ecx
shr eax, 0x18
mov byte [ebp], al
inc ebp
mov edx, ecx
shr edx, 0x10
mov byte [ebp], dl
inc ebp
mov eax, ecx
pop edi
shr eax, 8
mov byte [ebp], al
pop esi
mov byte [ebp + 1], cl
pop ebp
pop ebx
add esp, 0x1c
ret