Function at 0x100673d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
cmp dword [esp + 0x24], 0
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, ecx
mov esi, edx
je 0x10067626
movzx edx, byte [ebp]
movzx ecx, byte [ebp + 1]
inc ebp
shl ecx, 0x10
inc ebp
shl edx, 0x18
or edx, ecx
movzx ecx, byte [ebp]
shl ecx, 8
or edx, ecx
movzx ecx, byte [ebp + 1]
inc ebp
inc ebp
movzx ebx, byte [ebp + 1]
or edx, ecx
movzx ecx, byte [ebp]
inc ebp
shl ebx, 0x10
shl ecx, 0x18
or ecx, ebx
movzx ebx, byte [ebp + 1]
inc ebp
shl ebx, 8
or ecx, ebx
movzx ebx, byte [ebp + 1]
inc ebp
or ecx, ebx
lea ebx, [eax - 8]
sub ebp, 7
mov dword [esp + 0x34], ecx
test ebx, ebx
jl 0x1006750e
lea eax, [ebx + 8]
shr eax, 3
mov dword [esp + 0x18], eax
neg eax
lea eax, [ebx + eax*8]
mov dword [esp + 0x14], 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
xor eax, edx
or ecx, ebx
xor ecx, dword [esp + 0x34]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push edx
inc esi
mov dword [esp + 0x28], ecx
call fcn.100678c0
mov eax, dword [esp + 0x24]
mov ecx, eax
shr ecx, 0x18
mov byte [edi], cl
inc edi
mov ecx, eax
shr ecx, 0x10
mov byte [edi], cl
inc edi
mov ecx, eax
inc edi
shr ecx, 8
mov byte [edi - 1], cl
mov byte [edi], al
mov edx, eax
mov eax, dword [esp + 0x28]
inc edi
mov ebx, eax
shr ebx, 0x18
mov byte [edi], bl
inc edi
mov ebx, eax
shr ebx, 0x10
mov byte [edi], bl
inc edi
mov ebx, eax
shr ebx, 8
mov byte [edi], bl
inc edi
mov byte [edi], al
add esp, 4
mov ecx, eax
inc edi
sub dword [esp + 0x18], 1
mov dword [esp + 0x34], ecx
jne 0x10067454
mov ebx, dword [esp + 0x14]
cmp ebx, 0xfffffff8
je 0x100675e2
lea esi, [esi + ebx + 8]
add ebx, 7
xor eax, eax
mov dword [esp + 0x34], 0
cmp ebx, 7
ja case.default.0x1006752d
jmp dword [ebx*4 + 0x10067874]
movzx eax, byte [esi - 1]
dec esi
mov dword [esp + 0x34], eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 8
or dword [esp + 0x34], eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x10
or dword [esp + 0x34], eax
movzx eax, byte [esi - 1]
dec esi
shl eax, 0x18
or dword [esp + 0x34], eax
movzx eax, byte [esi - 1]
dec esi
movzx ebx, byte [esi - 1]
dec esi
shl ebx, 8
or eax, ebx
movzx ebx, byte [esi - 1]
dec esi
shl ebx, 0x10
or eax, ebx
movzx esi, byte [esi - 1]
shl esi, 0x18
or eax, esi
xor eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
xor eax, ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push ecx
call fcn.100678c0
mov edx, dword [esp + 0x24]
inc edi
mov eax, edx
shr eax, 0x18
mov byte [edi - 1], al
mov ecx, edx
shr ecx, 0x10
mov byte [edi], cl
mov ecx, dword [esp + 0x28]
inc edi
mov eax, edx
shr eax, 8
mov byte [edi], al
inc edi
mov byte [edi], dl
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
add esp, 4
shr eax, 8
mov byte [edi], al
mov byte [edi + 1], cl
mov eax, edx
shr eax, 0x18
mov byte [ebp], al
inc ebp
mov eax, edx
shr eax, 0x10
mov byte [ebp], al
inc ebp
mov eax, edx
shr eax, 8
mov byte [ebp], al
mov byte [ebp + 1], dl
inc ebp
inc ebp
mov edx, ecx
shr edx, 0x18
mov byte [ebp], dl
inc ebp
mov eax, ecx
shr eax, 0x10
mov byte [ebp], al
inc ebp
mov edx, ecx
pop edi
shr edx, 8
mov byte [ebp], dl
pop esi
mov byte [ebp + 1], cl
pop ebp
pop ebx
add esp, 0x18
ret
movzx ebx, byte [ebp]
movzx ecx, byte [ebp + 1]
inc ebp
movzx edx, byte [ebp + 1]
inc ebp
shl ecx, 0x10
inc ebp
shl ebx, 0x18
or ebx, ecx
movzx ecx, byte [ebp]
shl edx, 8
or ebx, edx
or ebx, 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
inc ebp
or ecx, edx
movzx edx, byte [ebp]
or ecx, edx
sub ebp, 7
add eax, 0xfffffff8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
js 0x1006775a
lea ecx, [eax + 8]
shr ecx, 3
mov dword [esp + 0x1c], ecx
neg ecx
lea eax, [eax + ecx*8]
mov dword [esp + 0x14], eax
movzx ebx, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
shl ebx, 0x18
or ebx, ecx
shl edx, 8
or ebx, edx
or ebx, eax
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 8
or eax, edx
or eax, ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push edx
mov dword [esp + 0x24], ebx
inc esi
call fcn.100678c0
mov eax, dword [esp + 0x1c]
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
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
inc edi
mov byte [edi], cl
mov ecx, dword [esp + 0x38]
add esp, 4
inc edi
sub dword [esp + 0x1c], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ecx
jne 0x10067696
mov eax, dword [esp + 0x14]
cmp eax, 0xfffffff8
je 0x10067830
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
shl eax, 0x18
inc esi
shl edx, 0x10
or eax, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
or eax, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 0x18
shl ecx, 0x10
inc esi
or eax, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
or eax, edx
lea edx, [esp + 0x20]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push edx
call fcn.100678c0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor ebx, dword [esp + 0x24]
xor eax, dword [esp + 0x28]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 4
cmp ecx, 7
ja case.default.0x100677e3
jmp dword [ecx*4 + 0x10067894]
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
dec edi
shr eax, 0x18
mov byte [edi], al
dec edi
mov byte [edi], bl
dec edi
mov eax, ebx
shr eax, 8
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 0x10
mov byte [edi], cl
shr ebx, 0x18
mov byte [edi - 1], bl
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov ebx, edx
mov ecx, eax
inc ebp
mov edx, ebx
shr edx, 0x18
mov byte [ebp - 1], dl
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
inc ebp
mov edx, ebx
shr edx, 8
mov byte [ebp], dl
mov byte [ebp + 1], bl
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, 0x18
ret