Function at 0x40ac30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
mov ecx, 0x10
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x64]
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
mov dword [esp + 0x60], edi
xor edi, edi
mov dword [esp + 0x10], edi
cmp edi, 0x10
jl 0x40aca3
lea ebx, [edi - 3]
and edi, 0xf
lea edi, [esp + edi*4 + 0x1c]
lea ebp, [ebx + 5]
mov dword [esp + 0x14], edi
lea edi, [ebx - 5]
and edi, 0xf
and ebp, 0xf
and ebx, 0xf
mov edi, dword [esp + edi*4 + 0x1c]
xor edi, dword [esp + ebp*4 + 0x1c]
mov ebp, dword [esp + ebx*4 + 0x1c]
mov ebx, dword [esp + 0x14]
xor edi, ebp
xor edi, dword [ebx]
mov ebp, edi
add edi, edi
shr ebp, 0x1f
or ebp, edi
mov dword [ebx], ebp
mov ebx, eax
mov edi, edx
not ebx
and ebx, esi
and edi, eax
or ebx, edi
mov edi, ecx
mov ebp, ecx
shr edi, 0x1b
shl ebp, 5
or edi, ebp
add ebx, edi
mov edi, dword [esp + 0x10]
mov ebp, edi
and ebp, 0xf
add ebx, dword [esp + ebp*4 + 0x1c]
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x60], esi
mov esi, edx
mov edx, eax
shl edx, 0x1e
shr eax, 2
or edx, eax
inc edi
lea ebx, [ebx + ebp + 0x5a827999]
mov eax, ecx
cmp edi, 0x14
mov ecx, ebx
mov dword [esp + 0x10], edi
jl 0x40ac62
cmp edi, 0x28
jge 0x40ad92
lea ebp, [edi - 3]
mov dword [esp + 0x18], ebp
and edi, 0xf
lea ebx, [ebp + 5]
and ebx, 0xf
lea edi, [esp + edi*4 + 0x1c]
mov dword [esp + 0x14], edi
lea edi, [ebp - 5]
and edi, 0xf
and ebp, 0xf
mov edi, dword [esp + edi*4 + 0x1c]
xor edi, dword [esp + ebx*4 + 0x1c]
mov ebx, dword [esp + ebp*4 + 0x1c]
mov ebp, dword [esp + 0x14]
xor edi, ebx
xor edi, dword [ebp]
mov ebx, edi
add edi, edi
shr ebx, 0x1f
or ebx, edi
mov edi, ecx
mov dword [ebp], ebx
mov ebp, ecx
shr edi, 0x1b
shl ebp, 5
or edi, ebp
mov ebp, esi
xor ebp, edx
add ebx, edi
mov edi, dword [esp + 0x60]
xor ebp, eax
mov dword [esp + 0x60], esi
add ebp, ebx
mov esi, edx
mov edx, eax
lea ebx, [edi + ebp + 0x6ed9eba1]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
shl edx, 0x1e
shr eax, 2
or edx, eax
inc edi
inc ebp
mov eax, ecx
cmp ebp, 0x25
mov ecx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebp
jl 0x40ad07
cmp edi, 0x3c
jge 0x40ae3b
lea ebp, [edi - 3]
mov dword [esp + 0x18], ebp
and edi, 0xf
lea ebx, [ebp + 5]
and ebx, 0xf
lea edi, [esp + edi*4 + 0x1c]
mov dword [esp + 0x14], edi
lea edi, [ebp - 5]
and edi, 0xf
and ebp, 0xf
mov edi, dword [esp + edi*4 + 0x1c]
xor edi, dword [esp + ebx*4 + 0x1c]
mov ebx, dword [esp + ebp*4 + 0x1c]
mov ebp, dword [esp + 0x14]
xor edi, ebx
xor edi, dword [ebp]
mov ebx, edi
add edi, edi
shr ebx, 0x1f
or ebx, edi
mov edi, edx
mov dword [esp + 0x14], ebx
mov dword [ebp], ebx
mov ebx, edx
and edi, eax
or ebx, eax
mov ebp, ecx
and ebx, esi
or ebx, edi
mov edi, ecx
shr ebp, 0x1b
shl edi, 5
or ebp, edi
mov edi, dword [esp + 0x14]
add edi, ebx
add ebp, edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x60], esi
mov esi, edx
mov edx, eax
lea ebx, [edi + ebp - 0x70e44324]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
shl edx, 0x1e
shr eax, 2
or edx, eax
inc edi
inc ebp
mov eax, ecx
cmp ebp, 0x39
mov ecx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebp
jl 0x40ada2
cmp edi, 0x50
jge 0x40aed6
lea ebp, [edi - 3]
mov dword [esp + 0x18], ebp
and edi, 0xf
lea ebx, [ebp + 5]
and ebx, 0xf
lea edi, [esp + edi*4 + 0x1c]
mov dword [esp + 0x14], edi
lea edi, [ebp - 5]
and edi, 0xf
and ebp, 0xf
mov edi, dword [esp + edi*4 + 0x1c]
xor edi, dword [esp + ebx*4 + 0x1c]
mov ebx, dword [esp + ebp*4 + 0x1c]
mov ebp, dword [esp + 0x14]
xor edi, ebx
xor edi, dword [ebp]
mov ebx, edi
add edi, edi
shr ebx, 0x1f
or ebx, edi
mov edi, ecx
mov dword [ebp], ebx
mov ebp, ecx
shr edi, 0x1b
shl ebp, 5
or edi, ebp
mov ebp, esi
xor ebp, edx
add ebx, edi
mov edi, dword [esp + 0x60]
xor ebp, eax
mov dword [esp + 0x60], esi
add ebp, ebx
mov esi, edx
mov edx, eax
lea ebx, [edi + ebp - 0x359d3e2a]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
shl edx, 0x1e
shr eax, 2
or edx, eax
inc edi
inc ebp
mov eax, ecx
cmp ebp, 0x4d
mov ecx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebp
jl 0x40ae4b
mov ecx, dword [esp + 0x64]
mov edi, dword [ecx]
add edi, ebx
mov dword [ecx], edi
mov edi, dword [ecx + 4]
add edi, eax
mov eax, dword [ecx + 8]
add eax, edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0xc]
add eax, esi
mov dword [ecx + 4], edi
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0x10]
pop edi
add eax, edx
pop esi
pop ebp
mov dword [ecx + 0x10], eax
pop ebx
add esp, 0x4c
ret