Function at 0x418440
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
push edi
nop dword [eax]
mov eax, edx
mov cl, dl
sar eax, 3
and cl, 7
mov al, byte [eax + esi]
sar al, cl
and al, 1
mov byte [edx + 0x5058b0], al
inc edx
cmp edx, 0x40
jl 0x418450
xor ecx, ecx
nop
movsx eax, byte [ecx + 0x4d3780]
movzx eax, byte [eax + 0x5058af]
mov byte [ecx + 0x5057a0], al
movsx eax, byte [ecx + 0x4d3781]
movzx eax, byte [eax + 0x5058af]
mov byte [ecx + 0x5057a1], al
movsx eax, byte [ecx + 0x4d3782]
movzx eax, byte [eax + 0x5058af]
mov byte [ecx + 0x5057a2], al
movsx eax, byte [ecx + 0x4d3783]
movzx eax, byte [eax + 0x5058af]
mov byte [ecx + 0x5057a3], al
add ecx, 4
cmp ecx, 0x40
jl 0x418470
push 0x40
push 0x5057a0
push 0x5058b0
call fcn.004a4870
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp byte [ebp + 0x14], 0
jne 0x418596
mov ebx, dword [section..data]
mov esi, ebx
mov edi, dword [0x500004]
sub esi, edi
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 0x10
movups xmm0, xmmword [edi]
push eax
push edi
movups xmmword [0x5058f0], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [0x505900], xmm0
call fcn.00418250
lea eax, [ebx + 0x1f]
add esp, 8
cmp edi, eax
ja 0x418547
lea eax, [edi + 0x1f]
cmp eax, ebx
jb 0x418547
mov ecx, edi
mov edx, 0x20
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x418537
jmp 0x418569
mov eax, edi
mov ecx, 2
nop
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [esi + eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
sub ecx, 1
jne 0x418550
movups xmm0, xmmword [0x5058f0]
mov eax, dword [ebp + 0x14]
add eax, 0x30
sub dword [ebp - 4], 1
movups xmmword [ebx], xmm0
mov dword [ebp + 0x14], eax
movups xmm0, xmmword [0x505900]
movups xmmword [ebx + 0x10], xmm0
jne 0x418503
jmp 0x418656
mov ebx, dword [0x500004]
mov esi, ebx
mov edi, dword [section..data]
sub esi, edi
add eax, 0x2d0
mov dword [ebp + 0x14], 0xf
mov dword [ebp - 4], eax
movups xmm0, xmmword [edi]
push eax
push edi
movups xmmword [0x5058f0], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [0x505900], xmm0
call fcn.00418250
lea eax, [ebx + 0x1f]
add esp, 8
cmp edi, eax
ja 0x418600
lea eax, [edi + 0x1f]
cmp eax, ebx
jb 0x418600
mov eax, edi
mov edx, 0x20
nop dword [eax]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x4185f0
jmp 0x418629
mov eax, edi
mov ecx, 2
nop word [eax + eax]
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [esi + eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
sub ecx, 1
jne 0x418610
movups xmm0, xmmword [0x5058f0]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
dec ecx
movups xmmword [ebx], xmm0
sub eax, 0x30
mov dword [ebp + 0x14], ecx
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x505900]
movups xmmword [ebx + 0x10], xmm0
test ecx, ecx
jns 0x4185b5
xor ecx, ecx
nop dword [eax + eax]
movsx eax, byte [ecx + 0x4d37c0]
movzx eax, byte [eax + 0x5058af]
mov byte [ecx + 0x5057a0], al
movsx eax, byte [ecx + 0x4d37c1]
movzx eax, byte [eax + 0x5058af]
mov byte [ecx + 0x5057a1], al
movsx eax, byte [ecx + 0x4d37c2]
movzx eax, byte [eax + 0x5058af]
mov byte [ecx + 0x5057a2], al
movsx eax, byte [ecx + 0x4d37c3]
movzx eax, byte [eax + 0x5058af]
mov byte [ecx + 0x5057a3], al
add ecx, 4
cmp ecx, 0x40
jl 0x418660
push 0x40
push 0x5057a0
push 0x5058b0
call fcn.004a4870
mov edi, dword [ebp + 8]
add esp, 0xc
xor ecx, ecx
mov dword [ebp + 0x14], 2
xorps xmm0, xmm0
mov dword [ebp - 4], ecx
mov esi, 1
movq qword [edi], xmm0
lea ebx, [ecx + 3]
nop word [eax + eax]
movzx eax, byte [esi + 0x5058af]
mov edx, ecx
and ecx, 7
sar edx, 3
shl al, cl
mov ecx, esi
and ecx, 7
or byte [edx + edi], al
mov edx, esi
movzx eax, byte [esi + 0x5058b0]
add esi, 4
shl al, cl
sar edx, 3
or byte [edx + edi], al
mov eax, dword [ebp + 0x14]
mov ecx, eax
mov edx, dword [ebp + 0x14]
and ecx, 7
add dword [ebp + 0x14], 4
sar edx, 3
movzx eax, byte [eax + 0x5058b0]
shl al, cl
mov ecx, ebx
and ecx, 7
or byte [edx + edi], al
mov edx, ebx
movzx eax, byte [ebx + 0x5058b0]
add ebx, 4
sar edx, 3
shl al, cl
mov ecx, dword [ebp - 4]
add ecx, 4
or byte [edx + edi], al
mov dword [ebp - 4], ecx
cmp esi, 0x41
jl 0x4186f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret