Function at 0x404050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, ebx
shr eax, 3
mov dword [ebp - 0x6c], eax
shl eax, 3
sub ebx, eax
mov dword [ebp - 0xc], 0x991927fe
lea eax, [ebp - 0xc]
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x70], eax
xor cl, cl
mov eax, dword [edx]
mov dword [ebp - 0x68], eax
mov eax, dword [edx + 4]
mov bh, byte [ebp - 0x66]
mov ch, byte [ebp - 0x68]
mov dword [ebp - 0x64], eax
mov al, byte [ebp - 0x61]
mov dh, byte [ebp - 0x62]
mov bl, byte [ebp - 0x64]
mov byte [ebp - 0x5b], al
mov al, byte [ebp - 0x63]
mov byte [ebp - 0x5a], al
mov al, byte [ebp - 0x65]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov byte [ebp - 0x59], al
mov al, byte [ebp - 0x67]
mov dword [ebp - 0x54], edi
mov edi, 0x10
mov dword [ebp - 8], 0x11096919
mov byte [ebp - 0x5d], cl
mov byte [ebp - 0x5c], al
nop dword [eax]
movzx eax, al
mov dl, byte [eax + 0x41cde8]
movzx eax, byte [ebp - 0x59]
add dl, ch
movzx ecx, cl
xor bh, byte [eax + 0x41cde8]
movzx eax, byte [ebp - 0x5a]
mov byte [ebp + ecx - 0x4f], bh
mov byte [ebp + ecx - 0x50], dl
xor bl, byte [eax + 0x41cde8]
movzx eax, byte [ebp - 0x5b]
mov byte [ebp + ecx - 0x4e], bl
add dh, byte [eax + 0x41cde8]
mov al, bh
mov bh, byte [ebp - 0x59]
mov byte [ebp + ecx - 0x4d], dh
mov cl, byte [ebp - 0x5d]
mov ch, byte [ebp - 0x5c]
add cl, 4
mov byte [ebp - 0x59], bl
mov bl, byte [ebp - 0x5a]
mov byte [ebp - 0x5a], dh
mov dh, byte [ebp - 0x5b]
mov byte [ebp - 0x5c], al
mov byte [ebp - 0x5b], dl
mov byte [ebp - 0x5d], cl
sub edi, 1
jne 0x4040d0
cmp dword [ebp - 0x6c], edi
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp + 0xc]
jbe 0x404183
lea ebx, [ebp - 0xc]
mov ecx, dword [esi]
mov eax, dword [ebx]
mov edx, dword [esi + 4]
xor eax, ecx
xor edx, dword [ebx + 4]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x50]
push ecx
mov dword [ebp - 0x54], edx
lea edx, [ebp - 0x58]
push eax
call fcn.00403f50
mov eax, dword [ebp - 0x58]
mov ebx, edi
mov dword [edi], eax
add esp, 8
mov eax, dword [ebp - 0x54]
add esi, 8
mov dword [edi + 4], eax
add edi, 8
sub dword [ebp - 0x6c], 1
jne 0x404142
mov dword [ebp - 0x70], ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40424d
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x58]
push ecx
mov eax, dword [ecx]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
push eax
call fcn.00403f50
add esp, 8
xor eax, eax
cmp ebx, 0x40
jb 0x404222
lea ecx, [ebx - 1]
lea edx, [ebp + ebx - 0x59]
add ecx, esi
lea ebx, [ebp - 0x58]
cmp ebx, ecx
mov ebx, dword [ebp + 0xc]
ja 0x4041c7
cmp edx, esi
jae 0x404222
mov ecx, ebx
and ecx, 0xffffffc0
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0x58]
movups xmm1, xmmword [esi + eax]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x58], xmm1
movups xmm0, xmmword [ebp + eax - 0x48]
movups xmm1, xmmword [esi + eax + 0x10]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x48], xmm1
movups xmm0, xmmword [ebp + eax - 0x38]
movups xmm1, xmmword [esi + eax + 0x20]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x38], xmm1
movups xmm0, xmmword [ebp + eax - 0x28]
movups xmm1, xmmword [esi + eax + 0x30]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x28], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x4041d0
cmp eax, ebx
jae 0x40423f
lea ecx, [ebp - 0x58]
sub esi, ecx
nop dword [eax + eax]
lea edx, [ebp - 0x58]
add edx, eax
inc eax
mov cl, byte [edx + esi]
xor byte [edx], cl
cmp eax, ebx
jb 0x404230
push ebx
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.00406420
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404630
mov esp, ebp
pop ebp
ret