Function at 0x4069bd
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 0x406c43
movzx ecx, byte [ebp - 0xf]
mov ecx, dword [ecx*4 + 0x45f850]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x10
and ebx, eax
xor ecx, dword [ebx*4 + 0x45f428]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x45f028]
mov ebx, dword [ebp - 4]
and ebx, eax
xor ecx, dword [ebx*4 + 0x45fc50]
movzx ebx, byte [ebp - 3]
xor ecx, dword [esi]
add esi, edx
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x45f428]
xor ecx, dword [ebx*4 + 0x45f850]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x45f028]
mov ebx, dword [ebp - 8]
and ebx, eax
xor ecx, dword [ebx*4 + 0x45fc50]
mov ebx, dword [ebp - 4]
xor ecx, dword [esi]
add esi, edx
movzx edx, byte [ebp - 7]
mov edx, dword [edx*4 + 0x45f850]
shr ebx, 0x10
and ebx, eax
xor edx, dword [ebx*4 + 0x45f428]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45f028]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edx, dword [ebx*4 + 0x45fc50]
mov ebx, dword [ebp - 8]
xor edx, dword [esi]
shr ebx, 0x10
mov dword [ebp - 0x14], edx
movzx edx, byte [ebp - 0xb]
mov edx, dword [edx*4 + 0x45f850]
and ebx, eax
xor edx, dword [ebx*4 + 0x45f428]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45f028]
mov ebx, dword [ebp - 0x10]
and ebx, eax
xor edx, dword [ebx*4 + 0x45fc50]
mov ebx, dword [ebp - 0x14]
add esi, 4
xor edx, dword [esi]
shr ebx, 0x10
mov dword [ebp - 0x10], edx
movzx edx, dh
mov edx, dword [edx*4 + 0x45f850]
and ebx, eax
xor edx, dword [ebx*4 + 0x45f428]
mov ebx, ecx
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45f028]
mov ebx, dword [ebp + 8]
and ebx, eax
xor edx, dword [ebx*4 + 0x45fc50]
movzx ebx, byte [ebp + 9]
add esi, 4
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 + 0x45f428]
xor edx, dword [ebx*4 + 0x45f850]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45f028]
mov ebx, ecx
and ebx, eax
xor edx, dword [ebx*4 + 0x45fc50]
mov ebx, dword [ebp + 8]
xor edx, dword [esi]
shr ebx, 0x10
and ebx, eax
mov dword [ebp - 8], edx
movzx edx, ch
mov edx, dword [edx*4 + 0x45f850]
xor edx, dword [ebx*4 + 0x45f428]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45f028]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edx, dword [ebx*4 + 0x45fc50]
movzx ebx, byte [ebp - 0x13]
mov ebx, dword [ebx*4 + 0x45f850]
shr ecx, 0x10
and ecx, eax
xor ebx, dword [ecx*4 + 0x45f428]
mov ecx, dword [ebp + 8]
add esi, 4
xor edx, dword [esi]
shr ecx, 0x18
xor ebx, dword [ecx*4 + 0x45f028]
mov ecx, dword [ebp - 0x10]
and ecx, eax
xor ebx, dword [ecx*4 + 0x45fc50]
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 0x406a69
mov ebx, dword [ebp - 0xc]
movzx ecx, byte [ebp - 0xf]
mov ecx, dword [ecx*4 + 0x45f850]
shr ebx, 0x10
and ebx, eax
xor ecx, dword [ebx*4 + 0x45f428]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x45f028]
mov ebx, dword [ebp - 4]
and ebx, eax
xor ecx, dword [ebx*4 + 0x45fc50]
movzx ebx, byte [ebp - 3]
xor ecx, dword [esi]
add esi, edx
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, eax
mov ecx, dword [ecx*4 + 0x45f428]
xor ecx, dword [ebx*4 + 0x45f850]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x45f028]
mov ebx, dword [ebp - 8]
and ebx, eax
xor ecx, dword [ebx*4 + 0x45fc50]
mov ebx, dword [ebp - 4]
xor ecx, dword [esi]
add esi, edx
movzx edx, byte [ebp - 7]
mov edx, dword [edx*4 + 0x45f850]
shr ebx, 0x10
and ebx, eax
xor edx, dword [ebx*4 + 0x45f428]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x45f028]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edx, dword [ebx*4 + 0x45fc50]
movzx ebx, byte [ebp - 0xb]
xor edx, dword [esi]
add esi, 4
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
shr edx, 0x10
and edx, eax
mov dword [ebp - 0x18], edx
mov edx, dword [ebx*4 + 0x45f850]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x18]
mov edx, dword [edx*4 + 0x45f428]
xor dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
shr edx, 0x18
mov edx, dword [edx*4 + 0x45f028]
xor dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x10]
and edx, eax
mov edx, dword [edx*4 + 0x45fc50]
xor dword [ebp - 0xc], edx
mov edx, dword [ebp - 0xc]
xor edx, dword [esi]
xor ebx, ebx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x14]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x461050]
mov dword [ebp - 0x18], edx
mov edx, ecx
shr edx, 0x18
mov bh, byte [edx + 0x461050]
add esi, 4
xor dword [ebp - 0x18], ebx
movzx ebx, byte [ebp - 0xf]
mov edx, dword [ebp - 0x18]
movzx ebx, byte [ebx + 0x461050]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp + 8]
and ebx, eax
movzx ebx, byte [ebx + 0x461050]
shl edx, 8
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 + 0x461050]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x14]
shr edx, 0x18
mov bh, byte [edx + 0x461050]
add esi, 4
xor dword [ebp - 0x18], ebx
movzx ebx, byte [ebp + 9]
movzx ebx, byte [ebx + 0x461050]
mov edx, dword [ebp - 0x18]
shl edx, 8
xor edx, ebx
mov ebx, ecx
and ebx, eax
movzx ebx, byte [ebx + 0x461050]
shl edx, 8
xor edx, ebx
xor edx, dword [esi]
xor ebx, ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x461050]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x10]
shr edx, 0x18
mov bh, byte [edx + 0x461050]
mov edx, dword [ebp - 0x18]
add esi, 4
xor edx, ebx
movzx ebx, ch
movzx ebx, byte [ebx + 0x461050]
shr ecx, 0x10
and ecx, eax
movzx ecx, byte [ecx + 0x461050]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp - 0x14]
and ebx, eax
movzx ebx, byte [ebx + 0x461050]
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 + 0x461050]
mov ecx, dword [ebp - 0x18]
xor edx, dword [esi]
xor ecx, ebx
movzx ebx, byte [ebp - 0x13]
movzx ebx, byte [ebx + 0x461050]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [ebp - 0x10]
and ebx, eax
movzx eax, byte [ebx + 0x461050]
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
mov byte [edi + 2], bl
shr eax, 0x18
mov byte [edi + 3], al
mov eax, dword [ebp - 8]
mov ebx, eax
mov byte [edi + 4], al
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