Function at 0x401e10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
push edi
cmp byte [ebp + 8], 1
jne 0x401e2e
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x24
ret 0xc
mov eax, dword [esp + 0x3c]
cdq
and edx, 0x7f
add eax, edx
mov ebx, eax
xor eax, eax
mov al, byte [ebp + 0x148]
sar ebx, 7
dec eax
mov dword [esp + 0x10], ebx
je 0x4020f0
dec eax
je 0x40205c
dec eax
je 0x401e69
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x24
ret 0xc
mov eax, dword [ebp + 0x149]
mov ecx, dword [ebp + 0x14d]
mov edx, dword [ebp + 0x151]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x155]
mov dword [esp + 0x18], ecx
test ebx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jle 0x40211e
mov dword [esp + 0x38], ebx
xor edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0x58]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], edx
push eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x28]
mov dword [esp + 0x34], ecx
push edx
push eax
mov ecx, ebp
call fcn.00402380
mov eax, edi
mov ecx, dword [esp + 0x40]
cdq
and edx, 7
mov ebx, edi
add eax, edx
mov dl, byte [esp + 0x24]
sar eax, 3
and ebx, 7
and dl, 0x80
lea esi, [eax + ecx]
mov cl, bl
shr dl, cl
mov al, byte [esi]
mov cl, byte [esp + 0x15]
shr cl, 7
xor al, dl
mov dl, byte [esp + 0x14]
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x15]
mov byte [esp + 0x14], cl
mov cl, byte [esp + 0x16]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x16]
mov byte [esp + 0x15], cl
mov cl, byte [esp + 0x17]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x17]
mov byte [esp + 0x16], cl
mov cl, byte [esp + 0x18]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x18]
mov byte [esp + 0x17], cl
mov cl, byte [esp + 0x19]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x19]
mov byte [esp + 0x18], cl
mov cl, byte [esp + 0x1a]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x1a]
mov byte [esp + 0x19], cl
mov cl, byte [esp + 0x1b]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x1b]
mov byte [esp + 0x1a], cl
mov cl, byte [esp + 0x1c]
shr cl, 7
shl dl, 1
or cl, dl
mov byte [esi], al
mov byte [esp + 0x1b], cl
mov cl, byte [esp + 0x1d]
mov dl, byte [esp + 0x1c]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x1d]
mov byte [esp + 0x1c], cl
mov cl, byte [esp + 0x1e]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x1e]
mov byte [esp + 0x1d], cl
mov cl, byte [esp + 0x1f]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x1f]
mov byte [esp + 0x1e], cl
mov cl, byte [esp + 0x20]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x20]
mov byte [esp + 0x1f], cl
mov cl, byte [esp + 0x21]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x21]
mov byte [esp + 0x20], cl
mov cl, byte [esp + 0x22]
shr cl, 7
shl dl, 1
or cl, dl
mov dl, byte [esp + 0x22]
mov byte [esp + 0x21], cl
mov cl, byte [esp + 0x23]
shr cl, 7
shl dl, 1
or cl, dl
mov byte [esp + 0x22], cl
mov cl, 7
sub cl, bl
shr al, cl
mov cl, byte [esp + 0x23]
shl cl, 1
and al, 1
or al, cl
inc edi
cmp edi, 0x80
mov byte [esp + 0x23], al
jl 0x401e9f
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
jne 0x401e9d
mov ebx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
pop ebp
pop ebx
shl eax, 7
add esp, 0x24
ret 0xc
mov eax, dword [ebp + 0x149]
mov ecx, dword [ebp + 0x14d]
mov edx, dword [ebp + 0x151]
mov edi, dword [ebp + 0x155]
test ebx, ebx
jle 0x40211e
mov esi, dword [esp + 0x38]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x40]
jmp 0x40209a
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
xor eax, dword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
xor ecx, eax
mov eax, dword [esi + 8]
xor edx, eax
lea eax, [ebp + 0x58]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0xc]
xor edi, edx
push eax
lea edx, [esp + 0x28]
mov dword [esp + 0x2c], ecx
push ebx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], edi
call fcn.00402380
mov eax, dword [esp + 0x3c]
add esi, 0x10
add ebx, 0x10
dec eax
mov dword [esp + 0x3c], eax
jne 0x40208a
mov ebx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
pop ebp
pop ebx
shl eax, 7
add esp, 0x24
ret 0xc
test ebx, ebx
jle 0x40211e
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x3c], ebx
lea eax, [ebp + 0x58]
mov ecx, ebp
push eax
push edi
push esi
call fcn.00402380
mov eax, dword [esp + 0x3c]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x3c], eax
jne 0x402100
pop edi
mov eax, ebx
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x24
ret 0xc