Function at 0xb5341e
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [ecx]
mov eax, dword [esp + 4]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0xc]
cmp edx, 0x10
push esi
push edi
jne 0xb53560
mov edi, dword [eax + 0xc]
mov ecx, edi
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x6678cc98]
mov edx, edi
movzx esi, dh
mov esi, dword [esi*4 + 0x6678cc98]
xor ecx, 0x1000000
and ecx, 0xff000000
and esi, 0xff0000
xor ecx, esi
mov esi, edx
mov dword [esp + 0x10], edx
shr esi, 0x18
mov esi, dword [esi*4 + 0x6678cc98]
and edx, 0xff
mov edx, dword [edx*4 + 0x6678cc98]
and esi, 0xff
xor ecx, esi
and edx, 0xff00
xor ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
lea esi, [eax + 0x10]
mov dword [esi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
xor ecx, edi
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], ecx
mov edi, 0x6678d09c
lea ecx, [ecx]
mov ecx, esi
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x10], edx
movzx esi, byte [esp + 0x12]
mov esi, dword [esi*4 + 0x6678cc98]
movzx eax, dh
mov eax, dword [eax*4 + 0x6678cc98]
and eax, 0xff0000
and esi, 0xff000000
xor eax, esi
mov esi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x6678cc98]
shr esi, 0x18
mov esi, dword [esi*4 + 0x6678cc98]
and edx, 0xff00
and esi, 0xff
xor eax, esi
mov esi, dword [ecx]
xor eax, edx
mov edx, dword [edi]
xor eax, esi
xor eax, edx
mov dword [ecx + 0x10], eax
mov edx, dword [ecx + 4]
lea esi, [ecx + 0x10]
xor edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [ecx + 8]
xor eax, edx
mov dword [ecx + 0x18], eax
mov edx, dword [ecx + 0xc]
xor edx, eax
add edi, 4
cmp edi, 0x6678d0c0
mov dword [ecx + 0x1c], edx
jne 0xb534ce
pop edi
mov eax, 0xa
pop esi
ret
cmp edx, 0x18
mov esi, dword [ecx + 0x10]
mov dword [eax + 0x10], esi
mov esi, dword [ecx + 0x14]
mov dword [eax + 0x14], esi
jne 0xb53699
mov ecx, esi
shr ecx, 0x10
mov edi, dword [eax]
mov edx, esi
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x6678cc98]
movzx esi, dh
mov esi, dword [esi*4 + 0x6678cc98]
xor ecx, 0x1000000
and ecx, 0xff000000
and esi, 0xff0000
xor ecx, esi
mov esi, edx
mov dword [esp + 0x10], edx
shr esi, 0x18
mov esi, dword [esi*4 + 0x6678cc98]
and edx, 0xff
mov edx, dword [edx*4 + 0x6678cc98]
and esi, 0xff
xor ecx, esi
and edx, 0xff00
xor ecx, edx
mov edx, dword [eax + 4]
xor ecx, edi
xor edx, ecx
mov dword [eax + 0x18], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov esi, 0x6678d09c
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x10]
xor ecx, edx
mov edx, dword [eax + 0x14]
mov dword [eax + 0x28], ecx
xor edx, ecx
mov dword [eax + 0x2c], edx
mov edx, dword [eax + 0x2c]
add eax, 0x18
mov dword [esp + 0x10], edx
movzx edi, byte [esp + 0x12]
mov edi, dword [edi*4 + 0x6678cc98]
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x6678cc98]
and ecx, 0xff0000
and edi, 0xff000000
xor ecx, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x6678cc98]
shr edi, 0x18
mov edi, dword [edi*4 + 0x6678cc98]
and edx, 0xff00
and edi, 0xff
xor ecx, edi
mov edi, dword [esi]
xor ecx, edx
mov edx, dword [eax]
xor ecx, edi
xor ecx, edx
mov dword [eax + 0x18], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x1c], edx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x20], ecx
mov edx, dword [eax + 0xc]
xor edx, ecx
add esi, 4
cmp esi, 0x6678d0b8
mov dword [eax + 0x24], edx
jne 0xb535f5
pop edi
mov eax, 0xc
pop esi
ret
cmp edx, 0x20
mov esi, dword [ecx + 0x18]
mov dword [eax + 0x18], esi
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x1c], ecx
jne 0xb53834
mov edx, ecx
shr ecx, 0x10
mov edi, dword [eax]
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x6678cc98]
movzx esi, dh
mov esi, dword [esi*4 + 0x6678cc98]
xor ecx, 0x1000000
and ecx, 0xff000000
and esi, 0xff0000
xor ecx, esi
mov esi, edx
mov dword [esp + 0x10], edx
shr esi, 0x18
mov esi, dword [esi*4 + 0x6678cc98]
and edx, 0xff
mov edx, dword [edx*4 + 0x6678cc98]
and esi, 0xff
xor ecx, esi
and edx, 0xff00
xor ecx, edx
mov edx, dword [eax + 4]
xor ecx, edi
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov esi, 0x6678d09c
mov edi, edi
mov edx, dword [eax + 0x2c]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x6678cc98]
movzx edi, dh
mov edi, dword [edi*4 + 0x6678cc98]
and ecx, 0xff0000
and edi, 0xff00
xor ecx, edi
mov edi, edx
mov dword [esp + 0x10], edx
and edx, 0xff
mov edx, dword [edx*4 + 0x6678cc98]
shr edi, 0x18
mov edi, dword [edi*4 + 0x6678cc98]
and edx, 0xff
and edi, 0xff000000
xor ecx, edi
xor ecx, edx
xor ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [eax + 0x30], ecx
xor edx, ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x34], edx
mov edx, dword [eax + 0x1c]
mov dword [eax + 0x38], ecx
xor edx, ecx
mov dword [eax + 0x3c], edx
mov edx, dword [eax + 0x3c]
add eax, 0x20
mov dword [esp + 0x10], edx
movzx edi, byte [esp + 0x12]
mov edi, dword [edi*4 + 0x6678cc98]
movzx ecx, dh
mov ecx, dword [ecx*4 + 0x6678cc98]
and ecx, 0xff0000
and edi, 0xff000000
xor ecx, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x6678cc98]
shr edi, 0x18
mov edi, dword [edi*4 + 0x6678cc98]
and edx, 0xff00
and edi, 0xff
xor ecx, edi
mov edi, dword [eax]
xor ecx, edx
mov edx, dword [esi]
xor ecx, edi
xor ecx, edx
mov dword [eax + 0x20], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x24], edx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x28], ecx
mov edx, dword [eax + 0xc]
xor edx, ecx
add esi, 4
cmp esi, 0x6678d0b4
mov dword [eax + 0x2c], edx
jne 0xb5372e
pop edi
mov eax, 0xe
pop esi
ret
pop edi
xor eax, eax
pop esi
ret