Function at 0x41f090
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 0x41f0e8
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
movzx eax, byte [ecx + 4]
shl al, 7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
cmp ebx, 0x7d
mov dword [esp + 0x14], ecx
ja 0x41f0ef
or al, bl
mov byte [esp + 7], al
xor esi, esi
jmp 0x41f134
xor ebx, ebx
jmp 0x41f320
cmp ebx, 0xffff
ja 0x41f119
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 esi, 2
jmp 0x41f134
or al, 0x7f
mov byte [esp + 7], 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.004086e0
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
mov dword [esp + 0x10], ebx
lea edx, [ebx + 2]
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x7e
jb 0x41f19b
mov ecx, esi
shr ecx, 2
lea eax, [esp + 8]
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, esi
and eax, 0xfffffff8
add edx, eax
add eax, esp
add eax, 8
mov ecx, esi
shr ecx, 1
and ecx, 1
mov edi, edx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
and esi, 2
add edx, esi
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
cmp byte [eax + 4], 0
je 0x41f203
mov esi, dword [ebp + 0x18]
mov eax, esi
mov edi, edx
mov ecx, 1
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea eax, [edx + 4]
lea ebx, [esi + 4]
mov edi, eax
xor ecx, ecx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
cmp byte [esi], 0
jne 0x41f1e4
cmp byte [esi + 1], 0
jne 0x41f1e4
cmp byte [esi + 2], 0
jne 0x41f1e4
cmp byte [esi + 3], 0
je 0x41f32c
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41f2a0
movzx ecx, byte [eax]
mov edi, esi
and edi, 3
cmp esi, 4
jae 0x41f243
xor ebx, ebx
jmp 0x41f288
mov ecx, ebx
shr ecx, 2
mov eax, esi
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, esi
mov esi, ebx
and esi, 0xfffffffc
add edx, esi
add esi, eax
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, esi
mov edi, edx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, ebx
and ecx, 2
mov eax, edx
add eax, ecx
test bl, 1
je 0x41f2a0
add esi, ecx
movzx ecx, byte [esi]
mov byte [eax], cl
inc eax
jmp 0x41f2a0
mov dword [esp + 0x18], eax
and esi, 0xfffffffc
xor ebx, ebx
mov eax, edx
mov edx, dword [ebp + 0x18]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor cl, byte [edx]
mov byte [eax + ebx + 5], cl
xor cl, byte [edx + 1]
mov byte [eax + ebx + 6], cl
xor cl, byte [edx + 2]
mov byte [eax + ebx + 7], cl
xor cl, byte [edx + 3]
mov byte [eax + ebx + 8], cl
add ebx, 4
cmp esi, ebx
jne 0x41f260
mov eax, dword [esp + 0x18]
add eax, ebx
test edi, edi
mov esi, dword [ebp + 0x18]
je 0x41f2a0
nop
mov edx, ebx
and edx, 3
xor cl, byte [esi + edx]
mov byte [eax + 1], cl
inc eax
inc ebx
dec edi
jne 0x41f290
mov ecx, eax
not ecx
mov edi, dword [esp + 0x10]
and ecx, edi
mov esi, edi
not esi
and esi, eax
sub esi, ecx
push 0xd0026952
push dword [0x44b9f8]
call fcn.004400a0
add esp, 8
push 0
push esi
push edi
mov esi, dword [esp + 0x20]
push dword [esi]
call eax
cmp eax, 0xffffffff
setne bl
jne 0x41f314
cmp dword [esi], 0xffffffff
je 0x41f314
push 0x59ea2086
push dword [0x44b9f8]
call fcn.004400a0
add esp, 8
push 2
push dword [esi]
call eax
push 0x2e775759
push dword [0x44b9f8]
call fcn.004400a0
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
push dword [esp + 0x10]
call fcn.004086f0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
shr ecx, 2
mov edx, dword [ebp + 8]
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov esi, ebx
and esi, 0xfffffffc
add eax, esi
add esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov edx, esi
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov ecx, ebx
and ecx, 2
jmp 0x41f232