Function at 0x40a580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [eax + 0x10]
lea ecx, [eax + 0x28]
mov ebx, dword [eax]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
xor ecx, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], ecx
jmp 0x40a5c8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov esi, dword [edi]
add edi, 4
bswap esi
mov dword [eax + ecx*4 + 0x28], esi
mov ecx, edx
ror ecx, 0xb
mov dword [ebp + 0xc], edi
mov edi, edx
ror edi, 0x19
xor edi, ecx
mov ecx, edx
ror ecx, 6
not edx
and edx, dword [ebp - 0x10]
xor edi, ecx
mov ecx, dword [ebp - 0xc]
and ecx, dword [ebp - 0x14]
xor edx, ecx
mov ecx, dword [ebp - 4]
add edi, edx
add edi, dword [ecx*4 + 0x51ecb8]
mov ecx, ebx
add edi, esi
ror ecx, 0xd
add edi, dword [ebp - 0x20]
mov esi, ebx
ror esi, 0x16
xor esi, ecx
mov ecx, ebx
ror ecx, 2
xor esi, ecx
mov ecx, dword [ebp - 0x18]
mov edx, ecx
and ecx, ebx
xor edx, ebx
and edx, dword [ebp - 8]
xor edx, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
add esi, edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
add edx, edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
lea ebx, [esi + edi]
mov esi, dword [ebp - 4]
inc esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
cmp esi, 0x10
jl 0x40a5c5
lea ecx, [esi + 0xe]
mov dword [ebp - 0x24], ebx
mov dword [ebp + 0xc], ecx
mov eax, ebx
mov ebx, dword [ebp - 0x28]
add ecx, 3
and ecx, 0xf
and esi, 0xf
mov edi, dword [ebx + ecx*4]
mov ecx, dword [ebp + 0xc]
and ecx, 0xf
mov edx, dword [ebx + ecx*4]
lea ebx, [ebx + esi*4]
mov esi, edx
mov ecx, edx
ror ecx, 0x11
shr edx, 0xa
ror esi, 0x13
xor esi, ecx
mov ecx, edi
xor esi, edx
ror ecx, 7
mov edx, edi
shr edi, 3
ror edx, 0x12
xor edx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edi
add ecx, 0xfffffffb
add esi, edx
and ecx, 0xf
mov edx, dword [ebp - 0x28]
add esi, dword [edx + ecx*4]
add dword [ebx], esi
mov esi, dword [ebp - 0x14]
mov edi, esi
mov ecx, esi
ror edi, 0x19
ror ecx, 0xb
mov edx, esi
xor edi, ecx
not edx
and edx, dword [ebp - 0x10]
mov ecx, esi
ror ecx, 6
xor edi, ecx
mov ecx, dword [ebp - 0xc]
and ecx, esi
mov esi, eax
xor edx, ecx
ror esi, 0x16
mov ecx, dword [ebp - 4]
add edi, edx
add edi, dword [ecx*4 + 0x51ecb8]
mov ecx, eax
add edi, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov edx, ebx
add edi, dword [ebp - 0x20]
xor edx, eax
and edx, dword [ebp - 8]
ror ecx, 0xd
xor esi, ecx
mov dword [ebp - 0x18], eax
mov ecx, eax
ror ecx, 2
xor esi, ecx
mov ecx, ebx
and ecx, eax
xor edx, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
add esi, edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
add edx, edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], ebx
mov ebx, eax
mov dword [ebp - 0x14], edx
lea eax, [esi + edi]
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
inc esi
inc ecx
mov dword [ebp - 4], esi
mov dword [ebp + 0xc], ecx
cmp esi, 0x40
jl 0x40a674
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
pop edi
pop esi
add dword [eax], ecx
mov ecx, dword [ebp - 8]
add dword [eax + 8], ecx
mov ecx, dword [ebp - 0x1c]
add dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
add dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x10]
add dword [eax + 0x18], ecx
add dword [eax + 4], ebx
add dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x20]
add dword [eax + 0x1c], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8