Function at 0x41de70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
cmp dword [ecx], 0xffffffff
je 0x41dec2
mov ah, byte [ebp + 0x18]
mov al, 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 + 2], al
mov al, ah
shl al, 7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
cmp ebx, 0x7d
mov dword [esp + 0x20], ecx
ja 0x41dec9
or al, bl
mov byte [esp + 3], al
xor esi, esi
jmp 0x41df0e
xor ebx, ebx
jmp 0x41e141
cmp ebx, 0xffff
ja 0x41def3
or al, 0x7e
mov byte [esp + 3], al
mov eax, ebx
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov esi, 2
jmp 0x41df0e
or al, 0x7f
mov byte [esp + 3], 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.00408b60
add esp, 4
mov ebx, eax
lea eax, [esp + 2]
mov edx, eax
mov edi, ebx
xor ecx, ecx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edi, ebx
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
lea edi, [ebx + 2]
cmp dword [ebp + 0xc], 0x7e
mov dword [esp + 0x1c], ebx
jb 0x41df82
mov ecx, esi
shr ecx, 2
lea eax, [esp + 8]
mov edx, edi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, esi
not ecx
or ecx, 0xfffffffc
add ecx, esi
lea eax, [edx + ecx]
inc eax
lea edx, [esp + ecx]
add edx, 9
mov ecx, esi
xor ecx, 0xfffffffc
or esi, 2
and esi, ecx
mov ecx, esi
shr ecx, 1
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
add esi, eax
mov edi, esi
movzx eax, byte [ebp + 0x18]
mov edx, dword [ebp + 8]
test al, al
mov dword [esp + 0x14], edi
je 0x41e001
mov eax, dword [ebp + 0x1c]
mov esi, eax
mov ebx, edi
mov ecx, 1
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
lea esi, [ebx + 4]
lea ebx, [eax + 4]
mov edi, esi
xor ecx, ecx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
cmp byte [eax], 0
jne 0x41dfcf
cmp byte [eax + 1], 0
jne 0x41dfcf
cmp byte [eax + 2], 0
jne 0x41dfcf
cmp byte [eax + 3], 0
je 0x41e14d
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], ebx
test ebx, ebx
je 0x41e0d0
movzx ecx, byte [esi]
mov edi, dword [ebp + 0xc]
mov edx, edi
and edx, 3
cmp edi, 4
jae 0x41e077
xor edi, edi
test edx, edx
jne 0x41e0c0
jmp 0x41e0d0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov esi, edi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
not eax
or eax, 0xfffffffc
mov dword [esp + 4], eax
add eax, ebx
add esi, eax
inc esi
add eax, edx
inc eax
mov ecx, ebx
xor ecx, 0xfffffffc
or ebx, 3
and ebx, ecx
mov ecx, ebx
shr ecx, 1
mov edx, eax
mov edi, esi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edx, ebx
and edx, 0xfffffffe
add esi, edx
mov edi, ebx
not edi
or edi, 1
lea ecx, [ebx + edi]
inc ecx
je 0x41e0d0
add eax, edx
push ecx
push eax
push esi
mov esi, edx
call fcn.00408b90
add esp, 0xc
add edi, dword [esp + 4]
add ebx, dword [ebp + 0xc]
add ebx, esi
add ebx, edi
mov eax, dword [esp + 0x14]
lea esi, [eax + ebx]
add esi, 2
jmp 0x41e0d0
and dword [esp + 4], 0xfffffffc
xor edi, edi
mov ebx, eax
mov eax, dword [esp + 0x14]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor cl, byte [ebx]
mov byte [eax + edi + 5], cl
xor cl, byte [ebx + 1]
mov byte [eax + edi + 6], cl
xor cl, byte [ebx + 2]
mov byte [eax + edi + 7], cl
xor cl, byte [ebx + 3]
mov byte [eax + edi + 8], cl
add edi, 4
cmp dword [esp + 4], edi
jne 0x41e090
add esi, edi
mov eax, ebx
test edx, edx
je 0x41e0d0
nop
nop
nop
nop
mov ebx, edi
and ebx, 3
xor cl, byte [eax + ebx]
mov byte [esi + 1], cl
inc esi
inc edi
dec edx
jne 0x41e0c0
mov edi, dword [esp + 0x1c]
sub esi, edi
push 0x12007ce3
push dword [0x447384]
call fcn.0043ce80
add esp, 8
push 0
push esi
push edi
mov esi, dword [esp + 0x2c]
push dword [esi]
call eax
cmp eax, 0xffffffff
setne bl
jne 0x41e138
cmp dword [esi], 0xffffffff
je 0x41e138
push 0x4f80c377
push dword [0x447384]
call fcn.0043ce80
add esp, 8
push 2
push dword [esi]
call eax
push 0xa2994af6
push dword [0x447384]
call fcn.0043ce80
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
push edi
call fcn.00408b70
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 eax, edx
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
not eax
or eax, 0xfffffffc
mov dword [esp + 4], eax
add eax, ebx
add esi, eax
inc esi
add eax, edx
inc eax
mov ecx, ebx
xor ecx, 0xfffffffc
or ebx, 3
and ebx, ecx
mov ecx, ebx
shr ecx, 1
mov edx, eax
mov edi, esi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edx, ebx
and edx, 0xfffffffe
add esi, edx
mov edi, ebx
not edi
or edi, 1
mov dword [esp + 0x18], ebx
lea ecx, [ebx + edi]
inc ecx
je 0x41e0d0
add eax, edx
push ecx
push eax
push esi
mov esi, edx
call fcn.00408b90
add esp, 0xc
add edi, dword [esp + 4]
mov ecx, dword [esp + 0x18]
add ecx, dword [ebp + 0xc]
add ecx, esi
add ecx, edi
mov eax, dword [esp + 0x14]
lea esi, [eax + ecx]
add esi, 6
jmp 0x41e0d0