Function at 0x407632
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
movzx eax, byte [edx]
add eax, 0x16ae9deb
lea esi, [ebp - 0x157]
lea edi, [ebp - 0x158]
mov dword [ebp - 0x18], eax
sub esi, edx
push 0x10
lea eax, [edx + 2]
sub edi, edx
lea ecx, [ebp - 0x158]
pop edx
mov bl, byte [eax - 2]
mov byte [esi + eax], bl
mov bl, byte [eax - 1]
mov byte [edi + eax], bl
mov bl, byte [eax]
mov byte [ecx + 1], bl
mov bl, byte [eax + 1]
mov byte [ecx], bl
add eax, 4
add ecx, 4
dec edx
jne 0x407668
lea esi, [ebp - 0x138]
mov dword [ebp + 0xc], 0x40
push dword [esi - 0x20]
mov edi, dword [esi + 0x14]
mov ebx, dword [esi - 0x18]
call fcn.00407609
mov edx, eax
push ebx
mov ebx, edx
call fcn.00407609
push edi
xor ebx, eax
call fcn.00407609
push dword [esi]
xor ebx, eax
call fcn.00407609
push dword [esi - 0x20]
xor ebx, eax
shr ebx, 0x1f
call fcn.00407609
push dword [esi - 0x18]
mov edi, eax
call fcn.00407609
push dword [esi + 0x14]
xor edi, eax
call fcn.00407609
push dword [esi]
xor edi, eax
call fcn.00407609
xor edi, eax
shl edi, 1
or ebx, edi
push ebx
call fcn.00407609
mov dword [esi + 0x20], eax
add esp, 0x24
add esi, 4
dec dword [ebp + 0xc]
jne 0x407694
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x158]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0xc]
mov edi, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push dword [eax]
call fcn.00407609
mov edx, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
and edx, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
not ecx
and ecx, ebx
add dword [ebp - 4], 4
or ecx, edx
mov edx, edi
mov ebx, edi
add eax, ecx
mov ecx, dword [ebp + 8]
shr edx, 0x1b
shl ebx, 5
or edx, ebx
mov ebx, dword [ebp + 8]
shl ebx, 0x1e
lea eax, [edx + eax - 0x5d6aa4d4]
lea edx, [ebp - 0x108]
shr ecx, 2
or ebx, ecx
cmp dword [ebp - 4], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
je 0x407791
mov dword [ebp + 0xc], ebx
mov ebx, ecx
mov edi, eax
mov dword [ebp - 0x14], ebx
jmp 0x407727
and dword [ebp - 4], 0
lea eax, [ebp - 0x108]
mov ecx, dword [eax]
inc dword [ebp - 4]
add eax, 4
push ecx
mov dword [ebp - 0x10], eax
call fcn.00407609
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
pop ecx
xor ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr ecx, 0x1b
shl edx, 5
or ecx, edx
xor ebx, edi
add eax, ecx
add ebx, eax
mov eax, edi
shl eax, 0x1e
shr edi, 2
or eax, edi
cmp dword [ebp - 4], 0x14
mov edi, dword [ebp - 8]
mov dword [ebp + 8], eax
je 0x4077f9
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], ebx
jmp 0x40779b
and dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 4
mov dword [ebp - 0x10], eax
push dword [ebp + ecx - 0xb8]
call fcn.00407609
add eax, dword [ebp + 0xc]
pop ecx
mov ecx, ebx
mov edx, ebx
shr ecx, 0x1b
shl edx, 5
or ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [ebp + 0xc], edx
lea eax, [ecx + eax - 0x34032e48]
mov ecx, edi
mov dword [ebp - 0x18], eax
mov eax, edi
shl ecx, 0x1e
shr eax, 2
or ecx, eax
mov eax, dword [ebp + 8]
or eax, edi
mov dword [ebp - 0xc], ecx
and eax, edx
mov edx, dword [ebp + 8]
and edx, edi
mov edi, ebx
or eax, edx
add eax, dword [ebp - 0x18]
cmp dword [ebp - 8], 0x54
mov dword [ebp - 4], eax
je 0x40786d
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], ecx
mov eax, ecx
jmp 0x4077fd
and dword [ebp + 8], 0
mov eax, dword [ebp + 8]
add dword [ebp + 8], 4
push dword [ebp + eax - 0x64]
call fcn.00407609
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
pop ecx
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
shr ecx, 0x1b
shl edx, 5
or ecx, edx
mov edx, dword [ebp - 0x10]
xor ebx, edx
mov dword [ebp + 0xc], edx
xor ebx, edi
add ecx, ebx
lea ecx, [ecx + eax - 0x5cd39e93]
mov eax, edi
shl eax, 0x1e
shr edi, 2
or eax, edi
cmp dword [ebp + 8], 0x4c
mov edi, dword [ebp - 4]
je 0x4078ca
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x407871
add dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
add dword [esi + 0xc], eax
inc ecx
add dword [esi], ecx
mov ecx, dword [ebp - 4]
add dword [esi + 4], ecx
add dword [esi + 0x10], edx
pop edi
pop esi
pop ebx
leave
ret