Function at 0x101fe860
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0x30]
movzx edx, byte [ebp]
movzx eax, byte [ebp + 1]
inc ebp
movzx ecx, byte [ebp + 1]
shl eax, 8
inc ebp
or edx, eax
movzx eax, byte [ebp + 1]
inc ebp
mov ebx, dword [esp + 0x2c]
shl ecx, 0x10
shl eax, 0x18
inc ebp
or edx, ecx
movzx ecx, byte [ebp]
or edx, eax
movzx eax, byte [ebp + 1]
inc ebp
shl eax, 8
or ecx, eax
movzx eax, byte [ebp + 1]
inc ebp
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebp + 1]
inc ebp
shl eax, 0x18
mov esi, dword [esp + 0x24]
or ecx, eax
inc ebp
add ebx, 0xfffffff8
mov edi, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
js 0x101fe997
lea eax, [ebx + 8]
shr eax, 3
mov dword [esp + 0x2c], eax
neg eax
lea ecx, [ebx + eax*8]
mov dword [esp + 0x10], ecx
lea ecx, [ecx]
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
movzx ebx, byte [edi + 1]
inc edi
shl ebx, 8
or ecx, ebx
movzx ebx, byte [edi + 1]
inc edi
shl ebx, 0x10
or ecx, ebx
movzx ebx, byte [edi + 1]
inc edi
xor eax, edx
shl ebx, 0x18
or ecx, ebx
xor ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push edx
push eax
inc edi
mov dword [esp + 0x20], ecx
call fcn.101fd6e0
mov eax, dword [esp + 0x1c]
mov byte [esi], al
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
inc esi
mov ecx, eax
inc esi
shr ecx, 0x10
mov byte [esi - 1], cl
mov edx, eax
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x20]
inc esi
mov byte [esi], al
inc esi
mov ebx, eax
shr ebx, 8
mov byte [esi], bl
inc esi
mov ebx, eax
shr ebx, 0x10
mov byte [esi], bl
mov ecx, eax
inc esi
shr eax, 0x18
mov byte [esi], al
add esp, 8
inc esi
sub dword [esp + 0x2c], 1
mov dword [esp + 0x30], ecx
jne 0x101fe8e0
mov ebx, dword [esp + 0x10]
cmp ebx, 0xfffffff8
je 0x101fea99
lea edi, [edi + ebx + 8]
add ebx, 7
xor eax, eax
mov dword [esp + 0x30], 0
cmp ebx, 7
ja case.default.0x101fe9ba
jmp dword [ebx*4 + 0x101feadc]
movzx eax, byte [edi - 1]
dec edi
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 0x10
shl eax, 0x18
or eax, ebx
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 8
or eax, ebx
jmp 0x101fea0d
movzx ebx, byte [edi - 1]
mov eax, dword [esp + 0x30]
dec edi
shl ebx, 0x10
or eax, ebx
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 8
or eax, ebx
jmp 0x101fea0d
movzx ebx, byte [edi - 1]
mov eax, dword [esp + 0x30]
dec edi
shl ebx, 8
or eax, ebx
jmp 0x101fea0d
mov eax, dword [esp + 0x30]
movzx ebx, byte [edi - 1]
dec edi
or eax, ebx
mov dword [esp + 0x30], eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x18
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 0x10
or eax, ebx
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 8
or eax, ebx
movzx edi, byte [edi - 1]
or eax, edi
xor eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
xor eax, ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.101fd6e0
mov eax, dword [esp + 0x1c]
mov byte [esi], al
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov edx, eax
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x20]
inc esi
mov byte [esi], al
mov ebx, eax
shr ebx, 8
inc esi
mov byte [esi], bl
mov ebx, eax
inc esi
shr ebx, 0x10
add esp, 8
mov ecx, eax
shr eax, 0x18
mov byte [esi], bl
mov byte [esi + 1], al
mov byte [ebp - 8], dl
sub ebp, 8
inc ebp
mov eax, edx
shr eax, 8
mov byte [ebp], al
inc ebp
mov eax, edx
shr eax, 0x10
mov byte [ebp], al
inc ebp
shr edx, 0x18
mov byte [ebp], dl
inc ebp
mov byte [ebp], cl
inc ebp
mov edx, ecx
shr edx, 8
mov byte [ebp], dl
inc ebp
mov eax, ecx
pop edi
shr eax, 0x10
mov byte [ebp], al
shr ecx, 0x18
pop esi
mov byte [ebp + 1], cl
pop ebp
pop ebx
add esp, 0xc
ret