Function at 0x40eee8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, edx
mov edx, dword [esi + 0x100]
push edi
mov edi, edx
shl edi, 4
add edi, esi
test byte [esi + 0x104], 2
jne 0x40ef0f
xor eax, eax
jmp 0x40f1f1
push ebx
xor ebx, ebx
mov bh, byte [ecx + 3]
movzx esi, byte [ecx + 1]
mov bl, byte [ecx + 2]
shl ebx, 8
or ebx, esi
movzx esi, byte [ecx]
shl ebx, 8
or ebx, esi
xor ebx, dword [edi]
movzx esi, byte [ecx + 5]
mov dword [ebp - 0x28], ebx
xor ebx, ebx
mov bh, byte [ecx + 7]
mov bl, byte [ecx + 6]
shl ebx, 8
or ebx, esi
movzx esi, byte [ecx + 4]
shl ebx, 8
or ebx, esi
xor ebx, dword [edi + 4]
movzx esi, byte [ecx + 9]
mov dword [ebp - 0x24], ebx
xor ebx, ebx
mov bh, byte [ecx + 0xb]
mov bl, byte [ecx + 0xa]
shl ebx, 8
or ebx, esi
movzx esi, byte [ecx + 8]
shl ebx, 8
or ebx, esi
xor ebx, dword [edi + 8]
movzx esi, byte [ecx + 0xd]
mov dword [ebp - 0x20], ebx
xor ebx, ebx
mov bh, byte [ecx + 0xf]
mov bl, byte [ecx + 0xe]
movzx ecx, byte [ecx + 0xc]
shl ebx, 8
or ebx, esi
shl ebx, 8
or ebx, ecx
xor ebx, dword [edi + 0xc]
dec edx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x28]
lea esi, [ebp - 0x18]
je 0x40f088
mov dword [ebp - 4], edx
mov edx, dword [ecx + 0xc]
movzx ebx, byte [ecx + 0xa]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x422dc0]
xor edx, dword [ebx*4 + 0x4231c0]
movzx ebx, byte [ecx + 7]
xor edx, dword [ebx*4 + 0x4235c0]
movzx ebx, byte [ecx]
xor edx, dword [ebx*4 + 0x4229c0]
sub edi, 0x10
xor edx, dword [edi]
mov dword [esi], edx
mov edx, dword [ecx]
movzx ebx, byte [ecx + 0xe]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x422dc0]
xor edx, dword [ebx*4 + 0x4231c0]
movzx ebx, byte [ecx + 0xb]
xor edx, dword [ebx*4 + 0x4235c0]
movzx ebx, byte [ecx + 4]
xor edx, dword [ebx*4 + 0x4229c0]
xor edx, dword [edi + 4]
mov dword [esi + 4], edx
mov edx, dword [ecx + 4]
movzx ebx, byte [ecx + 0xf]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x422dc0]
xor edx, dword [ebx*4 + 0x4235c0]
movzx ebx, byte [ecx + 2]
xor edx, dword [ebx*4 + 0x4231c0]
movzx ebx, byte [ecx + 8]
xor edx, dword [ebx*4 + 0x4229c0]
xor edx, dword [edi + 8]
mov dword [esi + 8], edx
mov edx, dword [ecx + 8]
movzx ebx, byte [ecx + 6]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x422dc0]
xor edx, dword [ebx*4 + 0x4231c0]
movzx ebx, byte [ecx + 3]
xor edx, dword [ebx*4 + 0x4235c0]
movzx ebx, byte [ecx + 0xc]
xor edx, dword [ebx*4 + 0x4229c0]
xor edx, dword [edi + 0xc]
dec dword [ebp - 4]
mov dword [esi + 0xc], edx
mov edx, ecx
mov ecx, esi
mov esi, edx
jne 0x40ef9e
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
shr edx, 0x10
movzx edx, dl
mov ebx, dword [ebp - 0x18]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x420540]
xor ecx, dword [edx*4 + 0x420140]
mov edx, dword [ebp - 0xc]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x41fd40]
movzx edx, bl
xor ecx, dword [edx*4 + 0x41f940]
mov edx, dword [ebp - 0x10]
shr edx, 0x18
mov esi, dword [edx*4 + 0x420540]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov edx, ebx
shr edx, 8
movzx edx, dl
shr eax, 0x10
movzx eax, al
xor esi, dword [eax*4 + 0x420140]
mov eax, dword [ebp - 0xc]
xor esi, dword [edx*4 + 0x41fd40]
movzx edx, byte [ebp - 0x14]
xor esi, dword [edx*4 + 0x41f940]
mov edx, dword [ebp - 0x14]
xor esi, dword [edi - 0xc]
shr edx, 8
movzx edx, dl
sub edi, 0x10
mov dword [ebp - 0x24], esi
mov esi, dword [edx*4 + 0x41fd40]
xor ecx, dword [edi]
mov edx, ebx
shr edx, 0x10
movzx edx, dl
shr eax, 0x18
xor esi, dword [eax*4 + 0x420540]
shr ebx, 0x18
xor esi, dword [edx*4 + 0x420140]
movzx edx, byte [ebp - 0x10]
xor esi, dword [edx*4 + 0x41f940]
mov edx, dword [ebp - 0x14]
xor esi, dword [edi + 8]
shr edx, 0x10
mov dword [ebp - 0x20], esi
movzx esi, dl
mov edx, dword [ebp - 0x10]
shr edx, 8
movzx eax, dl
mov edx, dword [esi*4 + 0x420140]
xor edx, dword [eax*4 + 0x41fd40]
mov eax, dword [ebp - 8]
mov esi, ebx
xor edx, dword [esi*4 + 0x420540]
movzx esi, byte [ebp - 0xc]
xor edx, dword [esi*4 + 0x41f940]
mov dword [ebp - 4], ebx
xor edx, dword [edi + 0xc]
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
mov ebx, ecx
mov byte [eax], cl
shr ebx, 0x10
shr ecx, 0x18
mov byte [eax + 2], bl
mov byte [eax + 3], cl
mov ecx, dword [ebp - 0x24]
mov ebx, ecx
shr ebx, 8
mov byte [eax + 5], bl
mov ebx, ecx
shr ebx, 0x10
mov byte [eax + 4], cl
mov byte [eax + 6], bl
shr ecx, 0x18
mov byte [eax + 7], cl
mov ecx, dword [ebp - 0x20]
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 byte [eax + 0xc], dl
mov ecx, edx
shr ebx, 0x10
shr ecx, 0x10
shr edx, 0x18
mov byte [eax + 0xa], bl
mov byte [eax + 0xe], cl
mov byte [eax + 0xf], dl
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret