Function at 0x10069320
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0x3c]
mov edi, ecx
mov esi, dword [esp + 0x38]
movzx ebx, byte [eax + 1]
inc eax
inc eax
shl ebx, 8
movzx ecx, byte [eax - 2]
or ecx, ebx
movzx ebx, byte [eax]
inc eax
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [eax]
inc eax
shl ebx, 0x18
or ecx, ebx
movzx ebx, byte [eax + 1]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax]
inc eax
inc eax
shl ebx, 8
or ecx, ebx
movzx ebx, byte [eax + 1]
movzx eax, byte [eax]
shl ebx, 8
or ebx, eax
lea eax, [edx + 1]
shl ebx, 0x10
or ecx, ebx
mov dword [esp + 0x1c], ecx
movzx ecx, byte [edx]
movzx edx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x18
or ecx, edx
inc eax
movzx edx, byte [eax + 1]
mov dword [esp + 0x10], ecx
movzx ecx, byte [eax]
inc eax
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl edx, 8
or edx, eax
shl edx, 0x10
or ecx, edx
cmp dword [esp + 0x48], 0
mov dword [esp + 0x14], ecx
je 0x1006960b
mov ecx, dword [esp + 0x44]
movzx eax, byte [ecx]
lea edx, [ecx + 1]
movzx ecx, byte [edx]
shl ecx, 8
or eax, ecx
movzx ecx, byte [edx + 1]
mov dword [esp + 0x24], edx
inc edx
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edx + 1]
inc edx
shl ecx, 0x18
inc edx
movzx ebx, byte [edx + 1]
or eax, ecx
movzx ecx, byte [edx]
inc edx
shl ebx, 8
or ecx, ebx
movzx ebx, byte [edx + 2]
inc edx
movzx edx, byte [edx]
shl ebx, 8
or ebx, edx
shl ebx, 0x10
or ecx, ebx
add ebp, 0xfffffff8
js 0x100694f9
lea edx, [ebp + 8]
shr edx, 3
mov dword [esp + 0x3c], edx
neg edx
lea edx, [ebp + edx*8]
mov dword [esp + 0x48], edx
movzx edx, byte [esi]
movzx ebx, byte [esi + 1]
inc esi
shl ebx, 8
or edx, ebx
movzx ebx, byte [esi + 1]
inc esi
shl ebx, 0x10
or edx, ebx
movzx ebx, byte [esi + 1]
inc esi
shl ebx, 0x18
or edx, ebx
movzx ebx, byte [esi + 1]
inc esi
movzx ebp, byte [esi + 1]
inc esi
shl ebp, 8
or ebx, ebp
movzx ebp, byte [esi + 1]
inc esi
shl ebp, 0x10
or ebx, ebp
movzx ebp, byte [esi + 1]
inc esi
shl ebp, 0x18
or ebx, ebp
xor edx, eax
xor edx, dword [esp + 0x18]
xor ebx, ecx
xor ebx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push 1
push eax
mov eax, dword [esp + 0x48]
inc esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
call fcn.100355d0
mov eax, dword [esp + 0x34]
xor eax, dword [esp + 0x18]
inc edi
mov byte [edi - 1], al
inc edi
mov ecx, eax
shr ecx, 8
mov byte [edi - 1], cl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi - 1], dl
mov ecx, eax
shr ecx, 0x18
mov byte [edi], cl
mov ecx, dword [esp + 0x38]
xor ecx, dword [esp + 0x1c]
inc edi
mov byte [edi], cl
inc edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
mov edx, ecx
shr edx, 0x18
mov byte [edi], dl
add esp, 8
inc edi
sub dword [esp + 0x3c], 1
jne 0x10069435
mov ebp, dword [esp + 0x48]
cmp ebp, 0xfffffff8
je 0x100695cb
lea esi, [esi + ebp + 8]
add ebp, 7
xor ebx, ebx
xor edx, edx
cmp ebp, 7
ja case.default.0x10069512
jmp dword [ebp*4 + 0x10069874]
movzx ebx, byte [esi - 1]
dec esi
shl ebx, 0x18
movzx edx, byte [esi - 1]
dec esi
shl edx, 0x10
or ebx, edx
movzx edx, byte [esi - 1]
dec esi
shl edx, 8
or ebx, edx
movzx edx, byte [esi - 1]
dec esi
or ebx, edx
movzx edx, byte [esi - 1]
dec esi
shl edx, 0x18
movzx ebp, byte [esi - 1]
dec esi
shl ebp, 0x10
or edx, ebp
movzx ebp, byte [esi - 1]
dec esi
shl ebp, 8
or edx, ebp
movzx esi, byte [esi - 1]
or edx, esi
xor edx, eax
xor edx, dword [esp + 0x18]
xor ebx, ecx
xor ebx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push 1
push eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
call fcn.100355d0
mov eax, dword [esp + 0x34]
xor eax, dword [esp + 0x18]
inc edi
mov byte [edi - 1], al
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
inc edi
mov ecx, eax
shr ecx, 0x18
mov byte [edi], cl
mov ecx, dword [esp + 0x38]
xor ecx, dword [esp + 0x1c]
inc edi
mov byte [edi], cl
inc edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
mov edx, ecx
add esp, 8
shr edx, 0x18
mov byte [edi + 1], dl
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x24]
mov byte [edx], al
mov edx, eax
shr edx, 8
mov byte [esi], dl
inc esi
mov edx, eax
shr edx, 0x10
mov byte [esi], dl
inc esi
shr eax, 0x18
mov byte [esi], al
inc esi
mov byte [esi], cl
inc esi
mov eax, ecx
shr eax, 8
mov byte [esi], al
inc esi
mov edx, ecx
shr edx, 0x10
pop edi
mov byte [esi], dl
shr ecx, 0x18
mov byte [esi + 1], cl
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x44]
movzx ebx, byte [eax]
movzx ecx, byte [eax + 1]
inc eax
movzx edx, byte [eax + 1]
mov dword [esp + 0x24], eax
inc eax
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
inc eax
shl edx, 0x10
or ebx, edx
shl ecx, 0x18
inc eax
movzx edx, byte [eax + 1]
or ebx, ecx
movzx ecx, byte [eax]
inc eax
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl edx, 8
or edx, eax
shl edx, 0x10
lea eax, [ebp - 8]
or ecx, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], eax
test eax, eax
jle 0x10069751
lea ecx, [eax - 1]
shr ecx, 3
inc ecx
mov dword [esp + 0x28], ecx
neg ecx
lea ecx, [eax + ecx*8]
mov dword [esp + 0x48], ecx
jmp 0x10069680
movzx ebp, byte [esi]
movzx edx, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
shl edx, 8
or ebp, edx
shl eax, 0x10
or ebp, eax
movzx eax, byte [esi + 1]
shl ecx, 0x18
or ebp, ecx
inc esi
movzx ecx, byte [esi + 1]
inc esi
mov edx, ebp
xor edx, dword [esp + 0x10]
inc esi
mov dword [esp + 0x2c], edx
movzx edx, byte [esi]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x20], eax
xor eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
push 0
push edx
inc esi
call fcn.100355d0
mov ecx, dword [esp + 0x44]
xor ecx, dword [esp + 0x38]
mov eax, ebx
xor eax, dword [esp + 0x34]
xor ecx, dword [esp + 0x24]
xor eax, dword [esp + 0x20]
inc edi
mov byte [edi - 1], al
mov edx, eax
shr edx, 8
mov byte [edi], dl
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
inc edi
shr eax, 0x18
mov byte [edi], al
inc edi
mov byte [edi], cl
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x28]
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
shr ecx, 0x18
mov byte [edi], cl
add esp, 8
inc edi
sub dword [esp + 0x28], 1
mov ebx, ebp
mov dword [esp + 0x3c], eax
jne 0x10069680
mov ecx, eax
mov eax, dword [esp + 0x48]
cmp eax, 0xfffffff8
je 0x10069833
movzx ebp, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
shl ecx, 8
or ebp, ecx
inc esi
shl eax, 0x18
shl edx, 0x10
or ebp, edx
or ebp, eax
movzx eax, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
mov ecx, ebp
xor ecx, dword [esp + 0x10]
shl edx, 8
mov dword [esp + 0x2c], ecx
movzx ecx, byte [esi + 2]
or eax, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or ecx, edx
shl ecx, 0x10
or eax, ecx
mov dword [esp + 0x20], eax
xor eax, dword [esp + 0x14]
push 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x48]
call fcn.100355d0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
xor ebx, dword [esp + 0x34]
xor eax, dword [esp + 0x38]
xor ebx, dword [esp + 0x20]
xor eax, dword [esp + 0x24]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 8
cmp ecx, 7
ja case.default.0x100697ea
jmp dword [ecx*4 + 0x10069894]
dec edi
mov ecx, eax
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
dec edi
mov byte [edi], al
dec edi
mov edx, ebx
shr edx, 0x18
mov byte [edi], dl
dec edi
mov eax, ebx
shr eax, 0x10
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 8
mov byte [edi], cl
mov byte [edi - 1], bl
mov edx, dword [esp + 0x20]
mov ebx, ebp
mov dword [esp + 0x3c], edx
mov ecx, edx
mov eax, dword [esp + 0x44]
mov byte [eax], bl
mov eax, dword [esp + 0x24]
mov edx, ebx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ebx, 0x18
mov byte [eax], bl
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
pop edi
mov edx, ecx
inc eax
pop esi
shr edx, 0x10
shr ecx, 0x18
pop ebp
mov byte [eax], dl
mov byte [eax + 1], cl
pop ebx
add esp, 0x24
ret