Function at 0x41ee00
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 0x41f023
mov eax, dword [edi]
test byte [eax], 1
je 0x41f023
movzx eax, word [esi + 6]
shl eax, 5
test eax, eax
je 0x41ee56
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.00421910
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41efe0
push 0xffffffffffffffff
push esi
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00422360
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41efd7
movzx eax, byte [ebx]
lea edx, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004214b0
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41efd7
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [edi + 1]
push eax
push 0
push ebx
call fcn.0042a720
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 0x41ef4b
movzx ecx, byte [ebp + 0x10]
mov dword [ebp - 0x18], ecx
nop dword [eax + eax]
xor esi, esi
test ecx, ecx
je 0x41ef43
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 0x41ef08
xor eax, eax
jmp 0x41ef20
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 0x41ef00
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 0x41eee0
xor al, al
mov esi, 1
mov byte [ebp - 1], al
cmp edi, esi
jb 0x41efa6
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 0x41ef60
mov si, word [ebp - 4]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x41efe7
movzx ecx, word [ebp - 0x26]
shl ecx, 2
test ecx, ecx
je 0x41efcc
mov eax, edx
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x41efc1
push edx
call fcn.0042f371
add esp, 4
jmp 0x41efe7
mov si, word [ebp - 0x1e]
mov ebx, dword [ebp - 0x24]
jmp 0x41efad
mov si, word [ebp - 0x1e]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x2c], 0
test ebx, ebx
je 0x41f019
movzx ecx, si
shl ecx, 2
test ecx, ecx
je 0x41f010
mov eax, ebx
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x41f005
push ebx
call fcn.0042f371
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