Function at 0x4045c5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push 6
pop edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], 0x20
call fcn.0044a24a
and al, 0xfe
or al, 6
xor esi, esi
mov byte [ebp - 0xc], al
inc esi
dec edi
call fcn.0044a24a
mov byte [ebp + esi - 0xc], al
inc esi
test edi, edi
jne 0x4045f6
and dword [ebx], 0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov edi, eax
sub edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], edi
cmp esi, 8
jge 0x404639
call fcn.0044a24a
mov byte [ebp + esi - 0xc], al
inc esi
inc dword [ebp - 0x20]
cmp esi, 8
jne 0x40468c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x404645
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00404496
mov eax, dword [ebp - 0x18]
pop ecx
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x404666
mov ecx, dword [ebp - 0x18]
add dword [ebx], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp - 0x1c], 8
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x20], 2
jle 0x404624
lea eax, [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp esi, 8
jge 0x4046b3
mov eax, dword [ebp + 8]
mov al, byte [eax]
inc esi
inc dword [ebp + 8]
dec dword [ebp - 0x24]
mov byte [ebp + esi - 0xd], al
cmp esi, 8
jne 0x404706
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
xor esi, esi
sub edi, eax
lea eax, [ebp + esi - 0xc]
mov cl, byte [edi + eax]
xor byte [eax], cl
inc esi
cmp esi, 8
jl 0x4046bf
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00404496
mov eax, dword [ebp - 0x18]
pop ecx
push 8
pop esi
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x4046e0
mov ecx, dword [ebp - 0x18]
add dword [ebx], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp - 0x1c], 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x24], 0
jne 0x40469b
lea edi, [ebp - 0x14]
sub edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], edi
cmp esi, 8
jge 0x40472d
mov byte [ebp + esi - 0xc], 0
inc esi
inc dword [ebp - 0x20]
cmp esi, 8
jne 0x404780
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
xor esi, esi
sub ecx, eax
lea eax, [ebp + esi - 0xc]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc esi
cmp esi, 8
jl 0x404739
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00404496
mov eax, dword [ebp - 0x18]
pop ecx
push 8
pop esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x40475a
mov ecx, dword [ebp - 0x18]
add dword [ebx], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
sub dword [ebp - 0x24], 8
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x20], 7
jle 0x40471c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00448d93
leave
ret