Function at 0x40ac10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0x20]
lea esi, [ecx + 0x21]
mov ebp, 0x10
xor eax, eax
xor edx, edx
mov ah, byte [esi - 1]
mov dl, byte [esi + 1]
mov al, byte [esi]
add esi, 4
shl eax, 8
or eax, edx
xor edx, edx
mov dl, byte [esi - 2]
add edi, 4
shl eax, 8
or eax, edx
dec ebp
mov dword [edi - 4], eax
jne 0x40ac2a
lea edx, [esp + 0x28]
mov esi, 0x40
mov eax, dword [edx + 0x2c]
mov ebp, dword [edx + 0x18]
mov ebx, dword [edx - 8]
mov edi, dword [edx]
xor eax, ebp
add edx, 4
xor eax, ebx
xor eax, edi
mov edi, eax
add eax, eax
shr edi, 0x1f
or edi, eax
dec esi
mov dword [edx + 0x34], edi
jne 0x40ac5a
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x10], 0x14
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ecx
mov edx, eax
mov ecx, esi
not edx
and edx, edi
and ecx, eax
or edx, ecx
mov ecx, ebx
mov ebp, ebx
shr ecx, 0x1b
shl ebp, 5
or ecx, ebp
mov ebp, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [ebp]
add ebp, 4
add edx, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
lea edx, [edx + ecx + 0x5a827999]
mov ecx, edi
mov edi, esi
mov esi, eax
shl esi, 0x1e
shr eax, 2
or esi, eax
dec ebp
mov eax, ebx
mov dword [esp + 0x18], ecx
mov ebx, edx
mov dword [esp + 0x10], ebp
jne 0x40ac9f
lea ebp, [esp + 0x70]
mov dword [esp + 0x14], 0x14
mov dword [esp + 0x10], ebp
mov ebp, edx
shr ebp, 0x1b
shl edx, 5
or ebp, edx
mov edx, edi
xor edx, esi
xor edx, eax
add ebp, edx
mov edx, ebp
mov ebp, dword [esp + 0x10]
add edx, dword [ebp]
add ebp, 4
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
lea edx, [edx + ecx + 0x6ed9eba1]
mov ecx, edi
mov edi, esi
mov esi, eax
shl esi, 0x1e
shr eax, 2
or esi, eax
dec ebp
mov eax, ebx
mov ebx, edx
mov dword [esp + 0x14], ebp
jne 0x40ad05
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0xc0]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0x14
mov ebp, esi
mov ecx, esi
or ebp, eax
and ecx, eax
and ebp, edi
or ebp, ecx
mov ecx, edx
shr ecx, 0x1b
shl edx, 5
or ecx, edx
add ebp, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
add ecx, 4
add ebp, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
lea edx, [edx + ebp - 0x70e44324]
mov ebp, edi
mov edi, esi
mov esi, eax
shl esi, 0x1e
shr eax, 2
or esi, eax
dec ecx
mov eax, ebx
mov dword [esp + 0x18], ebp
mov ebx, edx
mov dword [esp + 0x14], ecx
jne 0x40ad62
lea ecx, [esp + 0x110]
mov dword [esp + 0x14], 0x14
mov dword [esp + 0x10], ecx
mov ecx, edx
shr ecx, 0x1b
shl edx, 5
or ecx, edx
mov edx, edi
xor edx, esi
xor edx, eax
add ecx, edx
mov edx, ecx
mov ecx, dword [esp + 0x10]
add edx, dword [ecx]
add ecx, 4
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
lea edx, [edx + ebp - 0x359d3e2a]
mov ebp, edi
mov edi, esi
mov esi, eax
shl esi, 0x1e
shr eax, 2
or esi, eax
dec ecx
mov eax, ebx
mov ebx, edx
mov dword [esp + 0x14], ecx
jne 0x40adc8
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx]
mov dword [ecx + 0x1c], 0
add ebx, edx
mov edx, dword [ecx + 4]
add edx, eax
mov eax, dword [ecx + 8]
add eax, esi
mov dword [ecx], ebx
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0xc]
add eax, edi
pop edi
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0x10]
add eax, ebp
pop esi
pop ebp
mov dword [ecx + 4], edx
mov dword [ecx + 0x10], eax
pop ebx
add esp, 0x150
ret