Function at 0x10019ef0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebx
mov ecx, edx
push ebp
mov ebp, dword [eax + 4]
push esi
push edi
mov edi, dword [eax]
shr ecx, 3
mov dword [esp + 0x14], ecx
je 0x1001a48d
inc edi
mov esi, dword [esp + 0x1c]
and edi, 0xff
mov ecx, dword [eax + edi*4 + 8]
add ebp, ecx
and ebp, 0xff
mov edx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], edx
add edx, ecx
and edx, 0xff
mov dword [eax + ebp*4 + 8], ecx
mov bl, byte [esi]
mov ecx, dword [esp + 0x20]
mov dl, byte [eax + edx*4 + 8]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 1]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx + 1], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 2]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx + 2], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 3]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx + 3], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 4]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx + 4], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
mov dword [eax + ebp*4 + 8], edx
add ebx, edx
and ebx, 0xff
add esi, 8
add ecx, 8
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi - 3]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx - 3], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi - 2]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx - 2], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi - 1]
xor dl, bl
mov byte [ecx - 1], dl
mov edx, dword [esp + 0x14]
dec edx
je 0x1001a26e
mov dword [esp + 0x20], edx
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 1]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx + 1], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 2]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx + 2], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 3]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx + 3], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 4]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx + 4], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 5]
add esi, 8
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx + 5], dl
add ecx, 8
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi - 2]
xor dl, bl
inc edi
and edi, 0xff
mov byte [ecx - 2], dl
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi - 1]
xor dl, bl
mov byte [ecx - 1], dl
mov edx, dword [esp + 0x20]
dec edx
mov dword [esp + 0x20], edx
jne 0x1001a0c3
mov edx, dword [esp + 0x18]
and edx, 7
mov dword [esp + 0x14], edx
je 0x1001a483
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi]
xor dl, bl
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
dec edx
mov dword [esp + 0x14], edx
je 0x1001a483
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 1]
xor dl, bl
mov byte [ecx + 1], dl
mov edx, dword [esp + 0x14]
dec edx
mov dword [esp + 0x14], edx
je 0x1001a483
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 2]
xor dl, bl
mov byte [ecx + 2], dl
mov edx, dword [esp + 0x14]
dec edx
mov dword [esp + 0x14], edx
je 0x1001a483
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 3]
xor dl, bl
mov byte [ecx + 3], dl
mov edx, dword [esp + 0x14]
dec edx
mov dword [esp + 0x14], edx
je 0x1001a483
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 4]
xor dl, bl
mov byte [ecx + 4], dl
mov edx, dword [esp + 0x14]
dec edx
mov dword [esp + 0x14], edx
je 0x1001a483
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 5]
xor dl, bl
mov byte [ecx + 5], dl
mov edx, dword [esp + 0x14]
dec edx
mov dword [esp + 0x14], edx
je 0x1001a483
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi + 6]
xor dl, bl
mov byte [ecx + 6], dl
mov edx, dword [esp + 0x14]
dec edx
mov dword [esp + 0x14], edx
je 0x1001a483
inc edi
and edi, 0xff
mov edx, dword [eax + edi*4 + 8]
add ebp, edx
and ebp, 0xff
mov ebx, dword [eax + ebp*4 + 8]
mov dword [eax + edi*4 + 8], ebx
add ebx, edx
and ebx, 0xff
mov dword [eax + ebp*4 + 8], edx
mov dl, byte [eax + ebx*4 + 8]
mov bl, byte [esi]
xor dl, bl
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
dec edx
mov dword [esp + 0x14], edx
jne 0x1001a2bf
mov dword [eax], edi
pop edi
mov dword [eax + 4], ebp
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x1001a272