Function at 0x41cb90
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 0x41cbdd
movzx eax, 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 + 6], al
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
cmp ebx, 0x7d
mov dword [esp + 0x18], ecx
ja 0x41cbe4
mov eax, ebx
or al, 0x80
mov byte [esp + 7], al
xor esi, esi
jmp 0x41cc27
xor ebx, ebx
jmp 0x41ce11
cmp ebx, 0xffff
ja 0x41cc0d
mov byte [esp + 7], 0xfe
mov eax, ebx
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov esi, 2
jmp 0x41cc27
mov byte [esp + 7], 0xff
mov eax, ebx
bswap eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov esi, 8
mov eax, ebx
and eax, 0xe
mov ecx, ebx
xor ecx, 0xe
lea eax, [ecx + eax*2]
push eax
call fcn.004084d0
add esp, 4
mov ebx, eax
lea eax, [esp + 6]
mov edx, eax
mov edi, ebx
xor ecx, ecx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, 1
mov edi, ebx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
lea eax, [ebx + 2]
cmp dword [ebp + 0xc], 0x7e
mov dword [esp + 0x14], ebx
jb 0x41cc98
mov ecx, esi
shr ecx, 2
lea edx, [esp + 8]
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, esi
and ecx, 0xfffffff8
add eax, ecx
lea edx, [esp + ecx]
add edx, 8
and esi, 2
mov ecx, esi
shr ecx, 1
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
add eax, esi
mov esi, dword [ebp + 8]
cmp byte [ebp + 0x18], 0
je 0x41ccfe
mov edx, dword [ebp + 0x1c]
mov esi, edx
mov edi, eax
mov ecx, 1
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
lea esi, [eax + 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 0x41ccdf
cmp byte [edx + 1], 0
jne 0x41ccdf
cmp byte [edx + 2], 0
jne 0x41ccdf
cmp byte [edx + 3], 0
je 0x41ce1d
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x41cda0
movzx ecx, byte [esi]
mov edi, edx
and edi, 3
cmp edx, 4
jae 0x41cd50
xor ebx, ebx
jmp 0x41cd88
mov edi, dword [ebp + 0xc]
mov ecx, edi
and ecx, 3
mov dword [esp + 0x10], ecx
xor ecx, 1
mov edx, edi
or edx, 2
and edx, ecx
mov ecx, edi
mov ebx, edi
shr ecx, 2
and ebx, 0xfffffffc
mov edi, eax
add eax, ebx
add ebx, esi
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, dword [esp + 0x10]
shr ecx, 1
mov esi, ebx
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, eax
add esi, edx
mov eax, dword [ebp + 0xc]
test al, 1
je 0x41cda0
add ebx, edx
movzx eax, byte [ebx]
mov byte [esi], al
inc esi
jmp 0x41cda0
mov dword [esp + 0x10], esi
and edx, 0xfffffffc
xor ebx, ebx
mov esi, eax
mov eax, dword [ebp + 0x1c]
nop
nop
xor cl, byte [eax]
mov byte [esi + ebx + 5], cl
xor cl, byte [eax + 1]
mov byte [esi + ebx + 6], cl
xor cl, byte [eax + 2]
mov byte [esi + ebx + 7], cl
xor cl, byte [eax + 3]
mov byte [esi + ebx + 8], cl
add ebx, 4
cmp edx, ebx
jne 0x41cd60
mov esi, dword [esp + 0x10]
add esi, ebx
test edi, edi
mov edx, dword [ebp + 0x1c]
je 0x41cda0
nop
mov eax, ebx
and eax, 3
xor cl, byte [edx + eax]
mov byte [esi + 1], cl
inc esi
inc ebx
dec edi
jne 0x41cd90
mov edi, dword [esp + 0x14]
sub esi, edi
push 0x12007ce3
push dword [0x448aa4]
call fcn.0043c800
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 0x41ce08
cmp dword [esi], 0xffffffff
je 0x41ce08
push 0x4f80c377
push dword [0x448aa4]
call fcn.0043c800
add esp, 8
push 2
push dword [esi]
call eax
push 0xa2994af6
push dword [0x448aa4]
call fcn.0043c800
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
push edi
call fcn.004084e0
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, dword [ebp + 8]
mov eax, edx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and ebx, 0xfffffffc
add esi, ebx
add ebx, edx
mov edx, eax
and edx, 3
mov ecx, edx
shr ecx, 1
xor edx, 1
mov eax, dword [ebp + 0xc]
or eax, 2
and eax, edx
mov edx, ebx
mov edi, esi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
add esi, eax
mov ecx, dword [ebp + 0xc]
test cl, 1
je 0x41cda0
add ebx, eax
jmp 0x41cd48