Function at 0x5fafb0
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 0x5fb54d
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
mov byte [ecx], dl
inc ecx
inc esi
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
inc ecx
inc esi
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
inc ecx
inc esi
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
inc ecx
inc esi
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
inc ecx
inc esi
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
inc ecx
inc esi
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
inc ecx
inc esi
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]
inc ecx
inc esi
dec edx
je 0x5fb326
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
mov byte [ecx], dl
inc ecx
inc esi
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
inc ecx
inc esi
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
inc ecx
inc esi
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
inc ecx
inc esi
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
inc ecx
inc esi
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
inc ecx
inc esi
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
inc ecx
inc esi
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 + 0x20]
inc ecx
inc esi
dec edx
mov dword [esp + 0x20], edx
jne 0x5fb17f
mov edx, dword [esp + 0x18]
and edx, 7
mov dword [esp + 0x14], edx
je 0x5fb543
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]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x5fb543
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]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x5fb543
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]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x5fb543
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]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x5fb543
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]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x5fb543
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]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x5fb543
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]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x5fb543
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]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
jne 0x5fb379
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 0x5fb32a