Function at 0x4064ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
movzx edx, byte [eax + 1]
push ebx
push esi
mov esi, dword [ecx + 4]
xor ecx, ecx
mov ch, byte [eax + 3]
movzx ebx, byte [eax + 5]
push 4
mov cl, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax]
shl ecx, 8
or ecx, edx
xor ecx, dword [esi]
pop edx
mov dword [ebp - 4], ecx
xor ecx, ecx
mov ch, byte [eax + 7]
add esi, edx
mov cl, byte [eax + 6]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [eax + 4]
shl ecx, 8
or ecx, ebx
xor ecx, dword [esi]
movzx ebx, byte [eax + 9]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov ch, byte [eax + 0xb]
add esi, edx
mov cl, byte [eax + 0xa]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [eax + 8]
shl ecx, 8
or ecx, ebx
xor ecx, dword [esi]
movzx ebx, byte [eax + 0xd]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
mov ch, byte [eax + 0xf]
add esi, edx
mov cl, byte [eax + 0xe]
movzx eax, byte [eax + 0xc]
shl ecx, 8
or ecx, ebx
shl ecx, 8
or ecx, eax
xor ecx, dword [esi]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
sar ecx, 1
add esi, edx
dec ecx
test ecx, ecx
mov dword [ebp - 0x18], ecx
mov eax, 0xff
jle 0x406737
mov ecx, dword [ebp - 0xc]
movzx ebx, byte [ebp - 7]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x460450]
xor ecx, dword [ebx*4 + 0x460850]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x460050]
mov ebx, dword [ebp - 4]
and ebx, eax
xor ecx, dword [ebx*4 + 0x460c50]
movzx ebx, byte [ebp - 0xb]
xor ecx, dword [esi]
add esi, edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x460450]
xor ecx, dword [ebx*4 + 0x460850]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x460050]
mov ebx, dword [ebp - 8]
and ebx, eax
xor ecx, dword [ebx*4 + 0x460c50]
mov ebx, dword [ebp - 4]
xor ecx, dword [esi]
add esi, edx
movzx edx, byte [ebp - 0xf]
mov edx, dword [edx*4 + 0x460850]
shr ebx, 0x10
and ebx, eax
xor edx, dword [ebx*4 + 0x460450]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x460050]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edx, dword [ebx*4 + 0x460c50]
movzx ebx, byte [ebp - 3]
xor edx, dword [esi]
add esi, 4
mov dword [ebp + 8], edx
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x460450]
xor edx, dword [ebx*4 + 0x460850]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x460050]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edx, dword [ebx*4 + 0x460c50]
movzx ebx, ch
xor edx, dword [esi]
add esi, 4
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 8]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x460450]
xor edx, dword [ebx*4 + 0x460850]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x460050]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edx, dword [ebx*4 + 0x460c50]
movzx ebx, byte [ebp + 9]
xor edx, dword [esi]
add esi, 4
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x460450]
xor edx, dword [ebx*4 + 0x460850]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x460050]
mov ebx, ecx
and ebx, eax
xor edx, dword [ebx*4 + 0x460c50]
mov ebx, dword [ebp - 0x14]
xor edx, dword [esi]
shr ebx, 0x10
mov dword [ebp - 8], edx
movzx edx, byte [ebp - 0xf]
mov edx, dword [edx*4 + 0x460850]
and ebx, eax
xor edx, dword [ebx*4 + 0x460450]
mov ebx, ecx
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x460050]
mov ebx, dword [ebp + 8]
and ebx, eax
xor edx, dword [ebx*4 + 0x460c50]
movzx ebx, byte [ebp - 0x13]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x460450]
xor ecx, dword [ebx*4 + 0x460850]
add esi, 4
xor edx, dword [esi]
mov ebx, ecx
mov ecx, dword [ebp + 8]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x460050]
mov ecx, dword [ebp - 0x10]
and ecx, eax
xor ebx, dword [ecx*4 + 0x460c50]
push 4
mov dword [ebp - 0xc], edx
pop edx
add esi, edx
xor ebx, dword [esi]
add esi, edx
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x10], ebx
jg 0x40655a
mov ecx, dword [ebp - 0xc]
movzx ebx, byte [ebp - 7]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x460450]
xor ecx, dword [ebx*4 + 0x460850]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x460050]
mov ebx, dword [ebp - 4]
and ebx, eax
xor ecx, dword [ebx*4 + 0x460c50]
movzx ebx, byte [ebp - 0xb]
xor ecx, dword [esi]
add esi, edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x460450]
xor ecx, dword [ebx*4 + 0x460850]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x460050]
mov ebx, dword [ebp - 8]
and ebx, eax
xor ecx, dword [ebx*4 + 0x460c50]
mov ebx, dword [ebp - 4]
xor ecx, dword [esi]
add esi, edx
movzx edx, byte [ebp - 0xf]
mov edx, dword [edx*4 + 0x460850]
shr ebx, 0x10
and ebx, eax
xor edx, dword [ebx*4 + 0x460450]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x460050]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edx, dword [ebx*4 + 0x460c50]
movzx ebx, byte [ebp - 3]
xor edx, dword [esi]
add esi, 4
mov dword [ebp + 8], edx
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x460450]
xor edx, dword [ebx*4 + 0x460850]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
shr edx, 0x18
mov edx, dword [edx*4 + 0x460050]
xor dword [ebp - 8], edx
mov edx, dword [ebp - 0x10]
and edx, eax
mov edx, dword [edx*4 + 0x460c50]
xor dword [ebp - 8], edx
mov edx, dword [ebp - 8]
xor edx, dword [esi]
shr ebx, 0x10
and ebx, eax
movzx ebx, byte [ebx + 0x45ef28]
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov dword [ebp - 0x10], edx
shr edx, 0x18
mov bh, byte [edx + 0x45ef28]
add esi, 4
xor dword [ebp - 0x18], ebx
mov edx, dword [ebp - 0x18]
movzx ebx, ch
movzx ebx, byte [ebx + 0x45ef28]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shl edx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x45ef28]
xor edx, ebx
xor edx, dword [esi]
xor ebx, ebx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x45ef28]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x14]
shr edx, 0x18
mov bh, byte [edx + 0x45ef28]
add esi, 4
xor dword [ebp - 0x18], ebx
movzx ebx, byte [ebp + 9]
movzx ebx, byte [ebx + 0x45ef28]
mov edx, dword [ebp - 0x18]
shl edx, 8
xor edx, ebx
mov ebx, ecx
and ebx, eax
movzx ebx, byte [ebx + 0x45ef28]
shl edx, 8
xor edx, ebx
xor edx, dword [esi]
xor ebx, ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x14]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x45ef28]
mov dword [ebp - 0x18], edx
mov edx, ecx
shr edx, 0x18
mov bh, byte [edx + 0x45ef28]
mov edx, dword [ebp - 0x18]
shr ecx, 0x10
and ecx, eax
movzx ecx, byte [ecx + 0x45ef28]
xor edx, ebx
movzx ebx, byte [ebp - 0xf]
movzx ebx, byte [ebx + 0x45ef28]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp + 8]
and ebx, eax
movzx ebx, byte [ebx + 0x45ef28]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
xor edx, ebx
xor ebx, ebx
mov bh, byte [ecx + 0x45ef28]
mov ecx, dword [ebp - 0x18]
add esi, 4
xor edx, dword [esi]
xor ecx, ebx
movzx ebx, byte [ebp - 0x13]
movzx ebx, byte [ebx + 0x45ef28]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [ebp - 0x10]
and ebx, eax
movzx eax, byte [ebx + 0x45ef28]
shl ecx, 8
xor ecx, eax
mov eax, dword [ebp - 4]
xor ecx, dword [esi + 4]
mov ebx, eax
shr ebx, 8
mov byte [edi + 1], bl
mov ebx, eax
shr ebx, 0x10
mov byte [edi], al
shr eax, 0x18
mov byte [edi + 3], al
mov eax, dword [ebp - 8]
mov byte [edi + 2], bl
mov byte [edi + 4], al
mov ebx, eax
shr ebx, 8
mov byte [edi + 5], bl
mov ebx, eax
shr eax, 0x18
mov byte [edi + 7], al
mov eax, edx
shr eax, 8
mov byte [edi + 9], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xa], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xd], al
mov eax, ecx
shr ebx, 0x10
mov byte [edi + 8], dl
shr edx, 0x18
shr eax, 0x10
mov byte [edi + 0xc], cl
shr ecx, 0x18
pop esi
mov byte [edi + 6], bl
mov byte [edi + 0xb], dl
mov byte [edi + 0xe], al
mov byte [edi + 0xf], cl
pop ebx
leave
ret