Function at 0x41aea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
cmp dword [ecx], 0xffffffff
je 0x41aeff
mov dh, byte [ebp + 0x18]
movzx eax, byte [ebp + 0x14]
mov ah, byte [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dl, ah
xor dl, 0xf0
or ah, 0xf
and ah, dl
shl al, 7
or al, ah
mov byte [esp + 6], al
mov al, dh
shl al, 7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
cmp ebx, 0x7d
mov dword [esp + 0x18], ecx
ja 0x41af06
or al, bl
mov byte [esp + 7], al
mov dword [esp + 0x10], 0
jmp 0x41af51
xor ebx, ebx
jmp 0x41b0dd
cmp ebx, 0xffff
ja 0x41af33
or al, 0x7e
mov byte [esp + 7], al
mov eax, ebx
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
jmp 0x41af51
or al, 0x7f
mov byte [esp + 7], al
mov eax, ebx
bswap eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 0x10], 8
lea eax, [ebx + 0xe]
push eax
call fcn.004082f0
add esp, 4
mov esi, eax
lea eax, [esp + 6]
mov edx, eax
mov edi, esi
xor ecx, ecx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edi, esi
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov dword [esp + 0x14], esi
add esi, 2
cmp ebx, 0x7e
jb 0x41afb9
mov edx, dword [esp + 0x10]
mov ecx, edx
shr ecx, 2
lea eax, [esp + 8]
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and eax, 0xfffffff8
add esi, eax
add eax, esp
add eax, 8
mov ecx, edx
shr ecx, 1
and ecx, 1
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
and edx, 2
add esi, edx
mov eax, dword [ebp + 8]
cmp byte [ebp + 0x18], 0
je 0x41b02d
mov edx, dword [ebp + 0x1c]
mov ebx, edx
mov edi, esi
mov ecx, 1
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
add esi, 4
lea ebx, [edx + 4]
mov edi, esi
xor ecx, ecx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
cmp byte [edx], 0
jne 0x41b000
cmp byte [edx + 1], 0
jne 0x41b000
cmp byte [edx + 2], 0
jne 0x41b000
cmp byte [edx + 3], 0
je 0x41b0e9
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x41b069
movzx eax, byte [esi]
xor ecx, ecx
nop
nop
nop
nop
mov edi, ecx
and edi, 3
xor al, byte [edx + edi]
mov edi, ecx
and edi, 1
xor ecx, 1
lea ecx, [ecx + edi*2]
mov byte [esi + 1], al
inc esi
cmp ecx, ebx
jb 0x41b010
jmp 0x41b069
mov ecx, ebx
shr ecx, 2
mov edx, eax
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, ebx
and edx, 0xfffffffc
add esi, edx
add edx, eax
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, ebx
and eax, 2
add esi, eax
test bl, 1
je 0x41b069
add edx, eax
movzx eax, byte [edx]
mov byte [esi], al
inc esi
mov edi, dword [esp + 0x14]
sub esi, edi
push 0x12007ce3
push dword [0x44488c]
call fcn.004394c0
add esp, 8
push 0
push esi
push edi
mov esi, dword [esp + 0x24]
push dword [esi]
call eax
cmp eax, 0xffffffff
setne bl
jne 0x41b0d1
cmp dword [esi], 0xffffffff
je 0x41b0d1
push 0x4f80c377
push dword [0x44488c]
call fcn.004394c0
add esp, 8
push 2
push dword [esi]
call eax
push 0xa2994af6
push dword [0x44488c]
call fcn.004394c0
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
push dword [esp + 0x14]
call fcn.00408300
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
shr ecx, 2
mov edx, eax
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, ebx
and edx, 0xfffffffc
add esi, edx
add edx, eax
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
jmp 0x41b055