Function at 0x1000f684
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
movzx ecx, byte [eax]
inc eax
movzx edx, byte [eax]
shl edx, 8
or ecx, edx
mov dword [ebp - 0x28], eax
inc eax
movzx edx, byte [eax]
shl edx, 0x10
or ecx, edx
inc eax
movzx edx, byte [eax]
shl edx, 0x18
or ecx, edx
inc eax
mov dword [ebp - 8], ecx
movzx ecx, byte [eax]
inc eax
movzx edx, byte [eax]
shl edx, 8
or ecx, edx
inc eax
movzx edx, byte [eax]
shl edx, 0x10
or ecx, edx
inc eax
movzx edx, byte [eax]
shl edx, 0x18
or ecx, edx
inc eax
movzx ebx, byte [eax]
mov dword [ebp - 0xc], ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 8
or ebx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x10
or ebx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x18
or ebx, ecx
inc eax
movzx ecx, byte [eax]
inc eax
movzx edx, byte [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
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
js 0x1000f884
lea eax, [edx + 0x10]
shr eax, 4
mov dword [ebp + 0xc], eax
imul eax, eax, 0xfffffff0
add edx, eax
mov dword [ebp - 0x10], edx
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], eax
inc esi
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], eax
inc esi
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], eax
inc esi
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 8]
inc esi
call fcn.10011118
mov edx, dword [ebp - 0x30]
xor edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x2c]
xor edx, dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, dword [ebp - 0xc]
mov byte [edi], al
inc edi
mov ebx, eax
shr ebx, 8
mov byte [edi], bl
mov ebx, eax
shr eax, 0x18
shr ebx, 0x10
inc edi
mov byte [edi], bl
inc edi
mov byte [edi], al
inc edi
mov byte [edi], cl
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
inc edi
mov eax, ecx
shr eax, 0x10
mov byte [edi], al
mov eax, dword [ebp - 0x14]
shr ecx, 0x18
inc edi
mov byte [edi], cl
inc edi
mov byte [edi], al
mov ecx, eax
shr ecx, 8
inc edi
mov byte [edi], cl
mov ecx, eax
shr eax, 0x18
mov ebx, dword [ebp - 0x20]
inc edi
shr ecx, 0x10
mov byte [edi], cl
inc edi
mov byte [edi], al
inc edi
mov byte [edi], dl
inc edi
mov eax, edx
shr eax, 8
mov byte [edi], al
inc edi
mov eax, edx
shr eax, 0x10
mov byte [edi], al
mov eax, dword [ebp - 0x18]
inc edi
shr edx, 0x18
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov byte [edi], dl
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
inc edi
dec dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], eax
jne 0x1000f73e
mov ecx, eax
cmp dword [ebp - 0x10], 0xfffffff0
je 0x1000f9cd
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x38], eax
inc esi
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x34], eax
inc esi
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x30], eax
inc esi
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 2]
inc esi
movzx edx, byte [esi]
shl ecx, 8
or ecx, edx
shl ecx, 0x10
or ecx, eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
call fcn.10011118
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x34]
xor edx, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x2c]
xor eax, dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 0x30]
lea edi, [edi + esi + 0x10]
add esi, 0xf
xor ecx, ebx
mov dword [ebp - 0x24], edx
cmp esi, 0xf
ja case.default.0x1000f94e
jmp dword [esi*4 + 0x1000fa44]
dec edi
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
dec edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
mov edx, dword [ebp - 0x24]
dec edi
mov byte [edi], al
dec edi
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
dec edi
mov eax, ecx
shr eax, 0x10
mov byte [edi], al
dec edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
dec edi
mov byte [edi], cl
dec edi
mov eax, edx
shr eax, 0x18
mov byte [edi], al
dec edi
mov eax, edx
shr eax, 0x10
mov byte [edi], al
dec edi
mov eax, edx
shr eax, 8
mov byte [edi], al
dec edi
mov byte [edi], dl
mov eax, dword [ebp + 0xc]
dec edi
shr eax, 0x18
mov byte [edi], al
mov eax, dword [ebp + 0xc]
dec edi
shr eax, 0x10
mov byte [edi], al
mov eax, dword [ebp + 0xc]
dec edi
shr eax, 8
mov byte [edi], al
mov al, byte [ebp + 0xc]
mov byte [edi - 1], al
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov byte [eax], dl
mov eax, dword [ebp - 0x28]
shr edx, 8
mov byte [eax], dl
mov edx, dword [ebp - 8]
shr edx, 0x10
inc eax
mov byte [eax], dl
mov edx, dword [ebp - 8]
shr edx, 0x18
inc eax
mov byte [eax], dl
mov edx, dword [ebp - 0xc]
inc eax
mov byte [eax], dl
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, dword [ebp - 0xc]
shr edx, 0x10
inc eax
mov byte [eax], dl
mov edx, dword [ebp - 0xc]
shr edx, 0x18
inc eax
mov byte [eax], dl
inc eax
mov byte [eax], bl
inc eax
mov edx, ebx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
shr ebx, 0x18
inc eax
mov byte [eax], bl
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
pop edi
shr edx, 0x10
shr ecx, 0x18
pop esi
mov byte [eax], dl
mov byte [eax + 1], cl
pop ebx
leave
ret