Function at 0x41eb10
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 0x41eb62
mov ah, byte [ebp + 0x18]
mov al, byte [ebp + 0x14]
movzx edx, byte [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
and dl, 0xf
shl al, 7
or al, dl
mov byte [esp + 2], al
mov al, ah
shl al, 7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
cmp ebx, 0x7d
mov dword [esp + 0x20], ecx
ja 0x41eb69
or al, bl
mov byte [esp + 3], al
xor esi, esi
jmp 0x41ebae
xor ebx, ebx
jmp 0x41edc1
cmp ebx, 0xffff
ja 0x41eb93
or al, 0x7e
mov byte [esp + 3], al
mov eax, ebx
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov esi, 2
jmp 0x41ebae
or al, 0x7f
mov byte [esp + 3], al
mov eax, ebx
bswap eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov esi, 8
lea eax, [ebx + 0xe]
push eax
call fcn.0040a1d0
add esp, 4
mov ebx, eax
lea eax, [esp + 2]
mov edx, eax
mov edi, ebx
xor ecx, ecx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edi, ebx
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, ebx
add ebx, 2
cmp dword [ebp + 0xc], 0x7e
mov dword [esp + 0x1c], eax
jb 0x41ec20
mov ecx, esi
shr ecx, 2
lea eax, [esp + 8]
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, esi
not ecx
or ecx, 0xfffffffc
add ecx, esi
lea eax, [ebx + ecx]
inc eax
lea edx, [esp + ecx]
add edx, 9
mov ecx, esi
shr ecx, 1
and ecx, 1
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
and esi, 2
add esi, eax
mov ebx, esi
movzx eax, byte [ebp + 0x18]
mov edx, dword [ebp + 8]
test al, al
je 0x41ec8c
mov eax, dword [ebp + 0x1c]
mov esi, eax
mov edi, ebx
mov ecx, 1
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
lea esi, [ebx + 4]
lea edx, [eax + 4]
xor ecx, ecx
mov edi, esi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
cmp byte [eax], 0
jne 0x41ec69
cmp byte [eax + 1], 0
jne 0x41ec69
cmp byte [eax + 2], 0
jne 0x41ec69
cmp byte [eax + 3], 0
je 0x41edcd
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
test eax, eax
je 0x41ed50
movzx ecx, byte [esi]
mov edx, eax
and edx, 3
cmp eax, 4
jae 0x41ed01
xor edi, edi
jmp 0x41ed36
mov eax, dword [ebp + 0xc]
mov esi, ebx
mov ebx, eax
mov ecx, eax
shr ecx, 2
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
not eax
or eax, 0xfffffffc
mov dword [esp + 0x14], eax
add eax, ebx
mov dword [esp + 4], esi
add esi, eax
inc esi
add eax, edx
inc eax
mov edx, ebx
and edx, 3
mov ecx, edx
shr ecx, 1
mov dword [esp + 0x18], eax
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, ebx
xor edi, 2
and ebx, 2
add esi, ebx
and edi, edx
je 0x41ed50
mov eax, dword [esp + 0x18]
add eax, ebx
push edi
push eax
push esi
call fcn.0040a200
add esp, 0xc
mov ecx, dword [esp + 0x14]
add ecx, edi
mov eax, dword [ebp + 0xc]
add eax, ebx
add eax, ecx
mov ecx, dword [esp + 4]
lea esi, [ecx + eax]
inc esi
jmp 0x41ed50
and dword [esp + 4], 0xfffffffc
xor edi, edi
mov eax, ebx
mov ebx, dword [ebp + 0x1c]
nop
nop
nop
xor cl, byte [ebx]
mov byte [eax + edi + 5], cl
xor cl, byte [ebx + 1]
mov byte [eax + edi + 6], cl
xor cl, byte [ebx + 2]
mov byte [eax + edi + 7], cl
xor cl, byte [ebx + 3]
mov byte [eax + edi + 8], cl
add edi, 4
cmp dword [esp + 4], edi
jne 0x41ed10
add esi, edi
test edx, edx
mov eax, dword [ebp + 0x1c]
je 0x41ed50
nop
nop
nop
mov ebx, edi
and ebx, 3
xor cl, byte [eax + ebx]
mov byte [esi + 1], cl
inc esi
inc edi
dec edx
jne 0x41ed40
mov edi, dword [esp + 0x1c]
sub esi, edi
push 0xd0026952
push dword [0x44a9b8]
call fcn.0043f3a0
add esp, 8
push 0
push esi
push edi
mov esi, dword [esp + 0x2c]
push dword [esi]
call eax
cmp eax, 0xffffffff
setne bl
jne 0x41edb8
cmp dword [esi], 0xffffffff
je 0x41edb8
push 0x59ea2086
push dword [0x44a9b8]
call fcn.0043f3a0
add esp, 8
push 2
push dword [esi]
call eax
push 0x2e775759
push dword [0x44a9b8]
call fcn.0043f3a0
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
push edi
call fcn.0040a1e0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov edx, dword [ebp + 8]
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, dword [ebp + 0xc]
mov eax, ecx
not eax
or eax, 0xfffffffc
mov dword [esp + 4], eax
add eax, ecx
add esi, eax
inc esi
add eax, edx
inc eax
mov edx, ecx
and edx, 3
mov ecx, edx
shr ecx, 1
mov dword [esp + 0x14], eax
mov edi, esi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [ebp + 0xc]
mov edi, ecx
xor edi, 2
and ecx, 2
add esi, ecx
and edi, edx
je 0x41ed50
mov eax, dword [esp + 0x14]
add eax, ecx
push edi
push eax
push esi
mov esi, ecx
call fcn.0040a200
add esp, 0xc
mov ecx, dword [esp + 4]
add ecx, edi
mov eax, dword [ebp + 0xc]
add eax, esi
add eax, ecx
lea esi, [ebx + eax]
add esi, 5
jmp 0x41ed50