Function at 0x407344
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44b074]
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.004224eb
and al, 0xfe
or al, 6
xor esi, esi
mov byte [ebp - 0xc], al
inc esi
dec edi
call fcn.004224eb
mov byte [ebp + esi - 0xc], al
inc esi
test edi, edi
jne 0x407375
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 0x4073b8
call fcn.004224eb
mov byte [ebp + esi - 0xc], al
inc esi
inc dword [ebp - 0x20]
cmp esi, 8
jne 0x40740b
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 0x4073c4
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00407215
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 0x4073e5
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 0x4073a3
lea eax, [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp esi, 8
jge 0x407432
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 0x407485
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 0x40743e
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00407215
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 0x40745f
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 0x40741a
lea edi, [ebp - 0x14]
sub edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], edi
cmp esi, 8
jge 0x4074ac
mov byte [ebp + esi - 0xc], 0
inc esi
inc dword [ebp - 0x20]
cmp esi, 8
jne 0x4074ff
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 0x4074b8
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00407215
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 0x4074d9
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 0x40749b
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e8c8
leave
ret