Function at 0x100606a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x30]
movzx ebx, byte [edx + 3]
movzx ecx, byte [edx + 2]
mov esi, dword [esp + 0x2c]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 1]
shl ebx, 8
or ebx, ecx
mov eax, dword [esi + 4]
movzx ecx, byte [edx]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
mov dword [esp + 0x10], ecx
movzx ecx, byte [edx + 6]
or dword [esp + 0x10], ecx
shl dword [esp + 0x10], 8
movzx ecx, byte [edx + 5]
or dword [esp + 0x10], ecx
movzx ecx, byte [edx + 4]
shl dword [esp + 0x10], 8
or dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
xor ecx, dword [eax + 4]
mov dword [esp + 0x10], ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 0xa]
or dword [esp + 0x2c], ecx
shl dword [esp + 0x2c], 8
movzx ecx, byte [edx + 9]
or dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 8]
shl dword [esp + 0x2c], 8
or dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2c]
xor ecx, dword [eax + 8]
xor ebx, dword [eax]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 0xf]
shl ecx, 8
mov dword [esp + 0x30], ecx
movzx ecx, byte [edx + 0xe]
or dword [esp + 0x30], ecx
movzx ecx, byte [edx + 0xd]
shl dword [esp + 0x30], 8
or dword [esp + 0x30], ecx
shl dword [esp + 0x30], 8
movzx ecx, byte [edx + 0xc]
mov edx, dword [esp + 0x30]
or edx, ecx
mov dword [esp + 0x18], ebx
mov ecx, dword [esi]
xor edx, dword [eax + 0xc]
add eax, 0x10
sar ecx, 1
dec ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ecx
test ecx, ecx
jle 0x10060a0b
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
shr ecx, 8
and ecx, 0xff
mov edi, dword [esp + 0x30]
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x1009d828]
xor edx, dword [ecx*4 + 0x1009d428]
mov ecx, edi
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x1009dc28]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x1009d028]
xor edx, dword [eax]
mov ecx, dword [esp + 0x2c]
shr ecx, 8
mov dword [esp + 0x14], edx
and ecx, 0xff
mov edx, edi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x1009d828]
xor edx, dword [ecx*4 + 0x1009d428]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x1009dc28]
mov ecx, dword [esp + 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x1009d028]
mov ecx, ebx
xor edx, dword [eax + 4]
shr ecx, 0x10
mov dword [esp + 0x1c], edx
and ecx, 0xff
mov edx, edi
shr ebx, 8
shr edx, 8
and ebx, 0xff
and edx, 0xff
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x18]
mov edx, dword [edx*4 + 0x1009d428]
xor edx, dword [ecx*4 + 0x1009d828]
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x1009dc28]
mov ecx, dword [esp + 0x2c]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x1009d028]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xff
mov dword [esp + 0x20], edx
shr edx, 0x10
and edx, 0xff
mov ebx, dword [ecx*4 + 0x1009d828]
xor ebx, dword [esi*4 + 0x1009d428]
mov ecx, dword [esp + 0x2c]
mov esi, dword [edx*4 + 0x1009d828]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x1009dc28]
mov ecx, edi
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x1009d028]
mov ecx, dword [esp + 0x1c]
xor ebx, dword [eax + 0xc]
shr ecx, 8
mov edx, ebx
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1009d428]
mov ecx, ebx
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x1009dc28]
mov ecx, dword [esp + 0x14]
movzx ecx, cl
xor esi, dword [ecx*4 + 0x1009d028]
xor esi, dword [eax + 0x10]
mov dword [esp + 0x18], esi
shr edx, 0x10
mov ecx, dword [esp + 0x20]
and edx, 0xff
shr ecx, 8
and ecx, 0xff
mov esi, dword [esp + 0x14]
shr esi, 8
mov edx, dword [edx*4 + 0x1009d828]
and esi, 0xff
xor edx, dword [ecx*4 + 0x1009d428]
mov ecx, dword [esp + 0x14]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x1009dc28]
mov ecx, dword [esp + 0x1c]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x1009d028]
xor edx, dword [eax + 0x14]
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
mov dword [esp + 0x10], edx
and ecx, 0xff
mov edx, ebx
mov dword [esp + 0x14], esi
shr edx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x1009d428]
xor edx, dword [ecx*4 + 0x1009d828]
mov ecx, dword [esp + 0x1c]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x1009dc28]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
movzx ecx, dl
shr edx, 0x18
xor ebp, dword [ecx*4 + 0x1009d028]
mov ecx, ebp
mov dword [esp + 0x2c], ebp
xor ecx, dword [eax + 0x18]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1009d828]
mov dword [esp + 0x30], ecx
mov ecx, esi
mov edi, dword [esp + 0x30]
xor edi, dword [ecx*4 + 0x1009d428]
mov ecx, edi
mov dword [esp + 0x30], edi
xor ecx, dword [edx*4 + 0x1009dc28]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x30]
movzx ecx, bl
mov ebx, dword [esp + 0x18]
xor edx, dword [ecx*4 + 0x1009d028]
mov ecx, dword [esp + 0x24]
xor edx, dword [eax + 0x1c]
dec ecx
add eax, 0x20
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ecx
test ecx, ecx
jg 0x10060790
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
shr ecx, 8
and ecx, 0xff
shr edx, 0x10
and edx, 0xff
mov esi, dword [esp + 0x18]
shr esi, 8
and esi, 0xff
mov edx, dword [edx*4 + 0x1009d828]
xor edx, dword [ecx*4 + 0x1009d428]
mov ecx, dword [esp + 0x30]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x1009dc28]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x1009d028]
xor edx, dword [eax]
mov ecx, dword [esp + 0x2c]
shr ecx, 8
and ecx, 0xff
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x30]
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x1009d828]
xor edx, dword [ecx*4 + 0x1009d428]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x1009dc28]
mov ecx, dword [esp + 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x1009d028]
mov ecx, ebx
xor edx, dword [eax + 4]
shr ecx, 0x10
and ecx, 0xff
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x30]
shr edx, 8
and edx, 0xff
mov ebx, dword [edx*4 + 0x1009d428]
xor ebx, dword [ecx*4 + 0x1009d828]
mov edx, dword [esp + 0x10]
mov ecx, edx
shr ecx, 0x18
shr edx, 0x10
and edx, 0xff
xor ebx, dword [ecx*4 + 0x1009dc28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edx*4 + 0x1009d828]
xor edx, dword [esi*4 + 0x1009d428]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x1009d028]
mov ecx, dword [esp + 0x2c]
xor ebx, dword [eax + 8]
shr ecx, 0x18
mov dword [esp + 0x14], ebx
xor edx, dword [ecx*4 + 0x1009dc28]
mov ecx, dword [esp + 0x30]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x1009d028]
mov ecx, ebx
xor edx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xff
mov dword [esp + 0x24], edx
movzx ebx, byte [ecx + 0x1009cf28]
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx + 0x1009cf28]
shl ecx, 8
xor ebx, ecx
mov ecx, dword [esp + 0x1c]
shr ecx, 8
and ecx, 0xff
shl ebx, 8
movzx ecx, byte [ecx + 0x1009cf28]
xor ebx, ecx
mov ecx, dword [esp + 0x20]
shl ebx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x1009cf28]
xor ebx, ecx
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
xor ebx, dword [eax + 0x10]
mov dword [esp + 0x2c], ebx
movzx edx, byte [ecx + 0x1009cf28]
mov ecx, dword [esp + 0x20]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x1009cf28]
shl ecx, 8
xor edx, ecx
mov ecx, dword [esp + 0x14]
shr ecx, 8
and ecx, 0xff
shl edx, 8
movzx ecx, byte [ecx + 0x1009cf28]
xor edx, ecx
mov ecx, dword [esp + 0x1c]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x1009cf28]
xor edx, ecx
mov ecx, dword [esp + 0x20]
xor edx, dword [eax + 0x14]
shr ecx, 0x10
and ecx, 0xff
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
movzx ebx, byte [ecx + 0x1009cf28]
mov ecx, edx
shr ecx, 0x18
shr edx, 0x10
and edx, 0xff
movzx ecx, byte [ecx + 0x1009cf28]
shl ecx, 8
xor ebx, ecx
movzx edx, byte [edx + 0x1009cf28]
mov ecx, dword [esp + 0x24]
shr ecx, 8
and ecx, 0xff
shl ebx, 8
movzx ecx, byte [ecx + 0x1009cf28]
xor ebx, ecx
mov ecx, dword [esp + 0x14]
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x1009cf28]
xor ebx, ecx
mov ecx, dword [esp + 0x14]
shr ecx, 0x18
xor ebx, dword [eax + 0x18]
movzx ecx, byte [ecx + 0x1009cf28]
shl ecx, 8
xor edx, ecx
mov ecx, dword [esp + 0x20]
shr ecx, 8
and ecx, 0xff
shl edx, 8
movzx ecx, byte [ecx + 0x1009cf28]
xor edx, ecx
mov ecx, dword [esp + 0x24]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x1009cf28]
xor edx, ecx
mov ecx, dword [esp + 0x34]
xor edx, dword [eax + 0x1c]
mov eax, dword [esp + 0x2c]
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [esp + 0x2c]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [esp + 0x2c]
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, dword [esp + 0x30]
mov byte [ecx + 4], al
shr eax, 8
mov byte [ecx + 5], al
mov eax, dword [esp + 0x30]
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, dword [esp + 0x30]
shr eax, 0x18
mov byte [ecx + 7], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 9], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 0xa], al
mov eax, edx
shr eax, 8
mov byte [ecx + 0xd], al
mov eax, edx
pop edi
mov byte [ecx + 8], bl
shr ebx, 0x18
pop esi
shr eax, 0x10
mov byte [ecx + 0xc], dl
shr edx, 0x18
pop ebp
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xe], al
xor eax, eax
mov byte [ecx + 0xf], dl
pop ebx
add esp, 0x18
ret