Function at 0x406fe4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dh, byte [ecx + 3]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push ebx
push esi
movzx esi, byte [ecx + 1]
mov dl, byte [ecx + 2]
xor ebx, ebx
mov bh, byte [ecx + 0xb]
push edi
push 4
pop edi
shl edx, 8
or edx, esi
movzx esi, byte [ecx]
shl edx, 8
or edx, esi
xor edx, dword [eax]
movzx esi, byte [ecx + 5]
mov dword [ebp - 0x20], edx
xor edx, edx
mov dh, byte [ecx + 7]
mov bl, byte [ecx + 0xa]
add eax, edi
mov dl, byte [ecx + 6]
shl ebx, 8
shl edx, 8
or edx, esi
movzx esi, byte [ecx + 4]
shl edx, 8
or edx, esi
xor edx, dword [eax]
movzx esi, byte [ecx + 0xd]
mov dword [ebp - 0x1c], edx
movzx edx, byte [ecx + 9]
or ebx, edx
movzx edx, byte [ecx + 8]
shl ebx, 8
or ebx, edx
xor edx, edx
mov dh, byte [ecx + 0xf]
add eax, edi
xor ebx, dword [eax]
add eax, edi
mov dword [ebp - 0x18], ebx
mov dl, byte [ecx + 0xe]
movzx ecx, byte [ecx + 0xc]
shl edx, 8
or edx, esi
shl edx, 8
or edx, ecx
mov ecx, dword [ebp + 8]
xor edx, dword [eax]
mov ecx, dword [ecx]
sar ecx, 1
add eax, edi
dec ecx
test ecx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp + 0xc], ecx
jle 0x407287
mov ecx, dword [ebp - 0x14]
mov edx, ebx
shr ecx, 0x18
shr edx, 0x10
movzx esi, dl
mov edx, dword [ecx*4 + 0x460c4c]
xor edx, dword [esi*4 + 0x46104c]
mov ecx, dword [ebp - 0x1c]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x46144c]
movzx ecx, byte [ebp - 0x20]
xor edx, dword [ecx*4 + 0x46184c]
mov ecx, dword [ebp - 0x14]
xor edx, dword [eax]
shr ebx, 8
movzx ebx, bl
shr ecx, 0x10
movzx ecx, cl
mov esi, dword [ecx*4 + 0x46104c]
xor esi, dword [ebx*4 + 0x46144c]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x20]
shr ecx, 0x18
xor esi, dword [ecx*4 + 0x460c4c]
movzx ecx, byte [ebp - 0x1c]
xor esi, dword [ecx*4 + 0x46184c]
mov ecx, dword [ebp - 0x14]
shr ebx, 0x10
add eax, edi
xor esi, dword [eax]
shr ecx, 8
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x1c]
shr esi, 0x18
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x46144c]
xor ecx, dword [esi*4 + 0x460c4c]
movzx esi, bl
xor ecx, dword [esi*4 + 0x46104c]
movzx esi, byte [ebp - 0x18]
xor ecx, dword [esi*4 + 0x46184c]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
shr ebx, 0x10
shr esi, 0x18
mov esi, dword [esi*4 + 0x460c4c]
movzx ebx, bl
xor esi, dword [ebx*4 + 0x46104c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp + 8], esi
shr ebx, 8
movzx esi, bl
mov esi, dword [esi*4 + 0x46144c]
xor dword [ebp + 8], esi
movzx ebx, byte [ebp - 0x14]
mov esi, dword [ebp + 8]
xor esi, dword [ebx*4 + 0x46184c]
add eax, edi
xor ecx, dword [eax]
add eax, edi
xor esi, dword [eax]
mov ebx, ecx
shr ebx, 0x10
mov dword [ebp - 4], esi
movzx ebx, bl
shr esi, 0x18
mov esi, dword [esi*4 + 0x460c4c]
xor esi, dword [ebx*4 + 0x46104c]
mov ebx, dword [ebp - 0xc]
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x46144c]
movzx ebx, dl
xor esi, dword [ebx*4 + 0x46184c]
mov ebx, dword [ebp - 4]
add eax, edi
xor esi, dword [eax]
add eax, edi
mov dword [ebp - 0x20], esi
shr ebx, 0x10
movzx esi, bl
mov esi, dword [esi*4 + 0x46104c]
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
xor esi, dword [ebx*4 + 0x46144c]
mov ebx, edx
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x460c4c]
movzx ebx, byte [ebp - 0xc]
xor esi, dword [ebx*4 + 0x46184c]
mov ebx, dword [ebp - 4]
xor esi, dword [eax]
shr ebx, 8
mov dword [ebp - 0x1c], esi
movzx esi, bl
mov esi, dword [esi*4 + 0x46144c]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x460c4c]
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
xor esi, dword [ebx*4 + 0x46104c]
movzx ebx, cl
xor esi, dword [ebx*4 + 0x46184c]
mov ebx, dword [ebp - 0xc]
add eax, edi
xor esi, dword [eax]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x460c4c]
shr ebx, 0x10
mov dword [ebp - 0x18], esi
shr edx, 8
movzx esi, bl
xor ecx, dword [esi*4 + 0x46104c]
mov ebx, dword [ebp - 0x18]
movzx edx, dl
xor ecx, dword [edx*4 + 0x46144c]
movzx edx, byte [ebp - 4]
xor ecx, dword [edx*4 + 0x46184c]
add eax, edi
xor ecx, dword [eax]
add eax, edi
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x14], ecx
jg 0x40708f
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x460c4c]
mov edx, ebx
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + 0x46104c]
mov edx, dword [ebp - 0x1c]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x46144c]
movzx edx, byte [ebp - 0x20]
xor ecx, dword [edx*4 + 0x46184c]
mov edx, ebx
xor ecx, dword [eax]
shr edx, 8
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
movzx edx, dl
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x46104c]
xor ecx, dword [edx*4 + 0x46144c]
mov edx, dword [ebp - 0x20]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x460c4c]
movzx edx, byte [ebp - 0x1c]
xor ecx, dword [edx*4 + 0x46184c]
mov edx, dword [ebp - 0x1c]
shr edx, 0x18
add eax, edi
xor ecx, dword [eax]
add eax, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x46144c]
xor ecx, dword [edx*4 + 0x460c4c]
mov edx, dword [ebp - 0x20]
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + 0x46104c]
movzx edx, bl
xor ecx, dword [edx*4 + 0x46184c]
mov edx, dword [ebp - 0x1c]
xor ecx, dword [eax]
shr edx, 0x10
movzx edx, dl
shr ebx, 0x18
mov esi, dword [ebx*4 + 0x460c4c]
xor esi, dword [edx*4 + 0x46104c]
mov edx, dword [ebp - 0x20]
shr edx, 8
movzx edx, dl
xor esi, dword [edx*4 + 0x46144c]
movzx edx, byte [ebp - 0x14]
xor esi, dword [edx*4 + 0x46184c]
add eax, edi
xor esi, dword [eax]
xor edx, edx
mov dword [ebp - 4], esi
shr esi, 0x18
mov dh, byte [esi + 0x45fb24]
mov ebx, ecx
shr ebx, 0x10
movzx esi, bl
movzx esi, byte [esi + 0x45fb24]
mov ebx, dword [ebp - 0xc]
xor edx, esi
shr ebx, 8
movzx esi, bl
movzx esi, byte [esi + 0x45fb24]
shl edx, 8
xor edx, esi
movzx esi, byte [ebp - 0x10]
movzx esi, byte [esi + 0x45fb24]
shl edx, 8
add eax, edi
xor edx, esi
xor edx, dword [eax]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x10]
xor ebx, ebx
shr edx, 0x18
mov bh, byte [edx + 0x45fb24]
mov edx, dword [ebp - 4]
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x45fb24]
xor ebx, edx
shl ebx, 8
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x45fb24]
xor ebx, edx
movzx edx, byte [ebp - 0xc]
movzx edx, byte [edx + 0x45fb24]
shl ebx, 8
xor ebx, edx
mov edx, dword [ebp - 0xc]
shr edx, 0x18
add eax, edi
xor ebx, dword [eax]
add eax, edi
mov dword [ebp - 0x1c], ebx
xor ebx, ebx
mov bh, byte [edx + 0x45fb24]
mov edx, dword [ebp - 0x10]
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x45fb24]
xor ebx, edx
mov edx, dword [ebp - 4]
shl ebx, 8
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x45fb24]
xor ebx, edx
movzx edx, cl
movzx edx, byte [edx + 0x45fb24]
shl ebx, 8
xor ebx, edx
xor ebx, dword [eax]
shr ecx, 0x18
mov edx, ebx
xor ebx, ebx
mov bh, byte [ecx + 0x45fb24]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x45fb24]
xor ebx, ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x45fb24]
shl ebx, 8
xor ebx, ecx
movzx ecx, byte [ebp - 4]
movzx ecx, byte [ecx + 0x45fb24]
shl ebx, 8
xor ebx, ecx
xor ebx, dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
mov ebx, ecx
mov byte [eax], cl
shr ecx, 0x18
shr ebx, 0x10
mov byte [eax + 3], cl
mov ecx, dword [ebp - 0x1c]
mov byte [eax + 2], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], bl
mov ebx, ecx
shr ecx, 0x18
mov byte [eax + 7], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 9], cl
mov ecx, edx
mov byte [eax + 8], dl
shr ecx, 0x10
shr edx, 0x18
mov byte [eax + 0xa], cl
mov ecx, dword [ebp - 0x14]
mov byte [eax + 0xb], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 0xd], dl
mov edx, ecx
shr ebx, 0x10
mov byte [eax + 0xc], cl
pop edi
shr edx, 0x10
shr ecx, 0x18
mov byte [eax + 6], bl
pop esi
mov byte [eax + 0xe], dl
mov byte [eax + 0xf], cl
xor eax, eax
pop ebx
leave
ret