Function at 0x1004a3f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
movzx edx, byte [ecx + 2]
push ebx
push ebp
push esi
movzx esi, byte [ecx + 6]
push edi
movzx edi, byte [ecx + 3]
movzx ebx, byte [ecx + 0xb]
shl edi, 8
or edi, edx
movzx edx, byte [ecx + 1]
shl edi, 8
or edi, edx
movzx edx, byte [ecx]
movzx ebp, byte [ecx + 0xf]
shl edi, 8
or edi, edx
movzx edx, byte [ecx + 7]
shl edx, 8
or edx, esi
movzx esi, byte [ecx + 5]
shl edx, 8
or edx, esi
movzx esi, byte [ecx + 4]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
xor edi, dword [eax]
shl edx, 8
or edx, esi
movzx esi, byte [ecx + 0xa]
xor edx, dword [eax + 4]
shl ebx, 8
or ebx, esi
movzx esi, byte [ecx + 9]
shl ebx, 8
or ebx, esi
movzx esi, byte [ecx + 8]
shl ebx, 8
or ebx, esi
movzx esi, byte [ecx + 0xe]
shl ebp, 8
or ebp, esi
movzx esi, byte [ecx + 0xd]
movzx ecx, byte [ecx + 0xc]
shl ebp, 8
or ebp, esi
add eax, 4
xor ebx, dword [eax + 4]
shl ebp, 8
or ebp, ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
add eax, 4
xor ebp, dword [eax + 4]
add eax, 4
sar ecx, 1
dec ecx
add eax, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x1004a6fc
lea ecx, [ecx]
mov esi, ebx
mov ecx, ebp
shr ecx, 8
and ecx, 0xff
shr esi, 0x10
and esi, 0xff
mov dword [esp + 0x18], esi
mov esi, dword [ecx*4 + 0x101db9f8]
mov ecx, dword [esp + 0x18]
xor esi, dword [ecx*4 + 0x101db5d0]
mov ecx, edx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x101db1d0]
mov ecx, edi
shr edi, 8
and edi, 0xff
and ecx, 0xff
xor esi, dword [ecx*4 + 0x101dbdf8]
mov ecx, ebp
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x101db5d0]
xor ecx, dword [edi*4 + 0x101db9f8]
mov edi, ebx
shr edi, 0x18
xor ecx, dword [edi*4 + 0x101db1d0]
mov edi, edx
and edi, 0xff
xor ecx, dword [edi*4 + 0x101dbdf8]
mov edi, dword [esp + 0x10]
shr edi, 0x10
and edi, 0xff
xor esi, dword [eax]
shr edx, 8
xor ecx, dword [eax + 4]
and edx, 0xff
mov edx, dword [edx*4 + 0x101db9f8]
xor edx, dword [edi*4 + 0x101db5d0]
mov edi, ebp
shr edi, 0x18
xor edx, dword [edi*4 + 0x101db1d0]
mov edi, ebx
and edi, 0xff
xor edx, dword [edi*4 + 0x101dbdf8]
mov edi, dword [esp + 0x14]
shr ebx, 8
and ebx, 0xff
shr edi, 0x10
and edi, 0xff
mov dword [esp + 0x18], edi
mov edi, dword [ebx*4 + 0x101db9f8]
mov ebx, dword [esp + 0x18]
xor edi, dword [ebx*4 + 0x101db5d0]
mov ebx, dword [esp + 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x101db1d0]
and ebp, 0xff
xor edi, dword [ebp*4 + 0x101dbdf8]
add eax, 4
xor edx, dword [eax + 4]
add eax, 4
xor edi, dword [eax + 4]
add eax, 4
mov ebx, edi
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x101db9f8]
mov ebp, edx
shr ebp, 0x10
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x101db5d0]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x101db1d0]
mov ebp, esi
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x101dbdf8]
add eax, 4
xor ebx, dword [eax]
add eax, 4
mov dword [esp + 0x10], ebx
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x101db5d0]
mov ebp, esi
shr ebp, 8
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x101db9f8]
mov ebp, edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x101db1d0]
mov ebp, ecx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x101dbdf8]
mov ebp, esi
xor ebx, dword [eax]
shr ebp, 0x10
mov dword [esp + 0x14], ebx
mov ebx, ecx
shr ebx, 8
and ebp, 0xff
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x101db9f8]
xor ebx, dword [ebp*4 + 0x101db5d0]
mov ebp, edi
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x101db1d0]
mov ebp, edx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x101dbdf8]
shr edx, 8
xor ebx, dword [eax + 4]
shr ecx, 0x10
and edx, 0xff
mov ebp, dword [edx*4 + 0x101db9f8]
mov edx, dword [esp + 0x14]
and ecx, 0xff
xor ebp, dword [ecx*4 + 0x101db5d0]
mov ecx, dword [esp + 0x20]
shr esi, 0x18
xor ebp, dword [esi*4 + 0x101db1d0]
add eax, 4
and edi, 0xff
xor ebp, dword [edi*4 + 0x101dbdf8]
mov edi, dword [esp + 0x10]
xor ebp, dword [eax + 4]
add eax, 4
dec ecx
add eax, 4
mov dword [esp + 0x20], ecx
test ecx, ecx
jg 0x1004a4b0
mov esi, ebx
shr esi, 0x10
and esi, 0xff
mov ecx, ebp
shr ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x101db9f8]
xor ecx, dword [esi*4 + 0x101db5d0]
mov esi, edx
shr esi, 0x18
xor ecx, dword [esi*4 + 0x101db1d0]
mov esi, edi
and esi, 0xff
xor ecx, dword [esi*4 + 0x101dbdf8]
mov esi, edi
xor ecx, dword [eax]
shr esi, 8
mov dword [esp + 0x20], ecx
and esi, 0xff
mov ecx, ebp
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x101db5d0]
xor ecx, dword [esi*4 + 0x101db9f8]
mov esi, ebx
shr esi, 0x18
xor ecx, dword [esi*4 + 0x101db1d0]
mov esi, edx
and esi, 0xff
xor ecx, dword [esi*4 + 0x101dbdf8]
mov esi, edx
xor ecx, dword [eax + 4]
shr edi, 0x10
shr esi, 8
and edi, 0xff
and esi, 0xff
mov esi, dword [esi*4 + 0x101db9f8]
xor esi, dword [edi*4 + 0x101db5d0]
shr edx, 0x10
mov edi, ebp
shr edi, 0x18
xor esi, dword [edi*4 + 0x101db1d0]
mov edi, ebx
shr ebx, 8
and ebx, 0xff
and edx, 0xff
and edi, 0xff
xor esi, dword [edi*4 + 0x101dbdf8]
mov edi, dword [ebx*4 + 0x101db9f8]
xor edi, dword [edx*4 + 0x101db5d0]
mov edx, dword [esp + 0x10]
add eax, 4
xor esi, dword [eax + 4]
shr edx, 0x18
xor edi, dword [edx*4 + 0x101db1d0]
add eax, 4
mov edx, esi
shr edx, 0x10
and edx, 0xff
movzx edx, byte [edx + 0x101dd1f8]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x101dd1f8]
shl ebx, 8
xor edx, ebx
and ebp, 0xff
xor edi, dword [ebp*4 + 0x101dbdf8]
add eax, 4
xor edi, dword [eax]
shl edx, 8
mov ebx, edi
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x101dd1f8]
xor edx, ebx
mov ebx, dword [esp + 0x20]
and ebx, 0xff
movzx ebx, byte [ebx + 0x101dd1f8]
shl edx, 8
add eax, 4
xor edx, ebx
xor edx, dword [eax]
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
movzx ebp, byte [ebx + 0x101dd1f8]
mov ebx, esi
shr ebx, 0x18
movzx ebx, byte [ebx + 0x101dd1f8]
shl ebx, 8
xor ebp, ebx
mov ebx, dword [esp + 0x20]
shl ebp, 8
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x101dd1f8]
xor ebp, ebx
shl ebp, 8
mov ebx, ecx
and ebx, 0xff
movzx ebx, byte [ebx + 0x101dd1f8]
xor ebp, ebx
xor ebp, dword [eax + 4]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
add eax, 4
shr ebx, 0x10
and ebx, 0xff
movzx ebx, byte [ebx + 0x101dd1f8]
mov ebp, edi
shr ebp, 0x18
movzx ebp, byte [ebp + 0x101dd1f8]
shl ebp, 8
xor ebx, ebp
mov ebp, ecx
shr ebp, 8
and ebp, 0xff
movzx ebp, byte [ebp + 0x101dd1f8]
shl ebx, 8
xor ebx, ebp
shr ecx, 0x10
and ecx, 0xff
mov ebp, esi
and ebp, 0xff
movzx ebp, byte [ebp + 0x101dd1f8]
shl ebx, 8
xor ebx, ebp
movzx ebp, byte [ecx + 0x101dd1f8]
mov ecx, dword [esp + 0x20]
xor ebx, dword [eax + 4]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x101dd1f8]
shl ecx, 8
xor ebp, ecx
shr esi, 8
and esi, 0xff
movzx ecx, byte [esi + 0x101dd1f8]
shl ebp, 8
xor ebp, ecx
and edi, 0xff
movzx ecx, byte [edi + 0x101dd1f8]
shl ebp, 8
xor ebp, ecx
xor ebp, dword [eax + 8]
add eax, 4
mov eax, dword [esp + 0x24]
mov ecx, edx
shr ecx, 8
mov byte [eax + 1], cl
mov ecx, edx
mov byte [eax], dl
shr ecx, 0x10
shr edx, 0x18
mov byte [eax + 2], cl
mov ecx, dword [esp + 0x14]
mov byte [eax + 3], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 5], dl
mov dword [esp + 0x20], ebp
mov byte [eax + 4], cl
mov edx, ecx
shr edx, 0x10
shr ecx, 0x18
mov byte [eax + 6], dl
mov byte [eax + 7], cl
mov ecx, ebx
shr ecx, 8
mov edx, ebx
shr edx, 0x10
mov byte [eax + 9], cl
mov ecx, ebp
mov byte [eax + 0xa], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 0xd], dl
pop edi
mov byte [eax + 8], bl
mov edx, ecx
shr ebx, 0x18
mov byte [eax + 0xc], cl
pop esi
shr edx, 0x10
shr ecx, 0x18
mov byte [eax + 0xb], bl
pop ebp
mov byte [eax + 0xe], dl
mov byte [eax + 0xf], cl
xor eax, eax
pop ebx
add esp, 0xc
ret