Function at 0x409760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea ecx, [ebp - 0xc8]
sub esp, 0xc8
mov eax, ecx
and eax, 0x3f
cmp al, 3
je 0x409782
inc ecx
mov eax, ecx
and eax, 0x3f
cmp al, 3
jne 0x409778
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], eax
lea edi, [eax + 1]
mov eax, esi
sub eax, ebx
mov dword [ebp - 8], eax
lea ebx, [ebx]
push edi
push 0
push esi
call fcn.00409c60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push edi
push esi
movdqu xmm0, xmmword [eax]
push ebx
mov dword [ebp - 0x94], 0
movdqu xmmword [ebp - 0xc8], xmm0
movdqu xmm0, xmmword [eax + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0xa0], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x9c], eax
mov eax, dword [0x42d008]
movdqu xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xc8]
xorps xmm0, xmm0
movq qword [ebp - 0xa8], xmm0
push eax
mov dword [ebp - 0xa8], 0xffffffff
mov dword [ebp - 0xa4], 0
call fcn.004099a0
add esp, 0x1c
lea ebx, [esi + eax]
mov esi, dword [ebp - 0x94]
test esi, esi
je 0x40987a
lea eax, [ebp - 0x90]
push esi
test bl, 3
jne 0x409850
push ebx
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [0x42d004]
mov eax, dword [eax + 0x10]
call eax
add esp, 0x10
jmp 0x40987a
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [0x42d004]
mov eax, dword [eax + 0x10]
call eax
push esi
lea eax, [ebp - 0x90]
push eax
push ebx
call fcn.0040a2b0
add esp, 0x1c
push 0x80
lea eax, [ebp - 0xc8]
push 0
push eax
mov eax, dword [section..data]
call eax
mov ebx, dword [ebp - 4]
mov eax, edi
xor ecx, ecx
and eax, 0x3f
add esp, 0xc
cmp esi, eax
mov esi, dword [ebp + 0x10]
setne cl
or ebx, ecx
mov dword [ebp - 4], ebx
test esi, esi
je 0x40991f
xor ecx, ecx
test edi, edi
je 0x40991f
mov ebx, dword [ebp + 0x14]
cmp edi, 0x10
jb 0x409900
lea eax, [esi - 1]
add eax, edi
cmp ebx, eax
ja 0x4098cb
add eax, dword [ebp - 8]
cmp eax, esi
jae 0x409900
mov eax, edi
mov edx, edi
and eax, 0xf
sub edx, eax
mov eax, ebx
sub esi, ebx
jmp 0x4098e0
movdqu xmm1, xmmword [esi + eax]
add ecx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ecx, edx
jb 0x4098e0
mov esi, dword [ebp + 0x10]
cmp ecx, edi
jae 0x40991c
mov edx, edi
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x409910
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov esi, edi
mov ecx, 0x415230
sub esi, 4
jb 0x409941
mov edi, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x409946
add ecx, 4
add edx, 4
sub esi, 4
jae 0x409930
cmp esi, 0xfffffffc
je 0x40997a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x409973
cmp esi, 0xfffffffd
je 0x40997a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x409973
cmp esi, 0xfffffffe
je 0x40997a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x409973
cmp esi, 0xffffffff
je 0x40997a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40997a
sbb eax, eax
or eax, 1
jmp 0x40997c
xor eax, eax
mov esi, dword [ebp + 0x14]
or ebx, eax
inc edi
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
cmp edi, 0x40
jbe 0x4097a0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret