Function at 0x41a6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
cmp dword [ecx], 0xffffffff
je 0x41a734
movzx eax, byte [ebp + 0x14]
movzx edx, byte [ebp + 0x10]
mov esi, dword [ebp + 0xc]
and dl, 0xf
shl al, 7
or al, dl
mov edx, esi
mov byte [esp + 2], al
movzx eax, byte [ecx + 4]
shl al, 7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
cmp esi, 0x7d
mov dword [esp + 0x20], ecx
ja 0x41a73b
or al, dl
mov byte [esp + 3], al
xor ebx, ebx
jmp 0x41a77a
xor ebx, ebx
jmp 0x41a994
or al, 0x7f
mov byte [esp + 3], al
cmp edx, 0xffff
ja 0x41a765
mov eax, edx
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov ebx, 2
jmp 0x41a77a
mov eax, edx
bswap eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov ebx, 8
lea eax, [edx + 0xe]
push eax
call fcn.00408420
add esp, 4
mov esi, eax
lea eax, [esp + 2]
mov edx, eax
mov edi, esi
xor ecx, ecx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, dword [ebp + 0xc]
mov ecx, 1
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov dword [esp + 0x1c], esi
add esi, 2
cmp edx, 0x7e
jb 0x41a7df
mov ecx, ebx
shr ecx, 2
lea eax, [esp + 8]
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, ebx
and ecx, 2
and ebx, 0xfffffff8
lea eax, [esp + ebx]
add eax, 8
add ebx, esi
mov edi, ebx
add ebx, ecx
shr ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov esi, ebx
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
cmp byte [eax + 4], 0
je 0x41a84f
mov edx, dword [ebp + 0x18]
mov ebx, edx
mov ecx, 1
mov edi, esi
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
lea eax, [edx + 4]
lea ebx, [esi + 4]
mov edi, ebx
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
cmp byte [edx], 0
jne 0x41a828
cmp byte [edx + 1], 0
jne 0x41a828
cmp byte [edx + 2], 0
jne 0x41a828
cmp byte [edx + 3], 0
je 0x41a9a0
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
test edx, edx
je 0x41a920
movzx eax, byte [ebx]
mov ecx, edx
and ecx, 3
cmp edx, 4
jae 0x41a8ce
xor edi, edi
jmp 0x41a906
mov ecx, edx
shr ecx, 2
mov eax, ebx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, esi
mov esi, edx
and edx, 3
mov eax, esi
and eax, 0xfffffffc
add ebx, eax
mov edi, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
lea ebx, [ecx + eax]
mov ecx, edx
shr ecx, 1
mov dword [esp + 4], edi
mov eax, edi
mov edi, ebx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
or esi, 2
mov eax, edx
xor eax, 1
and eax, esi
mov edi, edx
not edi
or edi, 1
add ebx, eax
mov dword [esp + 0x14], edx
lea ecx, [edx + edi]
inc ecx
je 0x41a920
mov esi, eax
mov eax, dword [esp + 4]
add eax, esi
push ecx
push eax
push ebx
call fcn.00408450
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
add eax, edi
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + eax]
inc ebx
jmp 0x41a920
and dword [esp + 4], 0xfffffffc
xor edi, edi
mov edx, esi
mov esi, dword [ebp + 0x18]
nop
nop
nop
nop
nop
nop
xor al, byte [esi]
mov byte [edx + edi + 5], al
xor al, byte [esi + 1]
mov byte [edx + edi + 6], al
xor al, byte [esi + 2]
mov byte [edx + edi + 7], al
xor al, byte [esi + 3]
mov byte [edx + edi + 8], al
add edi, 4
cmp dword [esp + 4], edi
jne 0x41a8e0
add ebx, edi
test ecx, ecx
mov edx, dword [ebp + 0x18]
je 0x41a920
nop
nop
nop
mov esi, edi
and esi, 3
xor al, byte [edx + esi]
mov byte [ebx + 1], al
inc ebx
inc edi
dec ecx
jne 0x41a910
mov esi, dword [esp + 0x1c]
sub ebx, esi
push 0xefae2064
push dword [0x449080]
call fcn.0043c760
add esp, 8
push 0
push ebx
push esi
mov esi, dword [esp + 0x2c]
push dword [esi]
call eax
cmp eax, 0xffffffff
setne bl
jne 0x41a988
cmp dword [esi], 0xffffffff
je 0x41a988
push 0xea8d1240
push dword [0x449080]
call fcn.0043c760
add esp, 8
push 2
push dword [esi]
call eax
push 0xa3d60213
push dword [0x449080]
call fcn.0043c760
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
push dword [esp + 0x1c]
call fcn.00408430
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 2
mov eax, dword [ebp + 8]
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and edx, 3
and eax, 0xfffffffc
mov edi, dword [ebp + 8]
add edi, eax
mov dword [esp + 0x18], eax
add ebx, eax
mov ecx, edx
shr ecx, 1
mov dword [esp + 4], edi
mov eax, edi
mov edi, ebx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, edx
not eax
or eax, 1
mov ecx, dword [ebp + 0xc]
or ecx, 2
mov edi, edx
xor edi, 1
and edi, ecx
mov dword [esp + 0x14], edx
lea ecx, [edx + eax]
add ebx, edi
inc ecx
je 0x41a920
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
add eax, edi
push ecx
push eax
push ebx
call fcn.00408450
add esp, 0xc
mov ecx, dword [esp + 0x10]
add ecx, edi
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
add eax, ecx
lea ebx, [esi + eax]
add ebx, 5
jmp 0x41a920