Function at 0x409a90
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4887d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1d8
xorps xmm0, xmm0
mov dword [ebp - 0x20], ecx
push esi
push edi
movups xmmword [ebp - 0x167], xmm0
mov byte [ebp - 0x168], 0
movups xmmword [ebp - 0x157], xmm0
movups xmmword [ebp - 0x127], xmm0
movups xmmword [ebp - 0xf7], xmm0
movups xmmword [ebp - 0xc7], xmm0
mov eax, dword [ebx + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x7ee], 4
jne 0x409e0d
cmp byte [ecx + 0x98c], 1
mov edi, dword [ebx + 0xc]
movups xmm1, xmmword [edi + 0x19]
mov eax, dword [edi + 0x15]
movups xmm2, xmmword [edi + 0x29]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x54], xmm1
movups xmmword [ebp - 0x44], xmm2
jne 0x409b75
cmp byte [ecx + 0x98b], 0
jne 0x409b75
lea eax, [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ecx + 0x967]
jne 0x409c63
lea edx, [ecx + 0x96b]
mov esi, 0x1c
lea ecx, [ebp - 0x54]
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x409c63
add ecx, 4
add edx, 4
sub esi, 4
jae 0x409b60
xor esi, esi
call fcn.00411260
mov dword [ebp + esi - 0x34], eax
add esi, 4
cmp esi, 0x14
jl 0x409b77
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x1a8]
xorps xmm0, xmm0
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c8]
movlpd qword [ebp - 0x60], xmm0
movups xmm0, xmmword [ebp - 0x34]
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x168], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x1e8], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1cc], 0
movups xmmword [ebp - 0x167], xmm0
movups xmmword [ebp - 0x157], xmm0
movups xmmword [ebp - 0x127], xmm0
movups xmmword [ebp - 0xf7], xmm0
movups xmmword [ebp - 0xc7], xmm0
movups xmmword [ebp - 0x1e4], xmm0
movq qword [ebp - 0x1d4], xmm0
movups xmmword [ebp - 0x1c8], xmm1
movups xmmword [ebp - 0x1b8], xmm2
call fcn.0040e1a0
lea edx, [ebp - 0x188]
lea ecx, [ebp - 0x1c8]
call fcn.0040e270
cmp byte [ebp - 0x168], 0
je 0x409cd5
sub esp, 0x10
lea eax, [ebp - 0xc7]
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x54]
push eax
lea eax, [ebp - 0xf7]
push eax
lea eax, [ebp - 0x127]
push eax
lea eax, [ebp - 0x1e8]
push eax
call fcn.0040db50
add esp, 0x20
jmp 0x409cf1
push 0x16
call fcn.004684fa
mov esi, eax
add esp, 4
lea ecx, [esi + 0x15]
mov dword [esi + 0x10], ecx
mov dword [esi + 8], 1
mov byte [esi + 0x14], 0
mov byte [ecx], 0x1c
mov ecx, dword [ebx + 8]
mov dword [esi + 0xc], 8
push 1
sub esp, 8
mov eax, dword [ecx + 1]
mov dword [esi + 2], eax
movzx eax, word [ecx + 5]
mov ecx, esp
mov word [esi + 6], ax
mov eax, dword [esi + 2]
mov dword [ecx], eax
movzx eax, word [esi + 6]
mov word [ecx + 4], ax
mov ecx, dword [ebp - 0x20]
call fcn.00408bd0
mov ecx, dword [ebp - 0x20]
push esi
mov word [esi], ax
call fcn.0040a9d0
mov eax, dword [ebx + 8]
mov dword [eax + 0x7ee], 2
jmp 0x409e0d
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x1c8]
push eax
lea edx, [ebp - 0x1e8]
lea ecx, [ebp - 0x74]
call fcn.0040de30
add esp, 8
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x34]
sub eax, edi
lea esi, [ebp - 0x33]
mov dword [ebp - 0x18], eax
lea ecx, [edi + 2]
mov eax, esi
add edx, 0x7d2
sub eax, edi
mov edi, 4
mov dword [ebp - 0x14], eax
movzx eax, byte [ecx - 1]
lea esi, [esi + 4]
xor al, byte [esi - 5]
lea ecx, [ecx + 4]
mov byte [edx - 1], al
lea edx, [edx + 4]
movzx eax, byte [esi - 4]
xor al, byte [ecx - 4]
mov byte [edx - 4], al
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + ecx - 4]
xor al, byte [ecx - 3]
mov byte [edx - 3], al
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + ecx - 4]
xor al, byte [ecx - 2]
mov byte [edx - 2], al
sub edi, 1
jne 0x409d14
cmp byte [0x5bc6ac], 0
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov byte [ebp - 0xac], 0x10
mov byte [esi + 0x7e1], 1
movups xmm0, xmmword [eax + 1]
mov eax, dword [eax + 0x11]
mov dword [ebp - 0x9b], eax
movups xmmword [ebp - 0xab], xmm0
movups xmm0, xmmword [ebp - 0x54]
movups xmmword [ebp - 0x97], xmm0
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [ebp - 0x87], xmm0
jne 0x409dab
push 0x5bc6b0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov byte [0x5bc6ac], 1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0x3e8
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00461c80
push dword [0x5bc6b4]
push dword [0x5bc6b0]
push edx
push eax
call fcn.00485cd0
push 0
push eax
mov eax, dword [esi + 1]
push 0
push 0
sub esp, 8
mov ecx, esp
push 0
mov dword [ecx], eax
mov ax, word [esi + 5]
push 6
push 0
mov word [ecx + 4], ax
lea eax, [ebp - 0xac]
mov ecx, dword [ebp - 0x20]
push 0x1a8
push eax
call fcn.0040a520
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8