Function at 0x300b4370
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [eax + 4]
mov ecx, edx
shr ecx, 3
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [eax]
mov dword [esp + 0x14], ecx
test ecx, ecx
mov ecx, dword [esp + 0x20]
je 0x300b453b
lea ebx, [ebx]
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
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]
xor dl, byte [esi]
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
jne 0x300b43a0
mov edx, dword [esp + 0x18]
and edx, 7
mov dword [esp + 0x14], edx
je 0x300b4748
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x300b4748
jmp 0x300b4590
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x300b4748
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x300b4748
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x300b4748
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x300b4748
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x300b4748
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
je 0x300b4748
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
mov dword [eax + ebp*4 + 8], edx
and ebx, 0xff
mov dl, byte [eax + ebx*4 + 8]
xor dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [esp + 0x14]
inc ecx
inc esi
dec edx
mov dword [esp + 0x14], edx
jne 0x300b4590
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], ebp
pop ebp
pop ebx
ret