Function at 0x100fa2e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.101637b0
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [esp + 0x1c]
mov edx, ebx
shr edx, 3
push esi
push edi
mov edi, dword [ecx]
mov dword [esp + 0x10], edx
test edx, edx
je 0x100fa4d4
mov ebx, dword [esp + 0x20]
jmp 0x100fa320
lea edx, [edi + 1]
mov edi, dword [esp + 0x18]
and edx, 0xff
inc edx
mov ecx, dword [edi + edx*4 + 4]
lea esi, [ecx + eax]
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 4], eax
mov dword [edi + esi*4 + 8], ecx
add eax, ecx
and eax, 0xff
and edx, 0xff
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx]
inc edx
mov byte [ebp], al
mov ecx, dword [edi + edx*4 + 4]
add esi, ecx
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 4], eax
mov dword [edi + esi*4 + 8], ecx
add eax, ecx
and eax, 0xff
and edx, 0xff
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx + 1]
inc edx
mov byte [ebp + 1], al
mov ecx, dword [edi + edx*4 + 4]
add esi, ecx
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 4], eax
mov dword [edi + esi*4 + 8], ecx
add eax, ecx
and eax, 0xff
and edx, 0xff
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx + 2]
inc edx
mov byte [ebp + 2], al
mov ecx, dword [edi + edx*4 + 4]
add esi, ecx
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 4], eax
mov dword [edi + esi*4 + 8], ecx
add eax, ecx
and eax, 0xff
and edx, 0xff
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx + 3]
inc edx
mov byte [ebp + 3], al
mov ecx, dword [edi + edx*4 + 4]
add esi, ecx
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 4], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
and eax, 0xff
and edx, 0xff
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx + 4]
inc edx
mov byte [ebp + 4], al
mov ecx, dword [edi + edx*4 + 4]
add esi, ecx
and esi, 0xff
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 4], eax
add eax, ecx
and eax, 0xff
mov dword [edi + esi*4 + 8], ecx
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx + 5]
and edx, 0xff
mov byte [ebp + 5], al
mov ecx, dword [edi + edx*4 + 8]
add esi, ecx
and esi, 0xff
add ebx, 8
mov eax, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 8], eax
add eax, ecx
mov dword [edi + esi*4 + 8], ecx
and eax, 0xff
add ebp, 8
movzx eax, byte [edi + eax*4 + 8]
xor al, byte [ebx - 2]
lea edi, [edx + 1]
mov byte [ebp - 2], al
mov eax, dword [esp + 0x18]
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
lea eax, [edx + esi]
mov esi, dword [esp + 0x18]
and eax, 0xff
mov ecx, dword [esi + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
and ecx, 0xff
mov dword [esi + eax*4 + 8], edx
mov cl, byte [esi + ecx*4 + 8]
xor cl, byte [ebx - 1]
dec dword [esp + 0x10]
mov byte [ebp - 1], cl
jne 0x100fa320
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x1c]
mov ecx, esi
jmp 0x100fa4dc
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
and ebx, 7
je 0x100fa70e
mov esi, dword [esp + 0x18]
inc edi
and edi, 0xff
mov edx, dword [ecx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi]
mov byte [ebp], cl
dec ebx
je 0x100fa712
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
inc edi
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 1]
mov byte [ebp + 1], cl
dec ebx
je 0x100fa712
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
inc edi
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 2]
mov byte [ebp + 2], cl
dec ebx
je 0x100fa712
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
inc edi
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 3]
mov byte [ebp + 3], cl
dec ebx
je 0x100fa712
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
inc edi
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 4]
mov byte [ebp + 4], cl
dec ebx
je 0x100fa712
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
inc edi
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 5]
mov byte [ebp + 5], cl
dec ebx
je 0x100fa712
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
inc edi
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi + 6]
mov byte [ebp + 6], cl
dec ebx
je 0x100fa712
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
inc edi
and edi, 0xff
mov edx, dword [edx + edi*4 + 8]
add eax, edx
and eax, 0xff
mov ecx, dword [ecx + eax*4 + 8]
mov dword [esi + edi*4 + 8], ecx
add ecx, edx
mov dword [esi + eax*4 + 8], edx
and ecx, 0xff
mov edx, esi
mov esi, dword [esp + 0x10]
mov cl, byte [edx + ecx*4 + 8]
xor cl, byte [esi]
mov byte [ebp], cl
dec ebx
jne 0x100fa525
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov dword [edx + 4], eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov dword [edx + 4], eax
pop ebx
pop ecx
ret