Function at 0x40d6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea ecx, [eax + 0x28]
mov esi, 4
mov edx, dword [ecx]
mov edi, edx
shl edi, 0x10
mov ebx, edx
and ebx, 0xff00
or edi, ebx
movzx ebx, byte [ecx + 3]
shl edi, 8
or edi, ebx
shr edx, 8
and edx, 0xff00
or edi, edx
mov dword [ecx], edi
mov edx, dword [ecx + 4]
mov edi, edx
shl edi, 0x10
mov ebx, edx
shr edx, 8
and edx, 0xff00
and ebx, 0xff00
or edi, ebx
shl edi, 8
or edi, edx
movzx edx, byte [ecx + 7]
or edi, edx
mov dword [ecx + 4], edi
mov edx, dword [ecx + 8]
mov edi, edx
shl edi, 0x10
mov ebx, edx
shr edx, 8
and ebx, 0xff00
or edi, ebx
shl edi, 8
and edx, 0xff00
or edi, edx
movzx edx, byte [ecx + 0xb]
or edi, edx
mov dword [ecx + 8], edi
mov edx, dword [ecx + 0xc]
mov edi, edx
mov ebx, edx
shl edi, 0x10
and ebx, 0xff00
or edi, ebx
shr edx, 8
shl edi, 8
and edx, 0xff00
or edi, edx
movzx edx, byte [ecx + 0xf]
or edi, edx
mov dword [ecx + 0xc], edi
add ecx, 0x10
sub esi, 1
jne 0x40d6c1
lea ecx, [eax + 0x28]
mov dword [ebp - 0xc], 0x10
lea esp, [esp]
mov edx, dword [ecx + 0x34]
xor edx, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x38]
xor ebx, dword [ecx + 0x24]
xor edx, dword [ecx]
xor ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
xor edx, esi
xor ebx, edi
rol edx, 1
rol ebx, 1
mov dword [ecx + 0x44], ebx
mov ebx, dword [ecx + 0x3c]
xor ebx, dword [ecx + 0x28]
mov dword [ecx + 0x40], edx
xor ebx, esi
mov esi, dword [ecx + 0x2c]
xor esi, dword [ecx + 0x14]
xor ebx, dword [ecx + 0x10]
xor esi, edx
rol ebx, 1
xor esi, edi
rol esi, 1
mov dword [ecx + 0x48], ebx
mov dword [ecx + 0x4c], esi
add ecx, 0x10
sub dword [ebp - 0xc], 1
jne 0x40d780
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov dword [eax], ecx
mov ecx, dword [eax + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [eax + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [eax + 0xc], edx
mov edi, 2
lea edx, [eax + 0x2c]
mov dword [eax + 0x10], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edx
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov esi, dword [eax + 4]
lea edx, [edi - 2]
cmp edx, 0x14
jae 0x40d81a
mov edx, esi
not edx
and edx, dword [eax + 0xc]
mov edi, esi
and edi, ebx
or edx, edi
mov edi, dword [ebp - 8]
jmp 0x40d83d
cmp edx, 0x28
jb 0x40d836
cmp edx, 0x3c
jae 0x40d836
mov edi, dword [eax + 0xc]
mov edx, ebx
or edx, edi
and ebx, edi
mov edi, dword [ebp - 8]
and edx, esi
or edx, ebx
jmp 0x40d83d
mov edx, esi
xor edx, ebx
xor edx, dword [eax + 0xc]
lea ebx, [edi - 2]
cmp ebx, 0x14
jae 0x40d84e
mov dword [ebp - 4], 0x5a827999
jmp 0x40d870
cmp ebx, 0x28
jae 0x40d85c
mov dword [ebp - 4], 0x6ed9eba1
jmp 0x40d870
cmp ebx, 0x3c
sbb ebx, ebx
and ebx, 0xc4b8fb06
add ebx, 0xca62c1d6
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
rol ecx, 5
add ecx, dword [ebx - 4]
add ecx, dword [eax + 0x10]
add ecx, dword [ebp - 4]
add ecx, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
ror esi, 2
mov dword [eax + 0xc], edx
mov edx, dword [eax]
mov dword [eax + 8], esi
mov ebx, esi
mov dword [eax + 4], edx
mov esi, edx
lea edx, [edi - 1]
mov dword [eax], ecx
cmp edx, 0x14
jae 0x40d8b8
mov edx, esi
not edx
and edx, dword [eax + 0xc]
mov edi, esi
and edi, ebx
or edx, edi
mov edi, dword [ebp - 8]
jmp 0x40d8db
cmp edx, 0x28
jb 0x40d8d4
cmp edx, 0x3c
jae 0x40d8d4
mov edi, dword [eax + 0xc]
mov edx, ebx
or edx, edi
and ebx, edi
mov edi, dword [ebp - 8]
and edx, esi
or edx, ebx
jmp 0x40d8db
mov edx, esi
xor edx, ebx
xor edx, dword [eax + 0xc]
lea ebx, [edi - 1]
cmp ebx, 0x14
jae 0x40d8ec
mov dword [ebp - 4], 0x5a827999
jmp 0x40d90e
cmp ebx, 0x28
jae 0x40d8fa
mov dword [ebp - 4], 0x6ed9eba1
jmp 0x40d90e
cmp ebx, 0x3c
sbb ebx, ebx
and ebx, 0xc4b8fb06
add ebx, 0xca62c1d6
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
rol ecx, 5
add ecx, dword [ebx]
add ecx, dword [eax + 0x10]
add ecx, dword [ebp - 4]
add ecx, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
ror esi, 2
mov dword [eax + 0xc], edx
mov edx, dword [eax]
mov dword [eax + 8], esi
mov ebx, esi
mov dword [eax + 4], edx
mov dword [eax], ecx
mov esi, edx
cmp edi, 0x14
jae 0x40d950
not edx
and edx, dword [eax + 0xc]
mov edi, esi
and edi, ebx
or edx, edi
mov edi, dword [ebp - 8]
jmp 0x40d971
cmp edi, 0x28
jb 0x40d96c
cmp edi, 0x3c
jae 0x40d96c
mov edi, dword [eax + 0xc]
mov edx, ebx
or edx, edi
and ebx, edi
mov edi, dword [ebp - 8]
and edx, esi
or edx, ebx
jmp 0x40d971
xor edx, ebx
xor edx, dword [eax + 0xc]
cmp edi, 0x14
jae 0x40d97f
mov dword [ebp - 4], 0x5a827999
jmp 0x40d9a1
cmp edi, 0x28
jae 0x40d98d
mov dword [ebp - 4], 0x6ed9eba1
jmp 0x40d9a1
cmp edi, 0x3c
sbb ebx, ebx
and ebx, 0xc4b8fb06
add ebx, 0xca62c1d6
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
rol ecx, 5
add ecx, dword [ebx + 4]
add ecx, dword [eax + 0x10]
add ecx, dword [ebp - 4]
add ecx, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
ror esi, 2
mov dword [eax + 0xc], edx
mov edx, dword [eax]
mov dword [eax + 8], esi
mov ebx, esi
mov dword [eax + 4], edx
mov esi, edx
lea edx, [edi + 1]
mov dword [eax], ecx
cmp edx, 0x14
jae 0x40d9e9
mov edx, esi
not edx
and edx, dword [eax + 0xc]
mov edi, esi
and edi, ebx
or edx, edi
mov edi, dword [ebp - 8]
jmp 0x40da0c
cmp edx, 0x28
jb 0x40da05
cmp edx, 0x3c
jae 0x40da05
mov edi, dword [eax + 0xc]
mov edx, ebx
or edx, edi
and ebx, edi
mov edi, dword [ebp - 8]
and edx, esi
or edx, ebx
jmp 0x40da0c
mov edx, esi
xor edx, ebx
xor edx, dword [eax + 0xc]
lea ebx, [edi + 1]
cmp ebx, 0x14
jae 0x40da1d
mov dword [ebp - 4], 0x5a827999
jmp 0x40da3f
cmp ebx, 0x28
jae 0x40da2b
mov dword [ebp - 4], 0x6ed9eba1
jmp 0x40da3f
cmp ebx, 0x3c
sbb ebx, ebx
and ebx, 0xc4b8fb06
add ebx, 0xca62c1d6
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
rol ecx, 5
add ecx, dword [ebx + 8]
add ecx, dword [eax + 0x10]
add ecx, dword [ebp - 4]
add ecx, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
ror esi, 2
mov dword [eax + 0xc], edx
mov edx, dword [eax]
mov dword [eax + 8], esi
mov ebx, esi
mov dword [eax + 4], edx
mov esi, edx
lea edx, [edi + 2]
mov dword [eax], ecx
cmp edx, 0x14
jae 0x40da87
mov edx, esi
not edx
and edx, dword [eax + 0xc]
mov edi, esi
and edi, ebx
or edx, edi
mov edi, dword [ebp - 8]
jmp 0x40daaa
cmp edx, 0x28
jb 0x40daa3
cmp edx, 0x3c
jae 0x40daa3
mov edi, dword [eax + 0xc]
mov edx, ebx
or edx, edi
and ebx, edi
mov edi, dword [ebp - 8]
and edx, esi
or edx, ebx
jmp 0x40daaa
mov edx, esi
xor edx, ebx
xor edx, dword [eax + 0xc]
lea ebx, [edi + 2]
cmp ebx, 0x14
jae 0x40dabb
mov dword [ebp - 4], 0x5a827999
jmp 0x40dadd
cmp ebx, 0x28
jae 0x40dac9
mov dword [ebp - 4], 0x6ed9eba1
jmp 0x40dadd
cmp ebx, 0x3c
sbb ebx, ebx
and ebx, 0xc4b8fb06
add ebx, 0xca62c1d6
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0xc]
add dword [ebp - 0xc], 0x14
rol ecx, 5
add ecx, dword [ebx + 0xc]
add edi, 5
add ecx, dword [eax + 0x10]
mov dword [ebp - 8], edi
add ecx, dword [ebp - 4]
add ecx, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
mov dword [eax + 0xc], edx
mov edx, dword [eax]
mov dword [eax], ecx
ror esi, 2
lea ecx, [edi - 2]
mov dword [eax + 8], esi
mov dword [eax + 4], edx
cmp ecx, 0x50
jb 0x40d7f8
mov edx, dword [eax]
add dword [eax + 0x14], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
add dword [eax + 0x18], ecx
add dword [eax + 0x1c], edx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
add dword [eax + 0x20], ecx
add dword [eax + 0x24], edx
pop edi
pop esi
mov dword [eax + 0x168], 0
pop ebx
mov esp, ebp
pop ebp
ret