Function at 0x4059e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
mov eax, dword [ebp + 8]
add eax, 0x28
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0x3c]
shr edx, 0x10
mov eax, dword [ebp - 0x3c]
shl eax, 0x10
or edx, eax
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x3c]
and ecx, 0xff00ff00
shr ecx, 8
mov edx, dword [ebp - 0x3c]
and edx, 0xff00ff
shl edx, 8
or ecx, edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x1c]
shr eax, 6
mov ecx, dword [ebp - 0x1c]
shl ecx, 0x1a
or eax, ecx
mov edx, dword [ebp - 0x1c]
shr edx, 0xb
mov ecx, dword [ebp - 0x1c]
shl ecx, 0x15
or edx, ecx
xor eax, edx
mov edx, dword [ebp - 0x1c]
shr edx, 0x19
mov ecx, dword [ebp - 0x1c]
shl ecx, 7
or edx, ecx
xor eax, edx
mov edx, dword [ebp - 0x34]
add edx, eax
mov eax, dword [ebp - 0x1c]
and eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
not ecx
and ecx, dword [ebp - 0x30]
xor eax, ecx
add edx, eax
mov eax, dword [ebp - 0x38]
add edx, dword [eax*4 + 0x41f390]
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
add edx, dword [eax + ecx*4]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 4]
shr ecx, 2
mov edx, dword [ebp - 4]
shl edx, 0x1e
or ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0xd
mov edx, dword [ebp - 4]
shl edx, 0x13
or eax, edx
xor ecx, eax
mov eax, dword [ebp - 4]
shr eax, 0x16
mov edx, dword [ebp - 4]
shl edx, 0xa
or eax, edx
xor ecx, eax
mov eax, dword [ebp - 4]
and eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
and edx, dword [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 8]
and edx, dword [ebp - 0x10]
xor eax, edx
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0x10
jl 0x405a3f
mov eax, dword [ebp - 0x38]
add eax, 1
and eax, 0xf
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 7
mov ecx, dword [ebp - 0xc]
shl ecx, 0x19
or eax, ecx
mov edx, dword [ebp - 0xc]
shr edx, 0x12
mov ecx, dword [ebp - 0xc]
shl ecx, 0xe
or edx, ecx
xor eax, edx
mov edx, dword [ebp - 0xc]
shr edx, 3
xor eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x38]
add eax, 0xe
and eax, 0xf
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
shr eax, 0x11
mov ecx, dword [ebp - 0x14]
shl ecx, 0xf
or eax, ecx
mov edx, dword [ebp - 0x14]
shr edx, 0x13
mov ecx, dword [ebp - 0x14]
shl ecx, 0xd
or edx, ecx
xor eax, edx
mov edx, dword [ebp - 0x14]
shr edx, 0xa
xor eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
shr eax, 6
mov ecx, dword [ebp - 0x1c]
shl ecx, 0x1a
or eax, ecx
mov edx, dword [ebp - 0x1c]
shr edx, 0xb
mov ecx, dword [ebp - 0x1c]
shl ecx, 0x15
or edx, ecx
xor eax, edx
mov edx, dword [ebp - 0x1c]
shr edx, 0x19
mov ecx, dword [ebp - 0x1c]
shl ecx, 7
or edx, ecx
xor eax, edx
mov edx, dword [ebp - 0x34]
add edx, eax
mov eax, dword [ebp - 0x1c]
and eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
not ecx
and ecx, dword [ebp - 0x30]
xor eax, ecx
add edx, eax
mov eax, dword [ebp - 0x38]
add edx, dword [eax*4 + 0x41f390]
mov ecx, dword [ebp - 0x38]
and ecx, 0xf
mov eax, dword [ebp - 0x38]
add eax, 9
and eax, 0xf
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x14]
add edi, dword [esi + eax*4]
add edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + ecx*4]
add ecx, edi
mov eax, dword [ebp - 0x38]
and eax, 0xf
mov esi, dword [ebp - 0x28]
mov dword [esi + eax*4], ecx
mov ecx, dword [ebp - 0x38]
and ecx, 0xf
mov eax, dword [ebp - 0x28]
add edx, dword [eax + ecx*4]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 4]
shr ecx, 2
mov edx, dword [ebp - 4]
shl edx, 0x1e
or ecx, edx
mov eax, dword [ebp - 4]
shr eax, 0xd
mov edx, dword [ebp - 4]
shl edx, 0x13
or eax, edx
xor ecx, eax
mov eax, dword [ebp - 4]
shr eax, 0x16
mov edx, dword [ebp - 4]
shl edx, 0xa
or eax, edx
xor ecx, eax
mov eax, dword [ebp - 4]
and eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
and edx, dword [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 8]
and edx, dword [ebp - 0x10]
xor eax, edx
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0x40
jl 0x405b71
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 0x30]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], ecx
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret