Function at 0x409980
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x495580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x224], eax
mov esi, edx
mov eax, dword [ebp + 0x14]
mov edi, ecx
push 0xa0
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x180]
push 0
push eax
call fcn.0044cff0
lea eax, [ebp - 0x180]
mov edx, esi
push eax
mov ecx, edi
call fcn.00408960
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0x180]
mov ecx, 0x28
lea edi, [ebp - 0x220]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push eax
call fcn.00408a10
mov ecx, dword [ebp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esp, 0x14
mul ecx
mov eax, edx
shr eax, 4
add eax, 1
mov dword [ebp - 0x238], eax
je 0x409c58
mov edx, 1
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x224], eax
nop word [eax + eax]
mov eax, edx
mov dword [ebp - 0x23c], edx
shr eax, 0x18
lea esi, [ebp - 0x220]
mov byte [ebp - 0x18], al
lea edi, [ebp - 0xe0]
mov eax, edx
mov dword [ebp - 0x1c], 0
shr eax, 0x10
mov ecx, 0x28
mov byte [ebp - 0x17], al
xorps xmm0, xmm0
mov eax, edx
mov byte [ebp - 0x15], dl
shr eax, 8
mov byte [ebp - 0x16], al
mov eax, 4
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x22c], 0x3e8
lea ecx, [ebp - 0xe0]
mov edx, eax
push ecx
lea ecx, [ebp - 0x18]
movups xmmword [ebp - 0x24c], xmm0
call fcn.00408a10
add esp, 4
cmp dword [ebp - 0x44], 0xffffffff
je 0x409ac1
lea eax, [ebp - 0xe0]
xor edx, edx
push eax
xor ecx, ecx
call fcn.00408a10
add esp, 4
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x40]
call fcn.0040d0d0
movaps xmm2, xmmword [0x48a100]
lea eax, [ebp - 0xa0]
movups xmm0, xmmword [ebp - 0xe0]
mov dword [ebp - 0x9c], 0
mov edx, 0x40
movaps xmm1, xmm2
mov dword [ebp - 0xa0], 0
xorps xmm1, xmm0
mov dword [ebp - 0x98], 0x67452301
movups xmm0, xmmword [ebp - 0xd0]
push eax
movups xmmword [ebp - 0xe0], xmm1
mov dword [ebp - 0x94], 0xefcdab89
lea ecx, [ebp - 0xe0]
movaps xmm1, xmm2
mov dword [ebp - 0x90], 0x98badcfe
xorps xmm1, xmm0
mov dword [ebp - 0x8c], 0x10325476
movups xmm0, xmmword [ebp - 0xc0]
mov dword [ebp - 0x88], 0xc3d2e1f0
movups xmmword [ebp - 0xd0], xmm1
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmm0, xmmword [ebp - 0xb0]
movups xmmword [ebp - 0xc0], xmm1
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ebp - 0xb0], xmm1
call fcn.0040ce10
lea eax, [ebp - 0xa0]
mov edx, 0x14
push eax
lea ecx, [ebp - 0x40]
call fcn.0040ce10
add esp, 8
lea edx, [ebp - 0xa0]
lea ecx, [ebp - 0x40]
call fcn.0040d0d0
movups xmm0, xmmword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
movups xmm1, xmmword [ebp - 0x24c]
mov dword [ebp - 8], eax
mov eax, 0x10
movups xmmword [ebp - 0x18], xmm0
xorps xmm1, xmm0
movups xmmword [ebp - 0x2c], xmm1
nop dword [eax]
mov cl, byte [ebp + eax - 0x18]
xor byte [ebp + eax - 0x2c], cl
inc eax
cmp eax, 0x14
jb 0x409bd0
sub dword [ebp - 0x22c], 1
lea esi, [ebp - 0x180]
mov ecx, 0x28
lea edi, [ebp - 0xe0]
rep movsd dword es:[edi], dword [esi]
je 0x409c03
movups xmm0, xmmword [ebp - 0x2c]
jmp 0x409a8d
mov ecx, dword [ebp - 0x228]
xor edx, edx
mov esi, dword [ebp - 0x224]
mov edi, dword [ebp - 0x234]
cmp ecx, dword [ebp + 0x18]
jae 0x409c29
mov al, byte [esi + ecx]
inc edx
mov byte [ecx + edi], al
inc ecx
cmp edx, 0x14
jb 0x409c17
mov edx, dword [ebp - 0x230]
sub esi, 0x14
add dword [ebp - 0x228], 0x14
inc edx
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x224], esi
cmp dword [ebp - 0x23c], eax
jb 0x409a40
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044ae3d
mov esp, ebp
pop ebp
ret