Function at 0x10008052
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx edx, byte [eax + 2]
push ebx
push esi
movzx esi, byte [eax + 3]
shl esi, 8
or esi, edx
movzx edx, byte [eax + 1]
push edi
movzx edi, byte [eax + 6]
movzx ebx, byte [eax + 0xa]
shl esi, 8
or esi, edx
movzx edx, byte [eax]
shl esi, 8
or esi, edx
movzx edx, byte [eax + 7]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 5]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 4]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xb]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 9]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 8]
shl edi, 8
or edi, ebx
xor edi, dword [ecx + 8]
movzx ebx, byte [eax + 0xe]
xor esi, dword [ecx]
xor edx, dword [ecx + 4]
mov dword [ebp - 4], edi
movzx edi, byte [eax + 0xf]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 0xd]
movzx eax, byte [eax + 0xc]
shl edi, 8
or edi, ebx
shl edi, 8
or edi, eax
xor edi, dword [ecx + 0xc]
mov eax, dword [ebp + 8]
add ecx, 0x10
cmp dword [ebp + 0xc], 0
mov dword [ebp - 8], edi
jne 0x100084f8
mov ebx, dword [eax]
sar ebx, 1
dec ebx
mov dword [ebp - 0xc], ebx
mov eax, 0xff
test ebx, ebx
jle 0x100082f4
mov ebx, dword [ebp - 4]
shr ebx, 0x10
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x1c00928]
xor edi, dword [ebx*4 + 0x1c00500]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c00100]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x1c00d28]
mov ebx, esi
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 8]
and ebx, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x1c00500]
xor edi, dword [ebx*4 + 0x1c00928]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c00100]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x1c00d28]
mov ebx, esi
xor edi, dword [ecx + 4]
shr ebx, 0x10
and ebx, eax
mov dword [ebp + 8], edi
mov edi, edx
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x1c00928]
xor edi, dword [ebx*4 + 0x1c00500]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c00100]
mov ebx, dword [ebp - 4]
and ebx, eax
xor edi, dword [ebx*4 + 0x1c00d28]
mov ebx, dword [ebp - 4]
xor edi, dword [ecx + 8]
shr ebx, 8
and ebx, eax
shr edx, 0x10
and edx, eax
mov dword [ebp - 4], edx
mov edx, dword [ebx*4 + 0x1c00928]
mov ebx, dword [ebp - 4]
xor edx, dword [ebx*4 + 0x1c00500]
shr esi, 0x18
xor edx, dword [esi*4 + 0x1c00100]
mov esi, dword [ebp - 8]
and esi, eax
xor edx, dword [esi*4 + 0x1c00d28]
mov ebx, edi
xor edx, dword [ecx + 0xc]
shr ebx, 0x10
mov esi, edx
shr esi, 8
and esi, eax
mov esi, dword [esi*4 + 0x1c00928]
and ebx, eax
xor esi, dword [ebx*4 + 0x1c00500]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x1c00100]
mov ebx, dword [ebp + 0xc]
and ebx, eax
xor esi, dword [ebx*4 + 0x1c00d28]
mov ebx, dword [ebp + 0xc]
xor esi, dword [ecx + 0x10]
mov dword [ebp - 8], edx
shr edx, 0x10
mov dword [ebp - 0x10], edi
and edx, eax
mov edx, dword [edx*4 + 0x1c00500]
shr ebx, 8
and ebx, eax
xor edx, dword [ebx*4 + 0x1c00928]
mov ebx, dword [ebp + 0xc]
shr edi, 0x18
xor edx, dword [edi*4 + 0x1c00100]
mov edi, dword [ebp + 8]
and edi, eax
xor edx, dword [edi*4 + 0x1c00d28]
mov edi, dword [ebp + 8]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x1c00928]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x1c00500]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c00100]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x1c00d28]
mov ebx, dword [ebp - 0x10]
xor edi, dword [ecx + 0x18]
xor edx, dword [ecx + 0x14]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
shr ebx, 8
shr edi, 0x10
and ebx, eax
mov ebx, dword [ebx*4 + 0x1c00928]
and edi, eax
xor ebx, dword [edi*4 + 0x1c00500]
mov edi, dword [ebp + 0xc]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x1c00100]
mov edi, dword [ebp - 8]
and edi, eax
xor ebx, dword [edi*4 + 0x1c00d28]
add ecx, 0x20
xor ebx, dword [ecx - 4]
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
mov edi, ebx
mov dword [ebp - 8], edi
jg 0x10008112
mov ebx, dword [ebp - 4]
shr ebx, 0x10
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x1c00928]
xor edi, dword [ebx*4 + 0x1c00500]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c00100]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x1c00d28]
mov ebx, esi
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 8]
and ebx, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x1c00500]
xor edi, dword [ebx*4 + 0x1c00928]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c00100]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x1c00d28]
mov ebx, esi
xor edi, dword [ecx + 4]
shr ebx, 0x10
mov dword [ebp + 8], edi
mov edi, edx
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x1c00928]
xor edi, dword [ebx*4 + 0x1c00500]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c00100]
mov ebx, dword [ebp - 4]
shr edx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x1c00d28]
mov ebx, dword [ebp - 4]
xor edi, dword [ecx + 8]
and edx, eax
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x1c00928]
xor ebx, dword [edx*4 + 0x1c00500]
mov edx, dword [ebp - 8]
and edx, eax
shr esi, 0x18
xor ebx, dword [esi*4 + 0x1c00100]
xor ebx, dword [edx*4 + 0x1c00d28]
mov edx, edi
xor ebx, dword [ecx + 0xc]
shr edx, 0x10
and edx, eax
movzx esi, byte [edx + 0x1c02128]
mov edx, dword [ebp + 8]
shr edx, 0x18
movzx edx, byte [edx + 0x1c02128]
shl edx, 8
xor esi, edx
mov edx, ebx
shr edx, 8
and edx, eax
movzx edx, byte [edx + 0x1c02128]
shl esi, 8
xor esi, edx
mov edx, dword [ebp + 0xc]
and edx, eax
movzx edx, byte [edx + 0x1c02128]
shl esi, 8
xor esi, edx
xor esi, dword [ecx + 0x10]
mov dword [ebp - 0x10], esi
mov edx, ebx
shr edx, 0x10
and edx, eax
movzx esi, byte [edx + 0x1c02128]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + 0x1c02128]
shl edx, 8
xor esi, edx
mov edx, dword [ebp + 0xc]
shr edx, 8
and edx, eax
movzx edx, byte [edx + 0x1c02128]
shl esi, 8
xor esi, edx
mov edx, dword [ebp + 8]
and edx, eax
movzx edx, byte [edx + 0x1c02128]
shl esi, 8
xor esi, edx
xor esi, dword [ecx + 0x14]
mov edx, dword [ebp + 0xc]
shr edx, 0x10
and edx, eax
mov dword [ebp - 0xc], esi
movzx esi, byte [edx + 0x1c02128]
mov edx, ebx
shr edx, 0x18
movzx edx, byte [edx + 0x1c02128]
shl edx, 8
xor esi, edx
mov edx, dword [ebp + 8]
shr edx, 8
and edx, eax
movzx edx, byte [edx + 0x1c02128]
shl esi, 8
xor esi, edx
mov edx, edi
and edx, eax
movzx edx, byte [edx + 0x1c02128]
shl esi, 8
xor esi, edx
xor esi, dword [ecx + 0x18]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x1c02128]
shr esi, 0x18
movzx esi, byte [esi + 0x1c02128]
shl esi, 8
xor edx, esi
shr edi, 8
and edi, eax
movzx esi, byte [edi + 0x1c02128]
shl edx, 8
and ebx, eax
movzx eax, byte [ebx + 0x1c02128]
xor edx, esi
shl edx, 8
xor edx, eax
xor edx, dword [ecx + 0x1c]
jmp 0x100088f8
mov edi, dword [eax]
sar edi, 1
dec edi
mov dword [ebp - 0xc], edi
mov eax, 0xff
test edi, edi
jle 0x100086f1
mov edi, dword [ebp - 4]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x1c01528]
mov ebx, edx
shr ebx, 8
and ebx, eax
xor edi, dword [ebx*4 + 0x1c01928]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c01128]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x1c01d28]
mov ebx, dword [ebp - 4]
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 8]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x1c01528]
and ebx, eax
xor edi, dword [ebx*4 + 0x1c01928]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c01128]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x1c01d28]
mov ebx, esi
xor edi, dword [ecx + 4]
shr ebx, 0x10
mov dword [ebp + 8], edi
mov edi, dword [ebp - 8]
shr edi, 8
and edi, eax
and ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [edi*4 + 0x1c01928]
mov edi, dword [ebp - 0x10]
xor ebx, dword [edi*4 + 0x1c01528]
mov edi, edx
shr edx, 0x10
shr edi, 0x18
xor ebx, dword [edi*4 + 0x1c01128]
mov edi, dword [ebp - 4]
and edx, eax
shr esi, 8
and edi, eax
xor ebx, dword [edi*4 + 0x1c01d28]
mov edi, dword [edx*4 + 0x1c01528]
mov edx, dword [ebp - 4]
xor ebx, dword [ecx + 8]
and esi, eax
xor edi, dword [esi*4 + 0x1c01928]
mov esi, dword [ebp + 8]
shr edx, 0x18
xor edi, dword [edx*4 + 0x1c01128]
mov edx, dword [ebp - 8]
and edx, eax
xor edi, dword [edx*4 + 0x1c01d28]
shr esi, 8
xor edi, dword [ecx + 0xc]
mov edx, ebx
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x1c01528]
and esi, eax
xor edx, dword [esi*4 + 0x1c01928]
mov esi, edi
shr esi, 0x18
xor edx, dword [esi*4 + 0x1c01128]
mov esi, dword [ebp + 0xc]
and esi, eax
xor edx, dword [esi*4 + 0x1c01d28]
mov dword [ebp - 0x10], ebx
xor edx, dword [ecx + 0x10]
mov dword [ebp - 8], edi
mov esi, edx
mov edx, edi
shr ebx, 8
and ebx, eax
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x1c01528]
xor edx, dword [ebx*4 + 0x1c01928]
mov ebx, dword [ebp + 0xc]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x1c01128]
mov ebx, dword [ebp + 8]
and ebx, eax
xor edx, dword [ebx*4 + 0x1c01d28]
mov ebx, dword [ebp + 0xc]
shr edi, 8
shr ebx, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x1c01928]
and ebx, eax
xor edi, dword [ebx*4 + 0x1c01528]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c01128]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x1c01d28]
mov ebx, dword [ebp + 8]
xor edi, dword [ecx + 0x18]
xor edx, dword [ecx + 0x14]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
shr ebx, 0x10
and ebx, eax
mov ebx, dword [ebx*4 + 0x1c01528]
shr edi, 8
and edi, eax
xor ebx, dword [edi*4 + 0x1c01928]
mov edi, dword [ebp - 0x10]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x1c01128]
mov edi, dword [ebp - 8]
and edi, eax
xor ebx, dword [edi*4 + 0x1c01d28]
add ecx, 0x20
xor ebx, dword [ecx - 4]
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
mov dword [ebp - 8], ebx
jg 0x1000850d
mov edi, dword [ebp - 4]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x1c01528]
mov ebx, edx
shr ebx, 8
and ebx, eax
xor edi, dword [ebx*4 + 0x1c01928]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c01128]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x1c01d28]
mov ebx, dword [ebp - 4]
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 8]
and ebx, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x1c01528]
xor edi, dword [ebx*4 + 0x1c01928]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c01128]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x1c01d28]
mov ebx, esi
xor edi, dword [ecx + 4]
shr ebx, 0x10
and ebx, eax
mov dword [ebp + 8], edi
mov edi, dword [ebp - 8]
shr edi, 8
shr esi, 8
and edi, eax
mov edi, dword [edi*4 + 0x1c01928]
xor edi, dword [ebx*4 + 0x1c01528]
and esi, eax
mov ebx, edx
shr edx, 0x10
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1c01128]
mov ebx, dword [ebp - 4]
and edx, eax
mov edx, dword [edx*4 + 0x1c01528]
xor edx, dword [esi*4 + 0x1c01928]
mov esi, dword [ebp - 4]
shr esi, 0x18
xor edx, dword [esi*4 + 0x1c01128]
mov esi, dword [ebp - 8]
and ebx, eax
xor edi, dword [ebx*4 + 0x1c01d28]
and esi, eax
xor edx, dword [esi*4 + 0x1c01d28]
xor edi, dword [ecx + 8]
xor edx, dword [ecx + 0xc]
mov esi, edi
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + 0x1c00000]
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x1c00000]
shl ebx, 8
xor esi, ebx
mov ebx, dword [ebp + 8]
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x1c00000]
shl esi, 8
xor esi, ebx
mov ebx, dword [ebp + 0xc]
and ebx, eax
movzx ebx, byte [ebx + 0x1c00000]
shl esi, 8
xor esi, ebx
xor esi, dword [ecx + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
shr ebx, 0x18
movzx ebx, byte [ebx + 0x1c00000]
shl ebx, 8
mov esi, edx
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + 0x1c00000]
xor esi, ebx
shl esi, 8
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x1c00000]
xor esi, ebx
mov ebx, dword [ebp + 8]
shl esi, 8
and ebx, eax
movzx ebx, byte [ebx + 0x1c00000]
xor esi, ebx
xor esi, dword [ecx + 0x14]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0xc]
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + 0x1c00000]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x1c00000]
shl ebx, 8
xor esi, ebx
shl esi, 8
mov ebx, edx
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x1c00000]
xor esi, ebx
mov ebx, edi
shl esi, 8
and ebx, eax
movzx ebx, byte [ebx + 0x1c00000]
xor esi, ebx
xor esi, dword [ecx + 0x18]
shr edi, 0x18
movzx edi, byte [edi + 0x1c00000]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + 0x1c00000]
shl edi, 8
xor esi, edi
mov edi, dword [ebp + 0xc]
shr edi, 8
and edi, eax
movzx edi, byte [edi + 0x1c00000]
shl esi, 8
and edx, eax
movzx eax, byte [edx + 0x1c00000]
xor esi, edi
shl esi, 8
xor esi, eax
xor esi, dword [ecx + 0x1c]
mov dword [ebp - 8], esi
mov edx, esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
mov byte [eax], cl
mov ebx, ecx
shr ecx, 0x18
shr ebx, 0x10
mov byte [eax + 3], cl
mov ecx, dword [ebp - 0xc]
mov byte [eax + 2], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 5], bl
mov byte [eax + 4], cl
mov ebx, ecx
shr ecx, 0x18
shr ebx, 0x10
mov byte [eax + 7], cl
mov ecx, dword [ebp - 4]
mov byte [eax + 6], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 8], cl
mov byte [eax + 9], bl
mov ebx, ecx
shr ecx, 0x18
mov byte [eax + 0xb], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 0xd], cl
mov ecx, edx
shr ebx, 0x10
mov byte [eax + 0xc], dl
pop edi
shr ecx, 0x10
shr edx, 0x18
mov byte [eax + 0xa], bl
pop esi
mov byte [eax + 0xe], cl
mov byte [eax + 0xf], dl
xor eax, eax
pop ebx
leave
ret