Function at 0x41ee30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, word [ecx + 0x3a]
push ebx
push esi
push edi
lea edi, [ecx + 0x34]
shl eax, 5
mov dword [ebp - 0x20], 1
mov esi, edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x41f053
mov eax, dword [edi]
test byte [eax], 1
je 0x41f053
movzx eax, word [esi + 6]
shl eax, 5
test eax, eax
je 0x41ee86
mov eax, dword [esi]
mov eax, dword [eax]
and eax, 1
mov ebx, dword [ebp + 0x14]
lea ecx, [ebp - 0x24]
xor al, 1
mov byte [ebx], al
call fcn.00421940
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41f010
push 0xffffffffffffffff
push esi
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00422390
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41f007
movzx eax, byte [ebx]
lea edx, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004214e0
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41f007
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [edi + 1]
push eax
push 0
push ebx
call fcn.0042a750
mov dx, word [ebp - 0x1e]
xor eax, eax
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x10], eax
mov word [ebp - 4], dx
mov dword [ebp - 8], ecx
test edi, edi
je 0x41ef7b
movzx ecx, byte [ebp + 0x10]
mov dword [ebp - 0x18], ecx
nop dword [eax + eax]
xor esi, esi
test ecx, ecx
je 0x41ef73
movzx edi, dx
lea ecx, [eax + ebx]
mov bl, byte [ecx]
mov edx, eax
shl edi, 5
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], ecx
nop dword [eax]
cmp edi, edx
ja 0x41ef38
xor eax, eax
jmp 0x41ef50
mov edi, dword [ebp - 8]
mov eax, edx
shr eax, 5
mov ecx, edx
and ecx, 0x1f
mov eax, dword [edi + eax*4]
mov edi, dword [ebp - 0x14]
shr eax, cl
and eax, 1
add edx, dword [ebp + 0xc]
mov ecx, esi
shl al, cl
inc esi
mov ecx, dword [ebp - 0x18]
or bl, al
cmp esi, ecx
jb 0x41ef30
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
mov dx, word [ebp - 4]
mov byte [eax], bl
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x41ef10
xor al, al
mov esi, 1
mov byte [ebp - 1], al
cmp edi, esi
jb 0x41efd6
nop dword [eax]
mov bl, byte [esi + ebx]
mov bh, 1
mov edi, dword [ebp + 8]
mov dh, bl
xor dh, al
and bl, byte [ebp - 1]
mov al, dh
and al, 1
sub bh, al
mov eax, dword [ebp + 8]
mov dl, byte [esi + eax - 1]
movzx eax, bh
movzx ecx, dl
imul ecx, eax
shl bh, 7
or bh, dl
mov al, cl
xor cl, dh
mov byte [esi + edi], cl
and al, dh
mov ecx, edi
or al, bl
mov byte [ebp - 1], al
mov byte [esi + ecx - 1], bh
inc esi
mov ebx, ecx
cmp esi, dword [ebp + 0xc]
jbe 0x41ef90
mov si, word [ebp - 4]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x41f017
movzx ecx, word [ebp - 0x26]
shl ecx, 2
test ecx, ecx
je 0x41effc
mov eax, edx
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x41eff1
push edx
call fcn.0042f3a1
add esp, 4
jmp 0x41f017
mov si, word [ebp - 0x1e]
mov ebx, dword [ebp - 0x24]
jmp 0x41efdd
mov si, word [ebp - 0x1e]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x2c], 0
test ebx, ebx
je 0x41f049
movzx ecx, si
shl ecx, 2
test ecx, ecx
je 0x41f040
mov eax, ebx
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x41f035
push ebx
call fcn.0042f3a1
add esp, 4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffb080
pop ebx
mov esp, ebp
pop ebp
ret