Function at 0x40e7b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [ebp + 0x14], 0
push ebx
push esi
push edi
je 0x40e7d4
mov ebx, dword [ebp + 0xc]
push 0x40
push dword [ebp + 0x10]
push ebx
call fcn.00419bb0
add esp, 0xc
jmp 0x40e7d7
mov ebx, dword [ebp + 0x10]
cmp byte [0x43aa28], 0
jne 0x40e82c
xor ecx, ecx
mov esi, 0x43a3ec
lea eax, [ecx + 1]
cdq
push 5
pop edi
idiv edi
lea eax, [ecx + 2]
mov dword [esi - 4], ecx
mov dword [esi], edx
cdq
idiv edi
lea eax, [ecx + 3]
add esi, 0x14
mov dword [esi - 0x10], edx
cdq
idiv edi
lea eax, [ecx + 4]
mov dword [esi - 0xc], edx
cdq
idiv edi
mov dword [esi - 8], edx
test ecx, ecx
je 0x40e81a
dec ecx
jmp 0x40e81d
push 4
pop ecx
cmp esi, 0x43aa2c
jl 0x40e7e7
mov byte [0x43aa28], 1
mov esi, dword [ebp + 8]
push 5
pop ecx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov eax, 0x43a3f4
mov dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
mov edx, dword [esi]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [esi], ecx
mov esi, dword [eax - 8]
mov edx, dword [eax]
mov edx, dword [ebp + edx*4 - 0x20]
mov edi, dword [eax - 4]
mov edi, dword [ebp + edi*4 - 0x20]
add dword [ebp + 0x14], 4
lea esi, [ebp + esi*4 - 0x20]
mov dword [ebp + 0x10], esi
mov esi, dword [eax + 4]
lea esi, [ebp + esi*4 - 0x20]
xor edi, edx
mov dword [ebp - 4], esi
mov esi, dword [eax - 0xc]
mov esi, dword [ebp + esi*4 - 0x20]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0x10]
and edi, dword [edx]
rol esi, 5
xor edi, dword [ebp + 0xc]
add esi, ecx
mov ecx, dword [ebp - 4]
lea edx, [edi + esi + 0x5a827999]
add dword [ecx], edx
mov ecx, dword [ebp + 0x10]
ror dword [ecx], 2
add eax, 0x14
mov edx, 0x43a534
cmp eax, edx
jl 0x40e83f
mov dword [ebp + 0x14], 0x10
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 3]
and eax, 0xf
lea esi, [ebx + eax*4]
lea eax, [ecx - 5]
and eax, 0xf
mov eax, dword [ebx + eax*4]
lea edi, [ecx + 5]
and edi, 0xf
xor eax, dword [ebx + edi*4]
and ecx, 0xf
xor eax, dword [ebx + ecx*4]
xor eax, dword [esi]
rol eax, 1
mov dword [esi], eax
mov esi, dword [edx - 8]
mov ecx, dword [edx]
mov ecx, dword [ebp + ecx*4 - 0x20]
mov edi, dword [edx - 4]
mov edi, dword [ebp + edi*4 - 0x20]
lea esi, [ebp + esi*4 - 0x20]
mov dword [ebp + 0x10], esi
mov esi, dword [edx + 4]
lea esi, [ebp + esi*4 - 0x20]
xor edi, ecx
mov dword [ebp - 4], esi
mov esi, dword [edx - 0xc]
mov esi, dword [ebp + esi*4 - 0x20]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0x10]
and edi, dword [ecx]
rol esi, 5
xor edi, dword [ebp + 0xc]
add esi, eax
mov eax, dword [ebp - 4]
lea ecx, [edi + esi + 0x5a827999]
add dword [eax], ecx
mov eax, dword [ebp + 0x10]
ror dword [eax], 2
inc dword [ebp + 0x14]
add edx, 0x14
mov eax, 0x43a584
cmp edx, eax
jl 0x40e8bf
mov dword [ebp + 0x14], 0x14
mov edx, eax
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 3]
and eax, 0xf
lea esi, [ebx + eax*4]
lea eax, [ecx - 5]
lea edi, [ecx + 5]
and eax, 0xf
mov eax, dword [ebx + eax*4]
and ecx, 0xf
and edi, 0xf
xor eax, dword [ebx + edi*4]
xor eax, dword [ebx + ecx*4]
xor eax, dword [esi]
rol eax, 1
mov dword [esi], eax
mov ecx, dword [edx - 8]
mov edi, dword [edx]
lea ecx, [ebp + ecx*4 - 0x20]
mov dword [ebp + 0x10], ecx
mov ecx, dword [edx + 4]
lea ecx, [ebp + ecx*4 - 0x20]
mov dword [ebp - 4], ecx
mov ecx, dword [edx - 0xc]
mov esi, dword [ebp + ecx*4 - 0x20]
mov ecx, dword [edx - 4]
mov ecx, dword [ebp + ecx*4 - 0x20]
xor ecx, dword [ebp + edi*4 - 0x20]
rol esi, 5
mov edi, ecx
mov ecx, dword [ebp + 0x10]
xor edi, dword [ecx]
add esi, eax
mov eax, dword [ebp - 4]
lea esi, [edi + esi + 0x6ed9eba1]
add dword [eax], esi
ror dword [ecx], 2
inc dword [ebp + 0x14]
add edx, 0x14
cmp edx, 0x43a714
jl 0x40e951
mov ecx, 0x43a710
mov dword [ebp + 0x14], 0x28
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp + 0x14]
lea edx, [eax - 3]
and eax, 0xf
lea esi, [ebx + eax*4]
lea eax, [edx - 5]
and eax, 0xf
mov eax, dword [ebx + eax*4]
lea edi, [edx + 5]
and edi, 0xf
xor eax, dword [ebx + edi*4]
and edx, 0xf
xor eax, dword [ebx + edx*4]
xor eax, dword [esi]
rol eax, 1
mov dword [esi], eax
mov edx, dword [ecx - 4]
mov edi, dword [ecx + 8]
mov esi, dword [ecx]
mov esi, dword [ebp + esi*4 - 0x20]
lea edx, [ebp + edx*4 - 0x20]
lea edi, [ebp + edi*4 - 0x20]
mov dword [ebp - 0xc], edx
mov edx, dword [edx]
mov dword [ebp - 8], edi
mov edi, dword [ecx - 8]
mov ecx, dword [ecx + 4]
mov ecx, dword [ebp + ecx*4 - 0x20]
mov edi, dword [ebp + edi*4 - 0x20]
mov dword [ebp + 0xc], edx
or edx, esi
and ecx, edx
mov edx, ecx
mov ecx, dword [ebp + 0xc]
and ecx, esi
or edx, ecx
rol edi, 5
add edi, eax
mov eax, dword [ebp - 8]
lea ecx, [edx + edi - 0x70e44324]
add dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
ror dword [eax], 2
inc dword [ebp + 0x14]
add ecx, 0x14
cmp ecx, 0x43a8a0
mov dword [ebp + 0x10], ecx
jl 0x40e9db
mov dword [ebp + 0x14], 0x3c
mov edx, 0x43a8a4
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 3]
and eax, 0xf
lea esi, [ebx + eax*4]
lea eax, [ecx - 5]
lea edi, [ecx + 5]
and eax, 0xf
mov eax, dword [ebx + eax*4]
and ecx, 0xf
and edi, 0xf
xor eax, dword [ebx + edi*4]
xor eax, dword [ebx + ecx*4]
xor eax, dword [esi]
rol eax, 1
mov dword [esi], eax
mov ecx, dword [edx - 8]
mov edi, dword [edx]
lea ecx, [ebp + ecx*4 - 0x20]
mov dword [ebp + 0x10], ecx
mov ecx, dword [edx + 4]
lea ecx, [ebp + ecx*4 - 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edx - 0xc]
mov esi, dword [ebp + ecx*4 - 0x20]
mov ecx, dword [edx - 4]
mov ecx, dword [ebp + ecx*4 - 0x20]
xor ecx, dword [ebp + edi*4 - 0x20]
rol esi, 5
mov edi, ecx
mov ecx, dword [ebp + 0x10]
xor edi, dword [ecx]
add esi, eax
mov eax, dword [ebp - 0xc]
lea esi, [edi + esi - 0x359d3e2a]
add dword [eax], esi
ror dword [ecx], 2
inc dword [ebp + 0x14]
add edx, 0x14
cmp edx, 0x43aa34
jl 0x40ea7a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push 5
sub ecx, eax
pop edx
mov esi, dword [ecx + eax]
add dword [eax], esi
add eax, 4
dec edx
jne 0x40eb00
pop edi
pop esi
pop ebx
leave
ret 0x10